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/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp index 62772d92..cc82f4b2 100644 --- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp @@ -397,7 +397,7 @@ void RenderDeviceVkImpl::TestTextureFormat( TEXTURE_FORMAT TexFormat ) TexFormatInfo.ColorRenderable = err == VK_SUCCESS; if (TexFormatInfo.ColorRenderable) { - TexFormatInfo.SupportsMS = ImgFmtProps.sampleCounts > VK_SAMPLE_COUNT_1_BIT; + TexFormatInfo.SampleCounts = ImgFmtProps.sampleCounts; } } } @@ -415,7 +415,7 @@ void RenderDeviceVkImpl::TestTextureFormat( TEXTURE_FORMAT TexFormat ) TexFormatInfo.DepthRenderable = err == VK_SUCCESS; if (TexFormatInfo.DepthRenderable) { - TexFormatInfo.SupportsMS = ImgFmtProps.sampleCounts > VK_SAMPLE_COUNT_1_BIT; + TexFormatInfo.SampleCounts = ImgFmtProps.sampleCounts; } } } -- cgit v1.2.3