wgpu
wgpu copied to clipboard
[glsl-in] UnknownType when using sampler as function parameter
Description According to the spec, samplers can be function parameters.
Repro steps The minimal example can be found directly in the documentation:
void Function(in sampler2D myTexture);
Gives you error: Unknown type: sampler2D
If you omit the in qualifier you get a more confusing error.
void Function2(sampler2D myTexture);
error: Expected RightParen, found Identifier("sampler2D")
Platform wgpu 0.19.1 via wgpu-native 0.19.1.1 via wgpu-py 0.14.1 via wgpu-shadertoy Couldn't find any related issues...