diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-18 20:50:08 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-18 20:50:08 +0000 |
| commit | d82315177ad89dedbc87dc39f8265be739fba394 (patch) | |
| tree | 976f11cced573d9e61266ec5c64fdb91553b034f /Graphics/GraphicsTools | |
| parent | Added IDataBlob::GetConstData method (diff) | |
| download | DiligentCore-d82315177ad89dedbc87dc39f8265be739fba394.tar.gz DiligentCore-d82315177ad89dedbc87dc39f8265be739fba394.zip | |
Updated HLSL2GLSLConverter and ShaderMacroHelper
Diffstat (limited to 'Graphics/GraphicsTools')
| -rw-r--r-- | Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp | 6 |
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 |
