From 01a6742a3ccd45c8f8cd74f84c9b093c398450fc Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 7 Oct 2018 13:05:34 -0700 Subject: Added TextureFormatInfoExt::SampleCounts. Reworked texture format support queries in D3D11 and D3D12 --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 169a0793..2c37c0d5 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1575,7 +1575,8 @@ namespace Diligent /// Indicates if the format can be used to create a cube texture bool TexCubeFmt = false; - /// Indicates if the format can be used to create a multisampled 2D texture - bool SupportsMS = false; + /// A bitmask specifying all the supported sample counts for this texture format. + /// If the format supports n samples, then (SampleCounts & n) != 0 + Uint32 SampleCounts = 0; }; } -- cgit v1.2.3