summaryrefslogtreecommitdiffstats
path: root/RenderScript/src/ShaderParser.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-14 18:29:09 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-14 18:29:09 +0000
commitc09883fbe3951cd77543003ae1c6fdf6e5a11517 (patch)
tree4bbcf4b08d6825f904bb613f3463dcfda7964a61 /RenderScript/src/ShaderParser.cpp
parentMinor update to comply with updated graphics types (diff)
downloadDiligentTools-c09883fbe3951cd77543003ae1c6fdf6e5a11517.tar.gz
DiligentTools-c09883fbe3951cd77543003ae1c6fdf6e5a11517.zip
Moved primitive topology from draw attribs to pipeline desc; fixed multiple issue with mismatching types used by Lua parsers
Diffstat (limited to 'RenderScript/src/ShaderParser.cpp')
-rw-r--r--RenderScript/src/ShaderParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/RenderScript/src/ShaderParser.cpp b/RenderScript/src/ShaderParser.cpp
index b6dd7e6..fb3e8ff 100644
--- a/RenderScript/src/ShaderParser.cpp
+++ b/RenderScript/src/ShaderParser.cpp
@@ -62,7 +62,7 @@ namespace Diligent
m_VarDescBufferOffset(VarDescBufferOffset),
m_VarNamesBufferOffset(VarNamesBufferOffset)
{
- DEFINE_ENUM_BINDER( m_Bindings, ShaderVariableDesc, Type, SHADER_VARIABLE_TYPE, m_ShaderVarTypeEnumMapping )
+ DEFINE_ENUM_BINDER( m_Bindings, ShaderVariableDesc, Type, m_ShaderVarTypeEnumMapping );
}
virtual void GetValue( lua_State *L, const void* pBasePointer )override
@@ -289,9 +289,9 @@ namespace Diligent
// keep pointer to it
m_Bindings.insert( std::make_pair( "Name", std::unique_ptr<MemberBinderBase>(pNameBinder) ) );
- DEFINE_ENUM_BINDER( m_Bindings, ShaderDesc, ShaderType, SHADER_TYPE, m_ShaderTypeEnumMapping )
+ DEFINE_ENUM_BINDER( m_Bindings, ShaderDesc, ShaderType, m_ShaderTypeEnumMapping );
- DEFINE_ENUM_BINDER( m_Bindings, ShaderDesc, DefaultVariableType, SHADER_VARIABLE_TYPE, m_ShaderVarTypeEnumMapping )
+ DEFINE_ENUM_BINDER( m_Bindings, ShaderDesc, DefaultVariableType, m_ShaderVarTypeEnumMapping );
auto *pShaderDescBinder =
new MemberBinder<ShaderVariableDescArrayParser>(
@@ -343,7 +343,7 @@ namespace Diligent
DEFINE_ENUM_ELEMENT_MAPPING( m_ShaderSourceLangEnumMapping, SHADER_SOURCE_LANGUAGE_DEFAULT );
DEFINE_ENUM_ELEMENT_MAPPING( m_ShaderSourceLangEnumMapping, SHADER_SOURCE_LANGUAGE_HLSL );
DEFINE_ENUM_ELEMENT_MAPPING( m_ShaderSourceLangEnumMapping, SHADER_SOURCE_LANGUAGE_GLSL );
- DEFINE_ENUM_BINDER( m_Bindings, ShaderCreationAttribsWrapper, SourceLanguage, SHADER_SOURCE_LANGUAGE, m_ShaderSourceLangEnumMapping );
+ DEFINE_ENUM_BINDER( m_Bindings, ShaderCreationAttribsWrapper, SourceLanguage, m_ShaderSourceLangEnumMapping );
auto *pShaderDescBinder =
new MemberBinder<ShaderDescLoader>(