From 940ae29c0187b1af68f6d1a79f7eac063a12b129 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 7 Oct 2018 13:07:36 -0700 Subject: Updated Core: added SampleCounts and reworked texture format support checks in D3D11 and D3D12 --- Tests/TestApp/src/TestTextureCreation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestTextureCreation.cpp') 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 ); -- cgit v1.2.3