Fix a few compiler warnings and startup/validation issues at runtime (#1193)
* Add error recovery to trianglevulkan13 and fix missing "override" compiler warnings * Look for vkGetPhysicalDeviceFormatProperties2KHR in hostimagecopy example * Enable fragmentStoresAndAtomics feature to avoid VVL warning in subpasses example
This commit is contained in:
parent
02ed0eebb3
commit
d14be3b787
3 changed files with 11 additions and 1 deletions
|
|
@ -140,6 +140,14 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
virtual void getEnabledFeatures() override
|
||||
{
|
||||
// Vulkan 1.3 device support is required for this example
|
||||
if (deviceProperties.apiVersion < VK_API_VERSION_1_3) {
|
||||
vks::tools::exitFatal("Selected GPU does not support support Vulkan 1.3", VK_ERROR_INCOMPATIBLE_DRIVER);
|
||||
}
|
||||
}
|
||||
|
||||
// This function is used to request a device memory type that supports all the property flags we request (e.g. device local, host visible)
|
||||
// Upon success it will return the index of the memory type that fits our requested memory properties
|
||||
// This is necessary as implementations can offer an arbitrary number of memory types with different memory properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue