summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestTessellation.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-18 19:07:45 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-18 19:07:45 +0000
commitd1fef63d12a1c7929cad9f15881db192f62ffc86 (patch)
treea46b5748d709096c5e3e42299023e16f8faafd4d /Tests/TestApp/src/TestTessellation.cpp
parentEnabled CS conversion test in the test app; updated core submodule (diff)
downloadDiligentEngine-d1fef63d12a1c7929cad9f15881db192f62ffc86.tar.gz
DiligentEngine-d1fef63d12a1c7929cad9f15881db192f62ffc86.zip
Added debug checks to tessellation test
Diffstat (limited to 'Tests/TestApp/src/TestTessellation.cpp')
-rw-r--r--Tests/TestApp/src/TestTessellation.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/TestApp/src/TestTessellation.cpp b/Tests/TestApp/src/TestTessellation.cpp
index dacb1cf..e48bff8 100644
--- a/Tests/TestApp/src/TestTessellation.cpp
+++ b/Tests/TestApp/src/TestTessellation.cpp
@@ -51,24 +51,28 @@ void TestTessellation::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont
CreationAttrs.FilePath = "Shaders\\TessTestQuadDX.vsh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_VERTEX;
pDevice->CreateShader( CreationAttrs, &pVS );
+ VERIFY_EXPR(pVS);
}
{
CreationAttrs.FilePath = "Shaders\\TessTestQuadDX.hsh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_HULL;
pDevice->CreateShader( CreationAttrs, &pHS );
+ VERIFY_EXPR(pHS);
}
{
CreationAttrs.FilePath = "Shaders\\TessTestQuadDX.dsh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_DOMAIN;
pDevice->CreateShader( CreationAttrs, &pDS );
+ VERIFY_EXPR(pDS);
}
{
CreationAttrs.FilePath = "Shaders\\GSTestDX.psh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_PIXEL;
pDevice->CreateShader( CreationAttrs, &pPS );
+ VERIFY_EXPR(pPS);
}
PipelineStateDesc PSODesc;
@@ -93,6 +97,7 @@ void TestTessellation::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont
CreationAttrs.FilePath = "Shaders\\TessTestTriDX.vsh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_VERTEX;
pDevice->CreateShader( CreationAttrs, &pVS );
+ VERIFY_EXPR(pVS);
}
{
@@ -100,6 +105,7 @@ void TestTessellation::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont
CreationAttrs.FilePath = "Shaders\\TessTestTriDX.hsh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_HULL;
pDevice->CreateShader( CreationAttrs, &pHS );
+ VERIFY_EXPR(pHS);
}
{
@@ -107,6 +113,7 @@ void TestTessellation::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont
CreationAttrs.FilePath = "Shaders\\TessTestTriDX.dsh";
CreationAttrs.Desc.ShaderType = SHADER_TYPE_DOMAIN;
pDevice->CreateShader( CreationAttrs, &pDS );
+ VERIFY_EXPR(pDS);
}
PSODesc.GraphicsPipeline.pPS = pPS;