Naga generates invalid SPIR-V in a shader with a unused acceleration structure #5446
Labels
area: naga back-end
Outputs of naga shader conversion
lang: SPIR-V
Vulkan's Shading Language
naga
Shader Translator
type: bug
Something isn't working
Description
When converting a shader with one acceleration structure that is never used using Naga to SPIR-V and using it (using #3631) the vulkan validation layers give
while this is a fork of #3631, no naga changes are in either.
Repro steps
gives this error, while changing comp_main to
fixes the issue
Expected vs observed behavior
Expected: No validation error
Observed: Validation error
Extra materials
test log (just this test, I don't think the other tests would help):
failed test.txt
Platform
This is a fork of #3631.
The text was updated successfully, but these errors were encountered: