Skip to content
Snippets Groups Projects
Verified Commit 1bf8d6a5 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Added Vulkan 1.3 features support to manager

parent 5e7afc4e
No related branches found
No related tags found
1 merge request!105Resolve "Refactor Core API"
......@@ -304,6 +304,16 @@ namespace vkcv {
[[nodiscard]]
bool checkSupport(const vk::PhysicalDeviceRayTracingPipelineFeaturesKHR& features, bool required) const;
/**
* @brief Checks support of the @p vk::PhysicalDeviceVulkan13Features.
*
* @param[in] features The features
* @param[in] required True, if the @p features are required, else false
* @return @p True, if the @p features are supported, else @p false
*/
[[nodiscard]]
bool checkSupport(const vk::PhysicalDeviceVulkan13Features& features, bool required) const;
/**
* @brief Searches for a base structure of a given structure type.
*
......
......@@ -431,6 +431,28 @@ m_physicalDevice.getFeatures2(&query)
return true;
}
bool FeatureManager::checkSupport(const vk::PhysicalDeviceVulkan13Features &features, bool required) const {
vkcv_check_init_features2(vk::PhysicalDeviceVulkan13Features);
vkcv_check_feature(robustImageAccess);
vkcv_check_feature(inlineUniformBlock);
vkcv_check_feature(descriptorBindingInlineUniformBlockUpdateAfterBind);
vkcv_check_feature(pipelineCreationCacheControl);
vkcv_check_feature(privateData);
vkcv_check_feature(shaderDemoteToHelperInvocation);
vkcv_check_feature(shaderTerminateInvocation);
vkcv_check_feature(subgroupSizeControl);
vkcv_check_feature(computeFullSubgroups);
vkcv_check_feature(synchronization2);
vkcv_check_feature(textureCompressionASTC_HDR);
vkcv_check_feature(shaderZeroInitializeWorkgroupMemory);
vkcv_check_feature(dynamicRendering);
vkcv_check_feature(shaderIntegerDotProduct);
vkcv_check_feature(maintenance4);
return true;
}
vk::BaseOutStructure* FeatureManager::findFeatureStructure(vk::StructureType type) const {
for (auto& base : m_featuresExtensions) {
if (base->sType == type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment