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
A very simple shader using RWStructuredBufferorRayQuery seems to compile fine and no counter binding is emitted unless {Increment,Decrement}Counter is used. However, combine them in an unrelated way like below:
Thanks for reporting this @MarijnS95 . I have traced this to be a bug in SPIRV-Tools (spirv-opt should be optimizing that counter away, but it's not doing it).
A very simple shader using
RWStructuredBuffer
orRayQuery
seems to compile fine and no counter binding is emitted unless{Increment,Decrement}Counter
is used. However, combine them in an unrelated way like below:Compiled with:
dxc -E main -T cs_6_5 structuredbuffer_counter.hlsl -spirv -fspv-target-env=vulkan1.2
this results in:In particular:
The
counter_var_test
variable/binding should not be there, any idea why it shows up?When compiling for DXIL the
Dim
stays atr/w
unless{Increment,Decrement}Counter
is added, then it turns intor/w+cnt
as expected.The text was updated successfully, but these errors were encountered: