diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-04-14 18:29:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-04-14 18:29:09 +0000 |
| commit | c09883fbe3951cd77543003ae1c6fdf6e5a11517 (patch) | |
| tree | 4bbcf4b08d6825f904bb613f3463dcfda7964a61 /RenderScript/src/RasterizerStateDescParser.cpp | |
| parent | Minor update to comply with updated graphics types (diff) | |
| download | DiligentTools-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/RasterizerStateDescParser.cpp')
| -rw-r--r-- | RenderScript/src/RasterizerStateDescParser.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/RenderScript/src/RasterizerStateDescParser.cpp b/RenderScript/src/RasterizerStateDescParser.cpp index 876ec4a..a2901dd 100644 --- a/RenderScript/src/RasterizerStateDescParser.cpp +++ b/RenderScript/src/RasterizerStateDescParser.cpp @@ -36,7 +36,7 @@ namespace Diligent "Unexpected map size. Did you update FILL_MODE enum?" ); VERIFY( m_FillModeEnumMapping.m_Val2StrMap.size() == FILL_MODE_NUM_MODES-1, "Unexpected map size. Did you update FILL_MODE enum?" ); - DEFINE_ENUM_BINDER( m_Bindings, RasterizerStateDesc, FillMode, FILL_MODE, m_FillModeEnumMapping ); + DEFINE_ENUM_BINDER( m_Bindings, RasterizerStateDesc, FillMode, m_FillModeEnumMapping ); DEFINE_ENUM_ELEMENT_MAPPING( m_CullModeEnumMapping, CULL_MODE_NONE ); DEFINE_ENUM_ELEMENT_MAPPING( m_CullModeEnumMapping, CULL_MODE_FRONT ); @@ -45,15 +45,15 @@ namespace Diligent "Unexpected map size. Did you update CULL_MODE enum?" ); VERIFY( m_CullModeEnumMapping.m_Val2StrMap.size() == CULL_MODE_NUM_MODES-1, "Unexpected map size. Did you update CULL_MODE enum?" ); - DEFINE_ENUM_BINDER( m_Bindings, RasterizerStateDesc, CullMode, CULL_MODE, m_CullModeEnumMapping ); + DEFINE_ENUM_BINDER( m_Bindings, RasterizerStateDesc, CullMode, m_CullModeEnumMapping ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, FrontCounterClockwise, Bool, Validator<Bool>() ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, DepthBias, Int32, Validator<Int32>() ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, DepthBiasClamp, Float32, Validator<Float32>() ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, SlopeScaledDepthBias, Float32, Validator<Float32>() ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, DepthClipEnable, Bool, Validator<Bool>() ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, ScissorEnable, Bool, Validator<Bool>() ); - DEFINE_BINDER( m_Bindings, RasterizerStateDesc, AntialiasedLineEnable, Bool, Validator<Bool>() ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, FrontCounterClockwise ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, DepthBias ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, DepthBiasClamp ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, SlopeScaledDepthBias ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, DepthClipEnable ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, ScissorEnable ); + DEFINE_BINDER( m_Bindings, RasterizerStateDesc, AntialiasedLineEnable ); }; void MemberBinder<RasterizerStateDesc> ::GetValue(lua_State *L, const void* pBasePointer) |
