You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Generated "OpConstantNull %type_2d_image" when using with RayQuery #3267
Hi, I'm compling HLSL to spirv using dxc, got this error:
fatal error: generated SPIR-V is invalid: OpConstantNull Result Type <id> '7[%type_2d_image]' cannot have a null value.
%50 = OpConstantNull %type_2d_image
The command line to compile The Shader: dxc.exe -Zpr -Od -T ps_6_5 -E main_00000000_00000000 -spirv -fvk-use-dx-position-w -fspv-reflect -fspv-target-env=vulkan1.2 test.hlsl
I used a struct which contains a texture, and declared the struct inside main function.
The error happens only when I also used RayQuery related stuff.
changed the title [-]Generated "OpConstantNull %type_2d_image" when using with RayQuery[/-][+][SPIR-V] Generated "OpConstantNull %type_2d_image" when using with RayQuery[/+]on Nov 18, 2020
No longer able to repro, it looks like this issue has since been fixed (could be the related to the recent ray tracing capability fixes or the struct buffer fixes).
Activity
[-]Generated "OpConstantNull %type_2d_image" when using with RayQuery[/-][+][SPIR-V] Generated "OpConstantNull %type_2d_image" when using with RayQuery[/+]ehsannas commentedon Nov 18, 2020
Thanks for reporting Liming Xu (@Evil-Ryu).
ehsannas commentedon Dec 9, 2020
For reference, this is the shader:
sudonatalie commentedon Mar 17, 2022
No longer able to repro, it looks like this issue has since been fixed (could be the related to the recent ray tracing capability fixes or the struct buffer fixes).
Bump urllib3 from 2.0.7 to 2.2.2 in /utils/git (#6699)
Bump urllib3 from 2.0.7 to 2.2.2 in /utils/git (microsoft#6699)