mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
metal: fix textures not being tagged with compute-write flags.
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user