diff options
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 |
