diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-10 00:04:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-10 00:04:09 +0000 |
| commit | fe5cf538f542ddf039553a1539eb67b0d7bd9784 (patch) | |
| tree | de5dcf3a92c50cab9c75373e9bf76013abf0e3d8 /unityplugin/GhostCubePlugin/PluginSource | |
| parent | Added cmd line option to select render backend in asteroids demo (diff) | |
| download | DiligentEngine-fe5cf538f542ddf039553a1539eb67b0d7bd9784.tar.gz DiligentEngine-fe5cf538f542ddf039553a1539eb67b0d7bd9784.zip | |
Updated core & samples submodules. Using convenience constructors for DrawAttribs
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
| -rw-r--r-- | unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp index 4b69675..164cea5 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp +++ b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp @@ -166,10 +166,6 @@ void SamplePlugin::Render(Diligent::IDeviceContext *pContext, const float4x4 &Vi pContext->SetPipelineState(m_PSO); pContext->CommitShaderResources(m_SRB, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); - DrawAttribs DrawAttrs; - DrawAttrs.IsIndexed = true; - DrawAttrs.IndexType = VT_UINT32; - DrawAttrs.NumIndices = 36; - DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; + DrawAttribs DrawAttrs(36, VT_UINT32, DRAW_FLAG_VERIFY_STATES); pContext->Draw(DrawAttrs); } |
