mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
GS:MTL: Fix texture flags
This commit is contained in:
committed by
lightningterror
parent
fd46054fb7
commit
13e4973b48
@@ -565,10 +565,8 @@ GSTexture* GSDeviceMTL::CreateSurface(GSTexture::Usage usage, int width, int hei
|
||||
|
||||
MTLTextureUsage mtl_usage = MTLTextureUsageShaderRead;
|
||||
|
||||
if (GSTexture::IsRenderTarget(usage))
|
||||
{
|
||||
if (GSTexture::IsRenderTargetOrDepthStencil(usage))
|
||||
mtl_usage |= MTLTextureUsageRenderTarget;
|
||||
}
|
||||
|
||||
if ((usage & GSTexture::FeedbackTarget) == GSTexture::FeedbackTarget)
|
||||
{
|
||||
@@ -577,9 +575,7 @@ GSTexture* GSDeviceMTL::CreateSurface(GSTexture::Usage usage, int width, int hei
|
||||
}
|
||||
|
||||
if (GSTexture::IsShaderWrite(usage))
|
||||
{
|
||||
mtl_usage |= MTLTextureUsageShaderWrite;
|
||||
}
|
||||
|
||||
[desc setUsage:mtl_usage];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user