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
Note that if I instead use an input structure instead of entry parameters, the wgsl @location attributes are correctly emitted. The problem is specific to entry parameters. Here's some slang using an input struct:
I'm trying to slang-ify a very simple slang "hello triangle" example flor WebGPU, targeting WGSL. Here's the minimal slang shader:
I compile it on the 2024.17 release using this command:
And then I get this invalid WGSL as the output:
This fails to compile in WGSL with the error:
If I manually edit the WGSL to add
@location
attributes, it's fine:Note that if I instead use an input structure instead of entry parameters, the wgsl
@location
attributes are correctly emitted. The problem is specific to entry parameters. Here's some slang using an input struct:And here's the valid WGSL it produces. Note the
@location
attributes correctly applied to the members ofVertexInput_0
:The text was updated successfully, but these errors were encountered: