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 }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Where the DebugTypeTemplateParameter and DebugTypeTemplate are switched in order.
I note though that the DebugTypeTemplate is dangling and isn't used, the DebugGlobalVariable references the original DebugTypeComposite. That seems odd but I'm not sure if that's a bug or not. I can file something separately though if it's a different bug and remains after this one is looked at.
Using dxc from appveyor on the latest debug_info branch @ b13ee4e:
And this shader:
Building with no optimisation the resulting SPIR-V generates a forward reference with
DebugTypeTemplateParameterwhich fails validation:A snippet of the disassembly shows the issue:
Where the
DebugTypeTemplateParameterandDebugTypeTemplateare switched in order.I note though that the DebugTypeTemplate is dangling and isn't used, the
DebugGlobalVariablereferences the originalDebugTypeComposite. That seems odd but I'm not sure if that's a bug or not. I can file something separately though if it's a different bug and remains after this one is looked at.