Constant hotglsl::GLSL_EXTENSIONS

source ·
pub const GLSL_EXTENSIONS: &[&str];
Expand description

The list of extensions that are considered valid shader extensions.

There are no real official extensions for GLSL files or even an official GLSL file format, but apparently Khronos’ reference GLSL compiler/validator uses these.

This is a subset from which we can infer the shader type (necessary for compiling the shader with glsl-to-spirv).