Enable the fault feature
This commit is contained in:
parent
c923ed233e
commit
af6ec41477
4 changed files with 14 additions and 1 deletions
|
|
@ -297,6 +297,11 @@ std::vector<VulkanPhysicalDevice> VulkanInstance::GetPhysicalDevices(VkInstance
|
|||
*next = &dev.Features.DescriptorIndexing;
|
||||
next = &dev.Features.DescriptorIndexing.pNext;
|
||||
}
|
||||
if (checkForExtension(VK_EXT_DEVICE_FAULT_EXTENSION_NAME))
|
||||
{
|
||||
*next = &dev.Features.Fault;
|
||||
next = &dev.Features.Fault.pNext;
|
||||
}
|
||||
|
||||
vkGetPhysicalDeviceFeatures2(dev.Device, &deviceFeatures2);
|
||||
dev.Features.Features = deviceFeatures2.features;
|
||||
|
|
@ -304,6 +309,7 @@ std::vector<VulkanPhysicalDevice> VulkanInstance::GetPhysicalDevices(VkInstance
|
|||
dev.Features.AccelerationStructure.pNext = nullptr;
|
||||
dev.Features.RayQuery.pNext = nullptr;
|
||||
dev.Features.DescriptorIndexing.pNext = nullptr;
|
||||
dev.Features.Fault.pNext = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue