Merge pull request #1362 from mitchellh/JC/atlas-texture-shared

Shared Atlas Texture on Metal
This commit is contained in:
Mitchell Hashimoto
2024-01-22 19:07:11 -08:00
committed by GitHub

View File

@ -2162,6 +2162,7 @@ fn initAtlasTexture(device: objc.Object, atlas: *const font.Atlas) !objc.Object
desc.setProperty("pixelFormat", @intFromEnum(pixel_format));
desc.setProperty("width", @as(c_ulong, @intCast(atlas.size)));
desc.setProperty("height", @as(c_ulong, @intCast(atlas.size)));
desc.setProperty("storageMode", @as(c_ulong, mtl.MTLResourceStorageModeShared));
// Initialize
const id = device.msgSend(