MetalDevice: Textures should be private

This commit is contained in:
Stenzek 2024-02-03 19:53:35 +10:00
parent 73bb2e77af
commit 06b11590fe
No known key found for this signature in database

View file

@ -1079,7 +1079,7 @@ std::unique_ptr<GPUTexture> MetalDevice::CreateTexture(u32 width, u32 height, u3
mipmapped:(levels > 1)]; mipmapped:(levels > 1)];
desc.mipmapLevelCount = levels; desc.mipmapLevelCount = levels;
desc.storageMode = MTLStorageModeShared; desc.storageMode = MTLStorageModePrivate;
if (samples > 1) if (samples > 1)
{ {
desc.textureType = (layers > 1) ? MTLTextureType2DMultisampleArray : MTLTextureType2DMultisample; desc.textureType = (layers > 1) ? MTLTextureType2DMultisampleArray : MTLTextureType2DMultisample;