Skip to content

Commit

Permalink
Updated headers to 1.3.266
Browse files Browse the repository at this point in the history
Adds support for:
- VK_ANDROID_external_format_resolve
  • Loading branch information
SaschaWillems committed Oct 2, 2023
1 parent 3024e31 commit 4e74c2a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions VulkanDeviceInfoExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ void VulkanDeviceInfoExtensions::readPhysicalProperties_AMDX() {
pushProperty2(extension, "executionGraphDispatchAddressAlignment", QVariant(extProps.executionGraphDispatchAddressAlignment));
}
}
void VulkanDeviceInfoExtensions::readPhysicalProperties_ANDROID() {
if (extensionSupported("VK_ANDROID_external_format_resolve")) {
const char* extension("VK_ANDROID_external_format_resolve");
VkPhysicalDeviceExternalFormatResolvePropertiesANDROID extProps { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_PROPERTIES_ANDROID };
VkPhysicalDeviceProperties2 deviceProps2(initDeviceProperties2(&extProps));
vulkanContext.vkGetPhysicalDeviceProperties2KHR(device, &deviceProps2);
pushProperty2(extension, "nullColorAttachmentWithExternalFormatResolve", QVariant(bool(extProps.nullColorAttachmentWithExternalFormatResolve)));
pushProperty2(extension, "externalFormatResolveChromaOffsetX", QVariant(extProps.externalFormatResolveChromaOffsetX));
pushProperty2(extension, "externalFormatResolveChromaOffsetY", QVariant(extProps.externalFormatResolveChromaOffsetY));
}
}
void VulkanDeviceInfoExtensions::readPhysicalProperties_ARM() {
if (extensionSupported("VK_ARM_shader_core_properties")) {
const char* extension("VK_ARM_shader_core_properties");
Expand Down Expand Up @@ -919,6 +930,7 @@ void VulkanDeviceInfoExtensions::readPhysicalProperties_QCOM() {
void VulkanDeviceInfoExtensions::readExtendedProperties() {
readPhysicalProperties_AMD();
readPhysicalProperties_AMDX();
readPhysicalProperties_ANDROID();
readPhysicalProperties_ARM();
readPhysicalProperties_EXT();
readPhysicalProperties_HUAWEI();
Expand Down Expand Up @@ -965,6 +977,15 @@ void VulkanDeviceInfoExtensions::readPhysicalFeatures_AMDX() {
pushFeature2(extension, "shaderEnqueue", extFeatures.shaderEnqueue);
}
}
void VulkanDeviceInfoExtensions::readPhysicalFeatures_ANDROID() {
if (extensionSupported("VK_ANDROID_external_format_resolve")) {
const char* extension("VK_ANDROID_external_format_resolve");
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID extFeatures { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID };
VkPhysicalDeviceFeatures2 deviceFeatures2(initDeviceFeatures2(&extFeatures));
vulkanContext.vkGetPhysicalDeviceFeatures2KHR(device, &deviceFeatures2);
pushFeature2(extension, "externalFormatResolve", extFeatures.externalFormatResolve);
}
}
void VulkanDeviceInfoExtensions::readPhysicalFeatures_ARM() {
if (extensionSupported("VK_ARM_rasterization_order_attachment_access")) {
const char* extension("VK_ARM_rasterization_order_attachment_access");
Expand Down Expand Up @@ -2309,6 +2330,7 @@ void VulkanDeviceInfoExtensions::readPhysicalFeatures_VALVE() {
void VulkanDeviceInfoExtensions::readExtendedFeatures() {
readPhysicalFeatures_AMD();
readPhysicalFeatures_AMDX();
readPhysicalFeatures_ANDROID();
readPhysicalFeatures_ARM();
readPhysicalFeatures_EXT();
readPhysicalFeatures_HUAWEI();
Expand Down
4 changes: 3 additions & 1 deletion VulkanDeviceInfoExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class VulkanDeviceInfoExtensions
void readPhysicalProperties_AMD();
void readPhysicalFeatures_AMDX();
void readPhysicalProperties_AMDX();
void readPhysicalFeatures_ANDROID();
void readPhysicalProperties_ANDROID();
void readPhysicalFeatures_ARM();
void readPhysicalProperties_ARM();
void readPhysicalFeatures_EXT();
Expand All @@ -92,7 +94,7 @@ class VulkanDeviceInfoExtensions
void readPhysicalFeatures_VALVE();

public:
const uint32_t vkHeaderVersion = 264;
const uint32_t vkHeaderVersion = 266;
std::vector<Feature2> features2;
std::vector<Property2> properties2;
std::vector<VkExtensionProperties> extensions;
Expand Down

0 comments on commit 4e74c2a

Please sign in to comment.