summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubePlugin/PluginSource
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-10-19 21:31:56 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-10-19 21:31:56 +0000
commitaf5a3688c57f0f0a9406fb1ea488e093d5822aea (patch)
tree3780348ac277ab1df447c0b5d2bed6eef3b074f4 /unityplugin/GhostCubePlugin/PluginSource
parentFixed UWP build error (diff)
downloadDiligentEngine-af5a3688c57f0f0a9406fb1ea488e093d5822aea.tar.gz
DiligentEngine-af5a3688c57f0f0a9406fb1ea488e093d5822aea.zip
Updated submodules (API version 240033);
Enabled bindless mode in Asteroid demo
Diffstat (limited to 'unityplugin/GhostCubePlugin/PluginSource')
-rw-r--r--unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp
index af356c1..05321af 100644
--- a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp
+++ b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp
@@ -166,6 +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(36, VT_UINT32, DRAW_FLAG_VERIFY_ALL);
- pContext->Draw(DrawAttrs);
+ DrawIndexedAttribs DrawAttrs(36, VT_UINT32, DRAW_FLAG_VERIFY_ALL);
+ pContext->DrawIndexed(DrawAttrs);
}