KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.9k stars 816 forks source link

Emit debug info for accelerationStructure and rayQuery variables. #3502

Closed sajjadmirzanv closed 4 months ago

sajjadmirzanv commented 4 months ago

A minor quirk is that multiple source types will get mapped to the same debug type, for example both accelerationStructureNV and accelerationStructureEXT are just named accelerationStructure. But I expect a shader author won't use both extensions in the same program, they'll just pick one, so this should be OK.

arcady-lunarg commented 4 months ago

In the underlying SPIR-V OpTypeAccelerationStructureNV and OpTypeAccelerationStructureKHR have the same opcode, so it's kind of hard to avoid conflating them into just one type.

sajjadmirzanv commented 4 months ago

Added a test case (copy of an existing one, rayQuery.rgen)