Post

Replies

Boosts

Views

Activity

MTLTextureUsageShaderWrite & MetalKit
I have a handful of projects (including ParticleLab) that use compute shaders to write to a MetalKit view's `drawable.texture` which have all worked without issue since WWDC.However, since updating to Xcode 7.1 and iOS 9, I'm now unable to use any of my existing code and I'm getting:/BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-55.1.1/ToolsLayers/Debug/MTLDebugComputeCommandEncoder.mm:654: failed assertion `Function writes texture (outTexture[0]) whos usage (0x05) doesn't specify MTLTextureUsageShaderWrite (0x02)'Is this a bug or a new breaking change? I can't make a MetalKit's view writable, can I? Simon
11
0
6.5k
Oct ’15