summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-09-20 21:13:47 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-09-20 21:13:47 +0000
commit58c21c74df84655423e2ae8ebd14357e7af81bea (patch)
tree144eed23f6feff70f8147698d3984357b87580bf /Graphics/GraphicsEngine
parentUpdated submodules and release history (diff)
downloadDiligentCore-58c21c74df84655423e2ae8ebd14357e7af81bea.tar.gz
DiligentCore-58c21c74df84655423e2ae8ebd14357e7af81bea.zip
Added support for shader macros when compiling GLSL_VERBATIM with glslang
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/Shader.h5
1 files changed, 3 insertions, 2 deletions
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
};