Drawing a fullscreen quad without buffers #3276
-
|
I'm trying to implement drawing a fullscreen quad without buffers, as described by Sascha Willems. However, I can't figure out how to do the left shift, which currently just errors: I don't find the explanation of shift left in the WGSL spec to be very helpful in explaining how to use this operator or it's valid types. How can I implement this in WGSL? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The answer to your woes is unfortunately extremely boring - suffix all your numbers with Errors are something we're aware of, and slowly making progress on. |
Beta Was this translation helpful? Give feedback.
-
|
Perfect, thank you. In case anyone else is looking for the solution, I went with: |
Beta Was this translation helpful? Give feedback.
The answer to your woes is unfortunately extremely boring - suffix all your numbers with
uto make them unsigned. Currently Naga hasn't adopted the newer wgsl spec that allows for integer literal type deduction.Errors are something we're aware of, and slowly making progress on.