From 58c21c74df84655423e2ae8ebd14357e7af81bea Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 20 Sep 2020 14:13:47 -0700 Subject: Added support for shader macros when compiling GLSL_VERBATIM with glslang --- Graphics/GraphicsEngine/interface/Shader.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/Shader.h b/Graphics/GraphicsEngine/interface/Shader.h index 63633db4..e004f7f1 100644 --- a/Graphics/GraphicsEngine/interface/Shader.h +++ b/Graphics/GraphicsEngine/interface/Shader.h @@ -76,8 +76,9 @@ DILIGENT_TYPED_ENUM(SHADER_SOURCE_LANGUAGE, Uint32) /// By default the engine prepends GLSL shader source code with platform-specific /// definitions. For instance it adds appropriate #version directive (e.g. '#version 430 core' or /// '#version 310 es') so that the same source will work on different versions of desktop OpenGL and OpenGLES. - /// When SHADER_SOURCE_LANGUAGE_GLSL_VERBATIM is used, the source code will be compiled - /// as is. Note that shader macro definitions will be ignored in this case. + /// When SHADER_SOURCE_LANGUAGE_GLSL_VERBATIM is used, the source code will be compiled as is. + /// Note that shader macros are ignored when compiling GLSL verbatim in OpenGL backend, and an application + /// should add the macro definitions to the source code. SHADER_SOURCE_LANGUAGE_GLSL_VERBATIM }; -- cgit v1.2.3