Unknown attribute error #3152
-
I am attempting to port the https://github.com/gfx-rs/wgpu-native/tree/master/examples/compute project to C# as an example for the WIP Silk.NET bindings, but upon attempting to compile the shader i get an error claiming '@compute' is an invalid attribute, even though every example of WGSL compute ive seen shows that attribute being used, is this possibly some problem with the bindings or some breaking change in wgpu-native and the example hasnt been updated to address it? Error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
TL;DR: I would bet that if you use a QuestionsI gave up trying to repro this issue, because of these obstacles:
Without these, there's several leads to a fix that I see that can't be tested:
Bonus question: Why not file this discussion in Thoughts
|
Beta Was this translation helpful? Give feedback.
TL;DR: I would bet that if you use a
master
build ofwgpu-native
, you'll be able to compile this shader as you expect.Questions
I gave up trying to repro this issue, because of these obstacles:
wgpu-native
. It looks like bindings are being generated via NUKE (which is a build tool I'm not familiar with), but it's unclear where the headers used to generate*.gen.cs
files and corresponding libs are coming from.Without these, there's sever…