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 --- Tests/TestApp/src/TestTexturing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestTexturing.cpp') diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index 9a9b356..29e96d9 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -283,9 +283,8 @@ void TestTexturing::Draw() m_pDeviceContext->CommitShaderResources(nullptr, 0); IBuffer *pBuffs[] = {m_pVertexBuff}; - Uint32 Strides[] = {sizeof(float)*5}; Uint32 Offsets[] = {0}; - m_pDeviceContext->SetVertexBuffers( 0, 1, pBuffs, Strides, Offsets, SET_VERTEX_BUFFERS_FLAG_RESET ); + m_pDeviceContext->SetVertexBuffers( 0, 1, pBuffs, Offsets, SET_VERTEX_BUFFERS_FLAG_RESET ); Diligent::DrawAttribs DrawAttrs; DrawAttrs.NumVertices = 4; // Draw quad -- cgit v1.2.3