mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
MetalDevice: Textures should be private
This commit is contained in:
parent
73bb2e77af
commit
06b11590fe
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue