eliemichel / LearnWebGPU-Code

The accompanying code of the Learn WebGPU C++ programming guide
https://eliemichel.github.io/LearnWebGPU
MIT License
114 stars 30 forks source link

step 30 vanilla is giving shader compilation error #15

Closed prashant-saxena closed 1 year ago

prashant-saxena commented 1 year ago

Hello, Windows 10 wgpu_native.dll

When building and running step30, The error callback is showing vertex shader source and a message:

no definition in scope for identifier: 'vec2f'

I tried searching on google but it seems there is not much info is available. Although it's compiling and running fine on online webgpu shader compiler.

prashant-saxena commented 1 year ago

The error is gone when switching to the latest version (0, 16, 2, 1)

eliemichel commented 1 year ago

Yes old versions of naga/wgpu-native did not support type aliases but this has been fixed for ~6 months now ;)