ScarletNX / ScarletNX documentation / glslc: GLSL ES into SPIR-V · ← previous · next →
Not compiled yet
Each of these is refused with an error that names it, or is a name the shader cannot use:
- the geometry and tessellation stages, core in 3.20;
- atomic counters (
atomic_uint), which have no Vulkan form;
- images inside structs, and images as function parameters;
- a struct that holds samplers inside another struct, an array of structs whose sampler member is an array, and a
struct's sampler read through anything but the uniform or parameter that holds it, such as a comma or
?:;
interpolateAtCentroid, interpolateAtSample, interpolateAtOffset; textureGatherOffsets;
gl_DepthRange; gl_MaxComputeWorkGroupCount and gl_MaxComputeWorkGroupSize;
- arrays of arrays of samplers, images or blocks: a Vulkan descriptor's array has one dimension;
- the preprocessor's
# and ##, which GLSL ES does not have either, and a line continuation inside a name or
number;
- an array size from a constant expression glslc does not fold, such as a built-in function's result;
samplerExternalOES, framebuffer fetch, and the extensions not listed above;
- desktop GLSL's other versions (1.30 to 1.50, 4.00 and later), its implicit conversions (an
int where a float
goes) and array constructors in 1.20, and the compatibility profile.
← previous · next →