GPU error: Texture usage flags mismatch

Hi!

I am using ARSCNView to render a SCNNode that conforms to SCNShadable.

I am getting a black screen instead of the camera feed, and I am getting these errors every draw call:

[GPUDebug] Texture usage flags mismatch executing fragment function "background_video_alpha_0_frag" encoder: "0", draw: 0
[GPUDebug] Texture usage flags mismatch executing fragment function "background_video_frag" encoder: "1", draw: 0

I have searched the project for metal shaders named "background_video_alpha_0_frag" and "background_video_frag", but have found none. I have also searched the project for any residual code from previous attempts that have anything to do with background. Nothing.

During the time that these errors are printing to the console, I cannot capture the GPU to debug it either.

Sometimes I can see the camera feed, like after a long break in development. However, when running it again without changing the code, I start to receive these error outputs.

Does anyone have any ideas? Thanks!

Hello,

It appears that you may have done something that is messing with SceneKit's background video render pipeline. It will require a deeper investigation to identify the cause, so I recommend that you request technical support for this issue and provide a sample project that reproduces the issue.

GPU error: Texture usage flags mismatch
 
 
Q