GLSL icon indicating copy to clipboard operation
GLSL copied to clipboard

Is it valid to access UBOs from rmiss/intersection shaders

Open heeen opened this issue 5 years ago • 3 comments

I am observing a blocking pipeline when I try to access a UBO block from the miss shader for e.g. returning a "skybox" color configured from a uniform.

I skimmed the vulkan spec and the extension addendum and there is no clear wording on raygen shaders being able to access uniforms and miss shaders not.

So is this a nvidia bug or expected behavior?

heeen avatar May 22 '19 10:05 heeen

What do you mean by "blocking pipeline"? is that a hang?

UBOs should work as normal in all ray tracing stages.

If you think there is a driver bug, please send a repro case to [email protected]

dgkoch avatar May 22 '19 15:05 dgkoch

By blocking pipeline I mean that the fence on the queue submission times out regardless of the timeout value.

heeen avatar May 23 '19 20:05 heeen

just sent this link to [email protected], posting it here for everybody else to comment on

https://github.com/heeen/rtxON/commit/000cd324d5b224624113f20215d8fb03915083b4

heeen avatar May 24 '19 08:05 heeen