|
@@ -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];
|
|
|
|
|