I'm trying to read back the color buffer from a window and use that as an input to a Material, and I get a Metal assertion failure:
Code: Select all
failed assertion `Draw Errors Validation
Fragment Function(main_metal): Shader reads texture (colorMap[1]) whose usage (0x04) doesn't specify MTLTextureUsageShaderRead (0x01)
How can I get a texture that does specify MTLTextureUsageShaderRead
?