summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestTextureCreation.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-07 20:07:36 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-07 20:07:36 +0000
commit940ae29c0187b1af68f6d1a79f7eac063a12b129 (patch)
tree9ca9f1ba623c8df2cb74c9eaf19d64af3d1e91a5 /Tests/TestApp/src/TestTextureCreation.cpp
parentUpdated core (removed some D3D11 debug names) (diff)
downloadDiligentEngine-940ae29c0187b1af68f6d1a79f7eac063a12b129.tar.gz
DiligentEngine-940ae29c0187b1af68f6d1a79f7eac063a12b129.zip
Updated Core: added SampleCounts and reworked texture format support checks in D3D11 and D3D12
Diffstat (limited to 'Tests/TestApp/src/TestTextureCreation.cpp')
-rw-r--r--Tests/TestApp/src/TestTextureCreation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestTextureCreation.cpp b/Tests/TestApp/src/TestTextureCreation.cpp
index 1bade31..dca027c 100644
--- a/Tests/TestApp/src/TestTextureCreation.cpp
+++ b/Tests/TestApp/src/TestTextureCreation.cpp
@@ -145,7 +145,7 @@ public:
{
if( TexCaps.bTexture2DMSSupported && (BindFlags & (BIND_RENDER_TARGET|BIND_DEPTH_STENCIL)) != 0 )
{
- if( PixelFormatAttribs.SupportsMS )
+ if( PixelFormatAttribs.SampleCounts & 0x04 )
{
CreateTestTexture( RESOURCE_DIM_TEX_2D, 4 );
CreateTestTexture( RESOURCE_DIM_TEX_2D, 4 );
@@ -163,7 +163,7 @@ public:
if( TexCaps.bTexture2DMSArraySupported && (BindFlags & (BIND_RENDER_TARGET|BIND_DEPTH_STENCIL)) != 0 )
{
- if( PixelFormatAttribs.SupportsMS )
+ if( PixelFormatAttribs.SampleCounts & 0x04 )
{
CreateTestTexture( RESOURCE_DIM_TEX_2D_ARRAY, 4 );
CreateTestTexture( RESOURCE_DIM_TEX_2D_ARRAY, 4 );