metal: fix textures not being tagged with compute-write flags.

This commit is contained in:
Alex Szpakowski
2022-01-16 13:47:18 -04:00
parent 4e1c4a6afe
commit 44d87ff7ce
+2
View File
@@ -78,6 +78,8 @@ Texture::Texture(love::graphics::Graphics *gfxbase, id<MTLDevice> device, const
desc.usage |= MTLTextureUsageShaderRead;
if (renderTarget)
desc.usage |= MTLTextureUsageRenderTarget;
if (computeWrite)
desc.usage |= MTLTextureUsageShaderWrite;
texture = [device newTextureWithDescriptor:desc];