Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spirv-val: Add static RayQuery/RayTracing value check #5567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spencer-lunarg
Copy link
Contributor

There are various runtime checks for OpRayQueryInitializeKHR and OpTraceRayKHR (ex VUID-RuntimeSpirv-OpRayQueryInitializeKHR-06349 and VUID-RuntimeSpirv-OpRayQueryInitializeKHR-06889) which I am adding to the Validation Layers.

I realized there is no reason not to just do the check here in spirv-val if the values are constant. (the EvalInt32IfConst is almost doing the same work the original GetOperandTypeIdwas)

I already had an issue where someone mixed the tMin and tMax values in their GLSL and there is no warning (granted it could warn in glslang, but probably other languages might not niether)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant