|
@@ -248,15 +248,12 @@ namespace AZ
|
|
|
descriptorIndexingFeatures.shaderInputAttachmentArrayNonUniformIndexing = physicalDeviceDescriptorIndexingFeatures.shaderInputAttachmentArrayNonUniformIndexing;
|
|
|
descriptorIndexingFeatures.shaderUniformTexelBufferArrayNonUniformIndexing = physicalDeviceDescriptorIndexingFeatures.shaderUniformTexelBufferArrayNonUniformIndexing;
|
|
|
descriptorIndexingFeatures.shaderStorageTexelBufferArrayNonUniformIndexing = physicalDeviceDescriptorIndexingFeatures.shaderStorageTexelBufferArrayNonUniformIndexing;
|
|
|
- descriptorIndexingFeatures.descriptorBindingPartiallyBound = physicalDeviceDescriptorIndexingFeatures.shaderStorageTexelBufferArrayNonUniformIndexing;
|
|
|
+ descriptorIndexingFeatures.descriptorBindingPartiallyBound = physicalDeviceDescriptorIndexingFeatures.descriptorBindingPartiallyBound;
|
|
|
descriptorIndexingFeatures.descriptorBindingVariableDescriptorCount = physicalDeviceDescriptorIndexingFeatures.descriptorBindingVariableDescriptorCount;
|
|
|
descriptorIndexingFeatures.runtimeDescriptorArray = physicalDeviceDescriptorIndexingFeatures.runtimeDescriptorArray;
|
|
|
- descriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind =
|
|
|
- physicalDeviceDescriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind;
|
|
|
- descriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind =
|
|
|
- physicalDeviceDescriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind;
|
|
|
- descriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind =
|
|
|
- physicalDeviceDescriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind;
|
|
|
+ descriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind = physicalDeviceDescriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind;
|
|
|
+ descriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind = physicalDeviceDescriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind;
|
|
|
+ descriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind = physicalDeviceDescriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind;
|
|
|
|
|
|
auto bufferDeviceAddressFeatures = physicalDevice.GetPhysicalDeviceBufferDeviceAddressFeatures();
|
|
|
auto depthClipEnabled = physicalDevice.GetPhysicalDeviceDepthClipEnableFeatures();
|
|
@@ -265,7 +262,7 @@ namespace AZ
|
|
|
|
|
|
VkPhysicalDeviceRobustness2FeaturesEXT robustness2 = {};
|
|
|
robustness2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT;
|
|
|
- robustness2.nullDescriptor = physicalDevice.GetPhysicalDeviceRobutness2Features().nullDescriptor;
|
|
|
+ robustness2.nullDescriptor = physicalDevice.GetPhysicalDeviceRobustness2Features().nullDescriptor;
|
|
|
|
|
|
bufferDeviceAddressFeatures.pNext = nullptr;
|
|
|
depthClipEnabled.pNext = nullptr;
|
|
@@ -289,23 +286,23 @@ namespace AZ
|
|
|
AppendVkStruct(chainInit, &subpassMergeFeedback);
|
|
|
}
|
|
|
|
|
|
- auto fragmenDensityMapFeatures = physicalDevice.GetPhysicalDeviceFragmentDensityMapFeatures();
|
|
|
- auto fragmenShadingRateFeatures = physicalDevice.GetPhysicalDeviceFragmentShadingRateFeatures();
|
|
|
+ auto fragmentDensityMapFeatures = physicalDevice.GetPhysicalDeviceFragmentDensityMapFeatures();
|
|
|
+ auto fragmentShadingRateFeatures = physicalDevice.GetPhysicalDeviceFragmentShadingRateFeatures();
|
|
|
|
|
|
- if (fragmenShadingRateFeatures.attachmentFragmentShadingRate)
|
|
|
+ if (fragmentShadingRateFeatures.attachmentFragmentShadingRate)
|
|
|
{
|
|
|
// Must disable the "FragmentDensityMap" usage if "attachmentFragmentShadingRate" is enabled.
|
|
|
physicalDevice.DisableOptionalDeviceExtension(OptionalDeviceExtension::FragmentDensityMap);
|
|
|
- fragmenShadingRateFeatures.pNext = nullptr;
|
|
|
- AppendVkStruct(chainInit, &fragmenShadingRateFeatures);
|
|
|
+ fragmentShadingRateFeatures.pNext = nullptr;
|
|
|
+ AppendVkStruct(chainInit, &fragmentShadingRateFeatures);
|
|
|
}
|
|
|
- else if (fragmenDensityMapFeatures.fragmentDensityMap && fragmenDensityMapFeatures.fragmentDensityMapNonSubsampledImages)
|
|
|
+ else if (fragmentDensityMapFeatures.fragmentDensityMap && fragmentDensityMapFeatures.fragmentDensityMapNonSubsampledImages)
|
|
|
{
|
|
|
// We only support NonSubsampledImages when using fragment density map
|
|
|
// Must disable the "FragmentShadingRate" usage if "fragmentDensityMap" is enabled.
|
|
|
physicalDevice.DisableOptionalDeviceExtension(OptionalDeviceExtension::FragmentShadingRate);
|
|
|
- fragmenDensityMapFeatures.pNext = nullptr;
|
|
|
- AppendVkStruct(chainInit, &fragmenDensityMapFeatures);
|
|
|
+ fragmentDensityMapFeatures.pNext = nullptr;
|
|
|
+ AppendVkStruct(chainInit, &fragmentDensityMapFeatures);
|
|
|
}
|
|
|
|
|
|
VkPhysicalDeviceVulkan12Features vulkan12Features = {};
|
|
@@ -342,7 +339,6 @@ namespace AZ
|
|
|
vulkan12Features.descriptorBindingSampledImageUpdateAfterBind = physicalDevice.GetPhysicalDeviceVulkan12Features().descriptorBindingSampledImageUpdateAfterBind;
|
|
|
vulkan12Features.descriptorBindingStorageImageUpdateAfterBind = physicalDevice.GetPhysicalDeviceVulkan12Features().descriptorBindingStorageImageUpdateAfterBind;
|
|
|
vulkan12Features.descriptorBindingStorageBufferUpdateAfterBind = physicalDevice.GetPhysicalDeviceVulkan12Features().descriptorBindingStorageBufferUpdateAfterBind;
|
|
|
- vulkan12Features.descriptorBindingPartiallyBound = physicalDevice.GetPhysicalDeviceVulkan12Features().descriptorBindingPartiallyBound;
|
|
|
vulkan12Features.descriptorBindingUpdateUnusedWhilePending = physicalDevice.GetPhysicalDeviceVulkan12Features().descriptorBindingUpdateUnusedWhilePending;
|
|
|
vulkan12Features.shaderOutputViewportIndex = physicalDevice.GetPhysicalDeviceVulkan12Features().shaderOutputViewportIndex;
|
|
|
vulkan12Features.shaderOutputLayer = physicalDevice.GetPhysicalDeviceVulkan12Features().shaderOutputLayer;
|