KhronosGroup / GLSL

GLSL Shading Language Specification and Extensions
Other
344 stars 101 forks source link

Is it valid to access UBOs from rmiss/intersection shaders #72

Open heeen opened 5 years ago

heeen commented 5 years ago

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?

dgkoch commented 5 years ago

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 vulkan-support@nvidia.com

heeen commented 5 years ago

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

heeen commented 5 years ago

just sent this link to vulkan-support@nvidia.com, posting it here for everybody else to comment on

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