summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-04-18 20:50:08 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-04-18 20:50:08 +0000
commitd82315177ad89dedbc87dc39f8265be739fba394 (patch)
tree976f11cced573d9e61266ec5c64fdb91553b034f /Graphics/GraphicsTools
parentAdded IDataBlob::GetConstData method (diff)
downloadDiligentCore-d82315177ad89dedbc87dc39f8265be739fba394.tar.gz
DiligentCore-d82315177ad89dedbc87dc39f8265be739fba394.zip
Updated HLSL2GLSLConverter and ShaderMacroHelper
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp b/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp
index 15b9b59e..fb964abd 100644
--- a/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp
+++ b/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp
@@ -165,4 +165,10 @@ inline void ShaderMacroHelper::AddShaderMacro(const Char* Name, Uint32 Definitio
AddShaderMacro<const Char*>(Name, ss.str().c_str());
}
+template <>
+inline void ShaderMacroHelper::AddShaderMacro(const Char* Name, Uint8 Definition)
+{
+ AddShaderMacro(Name, Uint32{Definition});
+}
+
} // namespace Diligent