summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestShaderResArrays.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-10 00:04:09 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-10 00:04:09 +0000
commitfe5cf538f542ddf039553a1539eb67b0d7bd9784 (patch)
treede5dcf3a92c50cab9c75373e9bf76013abf0e3d8 /Tests/TestApp/src/TestShaderResArrays.cpp
parentAdded cmd line option to select render backend in asteroids demo (diff)
downloadDiligentEngine-fe5cf538f542ddf039553a1539eb67b0d7bd9784.tar.gz
DiligentEngine-fe5cf538f542ddf039553a1539eb67b0d7bd9784.zip
Updated core & samples submodules. Using convenience constructors for DrawAttribs
Diffstat (limited to 'Tests/TestApp/src/TestShaderResArrays.cpp')
-rw-r--r--Tests/TestApp/src/TestShaderResArrays.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestShaderResArrays.cpp b/Tests/TestApp/src/TestShaderResArrays.cpp
index 93b97e6..d3fbd48 100644
--- a/Tests/TestApp/src/TestShaderResArrays.cpp
+++ b/Tests/TestApp/src/TestShaderResArrays.cpp
@@ -189,9 +189,8 @@ void TestShaderResArrays::Draw()
Uint32 Offsets[] = {0};
m_pDeviceContext->SetVertexBuffers( 0, 1, pBuffs, Offsets, RESOURCE_STATE_TRANSITION_MODE_TRANSITION, SET_VERTEX_BUFFERS_FLAG_RESET );
- Diligent::DrawAttribs DrawAttrs;
- DrawAttrs.NumVertices = 4; // Draw quad
- DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES;
+ // Draw a quad
+ Diligent::DrawAttribs DrawAttrs(4, DRAW_FLAG_VERIFY_STATES);
m_pDeviceContext->Draw( DrawAttrs );
SetStatus(TestResult::Succeeded);