mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +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;
|
desc.usage |= MTLTextureUsageShaderRead;
|
||||||
if (renderTarget)
|
if (renderTarget)
|
||||||
desc.usage |= MTLTextureUsageRenderTarget;
|
desc.usage |= MTLTextureUsageRenderTarget;
|
||||||
|
if (computeWrite)
|
||||||
|
desc.usage |= MTLTextureUsageShaderWrite;
|
||||||
|
|
||||||
texture = [device newTextureWithDescriptor:desc];
|
texture = [device newTextureWithDescriptor:desc];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user