[glsl-in] UnknownType when using sampler as function parameter #5256
Labels
area: naga front-end
help required
We need community help to make this happen.
lang: GLSL
OpenGL Shading Language
naga
Shader Translator
type: enhancement
New feature or request
Description
According to the spec, samplers can be function parameters.
Repro steps
The minimal example can be found directly in the documentation:
Gives you
error: Unknown type: sampler2D
If you omit the
in
qualifier you get a more confusing error.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...
The text was updated successfully, but these errors were encountered: