DirectXShaderCompiler
DirectXShaderCompiler copied to clipboard
[Feature Request] Validator should prevent AllocateRayQuery handles from being used as anything but handles
Is your feature request related to a problem? Please describe. A PIX customer had a shader in which an AllocateRayQuery handle (which is actually typed as i32) was included as a phi value, and the resulting PIX debug instrumentation tried to write the (apparently) i32 to its debug UAV, which caused the GPU driver (sensibly) to fail.
Describe the solution you'd like It would have been great if the validator had noticed that I was trying to store an actual handle value.
Describe alternatives you've considered Uh. Let PIX customers hit this, I guess :-).
Additional context
We should iterate users of AllocateRayQuery and reject any that aren't PHI, Select, or a RayQuery intrinsic at the appropriate handle argument.