diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-10 00:04:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-10 00:04:09 +0000 |
| commit | fe5cf538f542ddf039553a1539eb67b0d7bd9784 (patch) | |
| tree | de5dcf3a92c50cab9c75373e9bf76013abf0e3d8 /Tests/TestApp/src/TestShaderResourceLayout.cpp | |
| parent | Added cmd line option to select render backend in asteroids demo (diff) | |
| download | DiligentEngine-fe5cf538f542ddf039553a1539eb67b0d7bd9784.tar.gz DiligentEngine-fe5cf538f542ddf039553a1539eb67b0d7bd9784.zip | |
Updated core & samples submodules. Using convenience constructors for DrawAttribs
Diffstat (limited to 'Tests/TestApp/src/TestShaderResourceLayout.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestShaderResourceLayout.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestShaderResourceLayout.cpp b/Tests/TestApp/src/TestShaderResourceLayout.cpp index 966dc75..38cbd8d 100644 --- a/Tests/TestApp/src/TestShaderResourceLayout.cpp +++ b/Tests/TestApp/src/TestShaderResourceLayout.cpp @@ -392,9 +392,7 @@ TestShaderResourceLayout::TestShaderResourceLayout( IRenderDevice *pDevice, IDev pContext->SetPipelineState(pTestPSO); pContext->CommitShaderResources(pSRB, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); - DrawAttribs DrawAttrs; - DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; - DrawAttrs.NumVertices = 3; + DrawAttribs DrawAttrs(3, DRAW_FLAG_VERIFY_STATES); pContext->Draw(DrawAttrs); pSRB->GetVariable(SHADER_TYPE_PIXEL, "storageBuff_Dyn")->Set(pSBUAVs[1]); |
