Open HenryDane opened 9 months ago
Either add runtime switches for features (e.g. with uniforms) or compile-time switches (e.g. #defines).
#define
Compile-time switches may require multiple versions of the compute shader, a preprocessor implementation, or a mixture thereof.
GLSL supports some preprocessor directives (e.g. #define, #ifdef, etc) but does not support #include.
#ifdef
#include
This technique may be useful.
Either add runtime switches for features (e.g. with uniforms) or compile-time switches (e.g.
#define
s).Compile-time switches may require multiple versions of the compute shader, a preprocessor implementation, or a mixture thereof.