HenryDane / glEBM

A high performancee EBM using OpenGL compute shaders.
GNU General Public License v3.0
1 stars 0 forks source link

Process Switches #14

Open HenryDane opened 9 months ago

HenryDane commented 9 months ago

Either add runtime switches for features (e.g. with uniforms) or compile-time switches (e.g. #defines).

Compile-time switches may require multiple versions of the compute shader, a preprocessor implementation, or a mixture thereof.

HenryDane commented 6 months ago

GLSL supports some preprocessor directives (e.g. #define, #ifdef, etc) but does not support #include.

This technique may be useful.