set the atlas texture memory storage mode to shared

This commit is contained in:
jcalabro
2024-01-22 21:18:42 -05:00
parent 63139ad7e4
commit bc972a4c44

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("pixelFormat", @intFromEnum(pixel_format));
desc.setProperty("width", @as(c_ulong, @intCast(atlas.size))); desc.setProperty("width", @as(c_ulong, @intCast(atlas.size)));
desc.setProperty("height", @as(c_ulong, @intCast(atlas.size))); desc.setProperty("height", @as(c_ulong, @intCast(atlas.size)));
desc.setProperty("storageMode", @as(c_ulong, mtl.MTLResourceStorageModeShared));
// Initialize // Initialize
const id = device.msgSend( const id = device.msgSend(