Result (exit) codes for fatal terminations
This commit is contained in:
parent
90d7e09890
commit
df223f5b9b
29 changed files with 56 additions and 52 deletions
|
|
@ -912,9 +912,8 @@ public:
|
|||
{
|
||||
VulkanExampleBase::prepare();
|
||||
// Check if the GPU supports sparse residency for 2D images
|
||||
if (!vulkanDevice->features.sparseResidencyImage2D)
|
||||
{
|
||||
vks::tools::exitFatal("Device does not support sparse residency for 2D images!", "Feature not supported");
|
||||
if (!vulkanDevice->features.sparseResidencyImage2D) {
|
||||
vks::tools::exitFatal("Device does not support sparse residency for 2D images!", VK_ERROR_FEATURE_NOT_PRESENT);
|
||||
}
|
||||
loadAssets();
|
||||
generateTerrain();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue