summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-07 18:43:31 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-07 18:43:31 +0000
commitd96453fea9e425997ed33e4fed18f31884069343 (patch)
tree011c9d3ab77f5df892ffdae7eb1eb87de0e46063 /Graphics/GraphicsEngineVulkan
parentImproved reporting of device capabilities (fixed https://github.com/DiligentG... (diff)
downloadDiligentCore-d96453fea9e425997ed33e4fed18f31884069343.tar.gz
DiligentCore-d96453fea9e425997ed33e4fed18f31884069343.zip
Improved device capabilities reporting
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp10
-rw-r--r--Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp5
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;