Trigger _debugbreak when the compute shader try to write something into a buffer, but works fine in release #3367
Unanswered
jintaoyugithub
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed the bgfx examples and try to write a simple compute shader, below is my compute shader code
Somehow I cannot link to the
bgfx_compute.sh
andbgfx_shader.sh
in the bgfx.cmake src, so I just copy the content to a new fileand this is my set up in the host program
Basically I wannt to use compute shader to write some color to a buffer, and use that buffer in a quad fragment shader to sample the color
In release mode, it can work, but in debug mode, if I use the code following in the quad fragment shader
or I use write to the buffer in compute shader, like
will trigger _debugbreak:
Beta Was this translation helpful? Give feedback.
All reactions