diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-07 20:05:34 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-07 20:05:34 +0000 |
| commit | 01a6742a3ccd45c8f8cd74f84c9b093c398450fc (patch) | |
| tree | 2014633aca9baae701912aca1d01549dc5cd5e99 /Graphics/GraphicsEngineVulkan | |
| parent | Removed D3D11 debug names for Depth-stencil, Rasterizer, Blend states and sam... (diff) | |
| download | DiligentCore-01a6742a3ccd45c8f8cd74f84c9b093c398450fc.tar.gz DiligentCore-01a6742a3ccd45c8f8cd74f84c9b093c398450fc.zip | |
Added TextureFormatInfoExt::SampleCounts. Reworked texture format support queries in D3D11 and D3D12
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } } |
