updated VulkanSDK to 1.3.204
This commit is contained in:
parent
c4e69ab6ca
commit
16425b5598
@ -13,10 +13,12 @@ class GPUPhysicalDevice
|
|||||||
VkPhysicalDeviceFeatures features;
|
VkPhysicalDeviceFeatures features;
|
||||||
VkPhysicalDeviceVulkan11Features features11;
|
VkPhysicalDeviceVulkan11Features features11;
|
||||||
VkPhysicalDeviceVulkan12Features features12;
|
VkPhysicalDeviceVulkan12Features features12;
|
||||||
|
VkPhysicalDeviceVulkan13Features features13;
|
||||||
|
|
||||||
VkPhysicalDeviceProperties properties;
|
VkPhysicalDeviceProperties properties;
|
||||||
VkPhysicalDeviceVulkan11Properties properties11;
|
VkPhysicalDeviceVulkan11Properties properties11;
|
||||||
VkPhysicalDeviceVulkan12Properties properties12;
|
VkPhysicalDeviceVulkan12Properties properties12;
|
||||||
|
VkPhysicalDeviceVulkan13Properties properties13;
|
||||||
|
|
||||||
VkPhysicalDeviceMemoryProperties memory_properties;
|
VkPhysicalDeviceMemoryProperties memory_properties;
|
||||||
List<VkLayerProperties> layer_properties;
|
List<VkLayerProperties> layer_properties;
|
||||||
@ -43,6 +45,7 @@ public:
|
|||||||
const VkPhysicalDeviceFeatures & GetFeatures10 ()const{return features;}
|
const VkPhysicalDeviceFeatures & GetFeatures10 ()const{return features;}
|
||||||
const VkPhysicalDeviceVulkan11Features &GetFeatures11 ()const{return features11;}
|
const VkPhysicalDeviceVulkan11Features &GetFeatures11 ()const{return features11;}
|
||||||
const VkPhysicalDeviceVulkan12Features &GetFeatures12 ()const{return features12;}
|
const VkPhysicalDeviceVulkan12Features &GetFeatures12 ()const{return features12;}
|
||||||
|
const VkPhysicalDeviceVulkan13Features &GetFeatures13 ()const{return features13;}
|
||||||
|
|
||||||
const VkPhysicalDeviceProperties & GetProperties ()const{return properties;}
|
const VkPhysicalDeviceProperties & GetProperties ()const{return properties;}
|
||||||
const VkPhysicalDeviceMemoryProperties &GetMemoryProperties ()const{return memory_properties;}
|
const VkPhysicalDeviceMemoryProperties &GetMemoryProperties ()const{return memory_properties;}
|
||||||
|
@ -306,6 +306,29 @@ namespace
|
|||||||
#undef OUTPUT_PHYSICAL_DEVICE_FEATURE
|
#undef OUTPUT_PHYSICAL_DEVICE_FEATURE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DebugOut(const VkPhysicalDeviceVulkan13Features &features)
|
||||||
|
{
|
||||||
|
std::cout<<"Vulkan 1.3 features"<<std::endl;
|
||||||
|
|
||||||
|
#define OUTPUT_PHYSICAL_DEVICE_FEATURE(name) std::cout<<std::setw(60)<<std::right<<#name<<": "<<(features.name?"true":"false")<<std::endl;
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(robustImageAccess)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(inlineUniformBlock)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(descriptorBindingInlineUniformBlockUpdateAfterBind)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(pipelineCreationCacheControl)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(privateData)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(shaderDemoteToHelperInvocation)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(shaderTerminateInvocation)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(subgroupSizeControl)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(computeFullSubgroups)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(synchronization2)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(textureCompressionASTC_HDR)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(shaderZeroInitializeWorkgroupMemory)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(dynamicRendering)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(shaderIntegerDotProduct)
|
||||||
|
OUTPUT_PHYSICAL_DEVICE_FEATURE(maintenance4)
|
||||||
|
#undef OUTPUT_PHYSICAL_DEVICE_FEATURE
|
||||||
|
}
|
||||||
|
|
||||||
void DebugOutVersion(uint32_t version)
|
void DebugOutVersion(uint32_t version)
|
||||||
{
|
{
|
||||||
std::cout<<VK_VERSION_MAJOR(version)<<"."<<VK_VERSION_MINOR(version)<<"."<<VK_VERSION_PATCH(version)<<std::endl;
|
std::cout<<VK_VERSION_MAJOR(version)<<"."<<VK_VERSION_MINOR(version)<<"."<<VK_VERSION_PATCH(version)<<std::endl;
|
||||||
@ -496,6 +519,7 @@ GPUDevice *CreateRenderDevice(VulkanInstance *inst,const GPUPhysicalDevice *phys
|
|||||||
DebugOut(physical_device->GetFeatures10());
|
DebugOut(physical_device->GetFeatures10());
|
||||||
DebugOut(physical_device->GetFeatures11());
|
DebugOut(physical_device->GetFeatures11());
|
||||||
DebugOut(physical_device->GetFeatures12());
|
DebugOut(physical_device->GetFeatures12());
|
||||||
|
DebugOut(physical_device->GetFeatures13());
|
||||||
}
|
}
|
||||||
#endif//_DEBUG
|
#endif//_DEBUG
|
||||||
|
|
||||||
|
@ -73,7 +73,10 @@ GPUPhysicalDevice::GPUPhysicalDevice(VkInstance inst,VkPhysicalDevice pd)
|
|||||||
features11.pNext=&features12;
|
features11.pNext=&features12;
|
||||||
|
|
||||||
features12.sType=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
features12.sType=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
|
||||||
features12.pNext=nullptr;
|
features12.pNext=&features13;
|
||||||
|
|
||||||
|
features13.sType=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
|
||||||
|
features13.pNext=nullptr;
|
||||||
|
|
||||||
func(physical_device,&features2);
|
func(physical_device,&features2);
|
||||||
|
|
||||||
@ -85,6 +88,7 @@ GPUPhysicalDevice::GPUPhysicalDevice(VkInstance inst,VkPhysicalDevice pd)
|
|||||||
|
|
||||||
hgl_zero(features11);
|
hgl_zero(features11);
|
||||||
hgl_zero(features12);
|
hgl_zero(features12);
|
||||||
|
hgl_zero(features13);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +106,10 @@ GPUPhysicalDevice::GPUPhysicalDevice(VkInstance inst,VkPhysicalDevice pd)
|
|||||||
properties11.pNext=&properties12;
|
properties11.pNext=&properties12;
|
||||||
|
|
||||||
properties12.sType=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES;
|
properties12.sType=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES;
|
||||||
properties12.pNext=nullptr;
|
properties12.pNext=&properties13;
|
||||||
|
|
||||||
|
properties13.sType=VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES;
|
||||||
|
properties13.pNext=nullptr;
|
||||||
|
|
||||||
func(physical_device,&properties2);
|
func(physical_device,&properties2);
|
||||||
|
|
||||||
@ -114,6 +121,7 @@ GPUPhysicalDevice::GPUPhysicalDevice(VkInstance inst,VkPhysicalDevice pd)
|
|||||||
|
|
||||||
hgl_zero(properties11);
|
hgl_zero(properties11);
|
||||||
hgl_zero(properties12);
|
hgl_zero(properties12);
|
||||||
|
hgl_zero(properties13);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user