April 2024. Still happening.
Post
Replies
Boosts
Views
Activity
Never mind. With Shader Validation and a Debug build, I was able to track down the problem to the following code:
#ifdef USE_POINT_RENDERING
_geometry.pointSize = scn_pointSize.x;
#endif
I had converted a geometry in a particular .scn file to "Point Cloud", and this was somehow causing this problem. Removing the offending geometry from the file solved it for me.
In a SceneKit project, I'm seeing the same errors repeated in the console as well as a black screen where my scene should be. The problem happens at a predictable point in the flow of the app (I can trigger it intentionally by navigating to a certain point).
However, when I enable "Shader Validation" in my scheme's Diagnostics tab, the problem does not occur.
Do you know why this might be the case?
Thank you.