Remove undefined behavior for ray queries #6761
Labels
api: vulkan
Issues with Vulkan
area: correctness
We're behaving incorrectly
area: validation
Issues related to validation, diagnostics, and error handling
feature: raytracing
Issues with the Ray Tracing Native Feature
naga
Shader Translator
type: bug
Something isn't working
Is your feature request related to a problem? Please describe.
Currently the ray queries have lots of undefined behavior from the spirv spec that should be removed
Describe the solution you'd like
Prevent the undefined behaviour
Describe alternatives you've considered
Not remove it.
Additional context
also see #6731 for some details of what can happen.
current undefined behavior:
rayQueryGet*Intersection
is called - [spirv] Stop naga causing undefined behavior inrayQueryGet*Intersection
#6752rayQueryGetCommittedIntersection
orrayQueryGetCandidateIntersection
whenrayQueryProceed
has not been called called on this ray query since it was initialized (or if the ray query has not been previously initialized).rayQueryGetCommittedIntersection
whenrayQueryProceed
's latest return on this ray query is consideredCandidate
(and the other way round too).rayQueryProceed
whenrayQueryInitialize
has not previously been called on this ray query.The text was updated successfully, but these errors were encountered: