Closed comblock closed 7 months ago
My guess would be that state.offscreen.color
isn't initialized yet at the time when sg_make_pass() is called. Just a shot in the dark though. I would check that by stepping through the code with a debugger (the code snippet alone isn't enough to confirm, it would be important to know what the surrounding code looks like, but I wouldn't assume that values in a designated initialization block are assigned before the end of entire statement).
My guess would be that
state.offscreen.color
isn't initialized yet at the time when sg_make_pass() is called.
I thought I had checked this wasn't the issue, but it was ¯\(ツ)/¯. Thank you!
I have a basic project set up with a triangle rendering and cimgui, but when I try to add an offscreen pass with the following code:
I get this validation error:
even though I did set a color attachment. My guess is that I did something wrong but the example code in the docs is pretty much the same.