You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions that do not return a value must be declared as void. There is no default function return type. The keyword void cannot be used in any other declarations (except for empty formal or actual parameter lists), or an error results.
Glslang should fail compilation of the shader, and emit an error.
(In the generated spir-v foo returns an OpUndef of type array-of-two-void)
Glslang compiles this to SPIR-V.
The GLSL ES 3.2 spec says:
Glslang should fail compilation of the shader, and emit an error.
(In the generated spir-v foo returns an OpUndef of type array-of-two-void)
Glslang (correctly) rejects this shader:
producing this error:
The error is not quite right, because it implies
foo
is a 'void function'. That quality of the message was quite secondary.This is super low priority for me. I was just messing around. :-)
The text was updated successfully, but these errors were encountered: