From 8bebe2b4629577e3c2b3fc80dcfb3d803c77a587 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 28 May 2018 21:52:52 -0700 Subject: Moved Stride to vertex layout desc; updated tests --- unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unityplugin/GhostCubePlugin/PluginSource') diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp index 8e425e9..f8017f2 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp +++ b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp @@ -156,10 +156,9 @@ void SamplePlugin::Render(Diligent::IDeviceContext *pContext, const float4x4 &Vi *CBConstants = transposeMatrix(ViewProjMatrix); } - Uint32 stride = sizeof(float) * 7; Uint32 offset = 0; IBuffer *pBuffs[] = {m_CubeVertexBuffer}; - pContext->SetVertexBuffers(0, 1, pBuffs, &stride, &offset, SET_VERTEX_BUFFERS_FLAG_RESET); + pContext->SetVertexBuffers(0, 1, pBuffs, &offset, SET_VERTEX_BUFFERS_FLAG_RESET); pContext->SetIndexBuffer(m_CubeIndexBuffer, 0); pContext->SetPipelineState(m_PSO); -- cgit v1.2.3