Compilation errors

use WebGPU ;


ping @Evgeni_Popov
I also get a warning with webgl2

Passing samplers to function is not supported in glsl code when it must be transformed to wgsl. See:

You should add #define inline in front of the functions that take a sampler, so that the function is inlined.

However, it still does not work in your case because the shader code is quite complex and our inlining function is a bit basic as it operates on string characters and not at the syntax language level.

I fixed it, see lines 2290-2292:

The PG still does not work, but itโ€™s not related to shader compilation, so I will let you debug it!


Thanks for the fix!

1 Like