diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-01-07 18:43:31 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-01-07 18:43:31 +0000 |
| commit | d96453fea9e425997ed33e4fed18f31884069343 (patch) | |
| tree | 011c9d3ab77f5df892ffdae7eb1eb87de0e46063 /Graphics/GraphicsEngineVulkan | |
| parent | Improved reporting of device capabilities (fixed https://github.com/DiligentG... (diff) | |
| download | DiligentCore-d96453fea9e425997ed33e4fed18f31884069343.tar.gz DiligentCore-d96453fea9e425997ed33e4fed18f31884069343.zip | |
Improved device capabilities reporting
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp | 10 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp index 963c9a72..bc0980e6 100644 --- a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp @@ -180,11 +180,6 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& _E } \ } - ENABLE_FEATURE(depthBiasClamp) - ENABLE_FEATURE(depthClamp) - ENABLE_FEATURE(independentBlend) - ENABLE_FEATURE(dualSrcBlend) - ENABLE_FEATURE(multiViewport) ENABLE_FEATURE(textureCompressionBC) ENABLE_FEATURE(vertexPipelineStoresAndAtomics) ENABLE_FEATURE(fragmentStoresAndAtomics) @@ -199,6 +194,11 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& _E ENABLE_FEATURE(imageCubeArray); ENABLE_FEATURE(fillModeNonSolid); ENABLE_FEATURE(samplerAnisotropy); + ENABLE_FEATURE(depthBiasClamp); + ENABLE_FEATURE(depthClamp); + ENABLE_FEATURE(independentBlend); + ENABLE_FEATURE(dualSrcBlend); + ENABLE_FEATURE(multiViewport); #undef ENABLE_FEATURE DeviceCreateInfo.pEnabledFeatures = &DeviceFeatures; // NULL or a pointer to a VkPhysicalDeviceFeatures structure that contains diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp index e3c3ebe5..88e68693 100644 --- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp @@ -169,6 +169,11 @@ RenderDeviceVkImpl::RenderDeviceVkImpl(IReferenceCounters* Features.BinaryOcclusionQueries = True; Features.TimestampQueries = True; Features.PipelineStatisticsQueries = vkDeviceFeatures.pipelineStatisticsQuery != VK_FALSE; + Features.DepthBiasClamp = vkDeviceFeatures.depthBiasClamp != VK_FALSE; + Features.DepthClamp = vkDeviceFeatures.depthClamp != VK_FALSE; + Features.IndependentBlend = vkDeviceFeatures.independentBlend != VK_FALSE; + Features.DualSourceBlend = vkDeviceFeatures.dualSrcBlend != VK_FALSE; + Features.MultiViewport = vkDeviceFeatures.multiViewport != VK_FALSE; const auto& vkDeviceLimits = m_PhysicalDevice->GetProperties().limits; auto& TexCaps = m_DeviceCaps.TexCaps; |
