From 242976bdb0efc39bdb127480d76d9838754fd4e8 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 10 May 2020 17:05:19 -0700 Subject: Added SHADER_SOURCE_LANGUAGE_GLSL_VERBATIM (API Version 240059). --- Graphics/GraphicsEngine/interface/APIInfo.h | 2 +- Graphics/GraphicsEngine/interface/Shader.h | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/APIInfo.h b/Graphics/GraphicsEngine/interface/APIInfo.h index ef2ec283..fc177e9e 100644 --- a/Graphics/GraphicsEngine/interface/APIInfo.h +++ b/Graphics/GraphicsEngine/interface/APIInfo.h @@ -30,7 +30,7 @@ /// \file /// Diligent API information -#define DILIGENT_API_VERSION 240058 +#define DILIGENT_API_VERSION 240059 #include "../../../Primitives/interface/BasicTypes.h" diff --git a/Graphics/GraphicsEngine/interface/Shader.h b/Graphics/GraphicsEngine/interface/Shader.h index 20508a9d..8a10757f 100644 --- a/Graphics/GraphicsEngine/interface/Shader.h +++ b/Graphics/GraphicsEngine/interface/Shader.h @@ -65,7 +65,16 @@ DILIGENT_TYPED_ENUM(SHADER_SOURCE_LANGUAGE, Uint32) SHADER_SOURCE_LANGUAGE_HLSL, /// The source language is GLSL - SHADER_SOURCE_LANGUAGE_GLSL + SHADER_SOURCE_LANGUAGE_GLSL, + + /// The source language is GLSL which should be compiled verbatim + + /// 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. + SHADER_SOURCE_LANGUAGE_GLSL_VERBATIM }; /// Shader description -- cgit v1.2.3