summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-10-07 20:05:34 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-10-07 20:05:34 +0000
commit01a6742a3ccd45c8f8cd74f84c9b093c398450fc (patch)
tree2014633aca9baae701912aca1d01549dc5cd5e99 /Graphics/GraphicsEngineVulkan
parentRemoved D3D11 debug names for Depth-stencil, Rasterizer, Blend states and sam... (diff)
downloadDiligentCore-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.cpp4
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;
}
}
}