From af5a3688c57f0f0a9406fb1ea488e093d5822aea Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 19 Oct 2019 14:31:56 -0700 Subject: Updated submodules (API version 240033); Enabled bindless mode in Asteroid demo --- unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unityplugin/GhostCubePlugin/PluginSource') 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); } -- cgit v1.2.3