mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 03:55:26 +00:00
Fixed code responsible for checking minimal required device parameters (limits).
This commit is contained in:
@@ -359,7 +359,7 @@ namespace ApiWithoutSecrets {
|
||||
|
||||
uint32_t major_version = VK_VERSION_MAJOR( device_properties.apiVersion );
|
||||
|
||||
if( (major_version < 1) &&
|
||||
if( (major_version < 1) ||
|
||||
(device_properties.limits.maxImageDimension2D < 4096) ) {
|
||||
std::cout << "Physical device " << physical_device << " doesn't support required parameters!" << std::endl;
|
||||
return false;
|
||||
|
||||
@@ -210,7 +210,7 @@ namespace ApiWithoutSecrets {
|
||||
uint32_t minor_version = VK_VERSION_MINOR( device_properties.apiVersion );
|
||||
uint32_t patch_version = VK_VERSION_PATCH( device_properties.apiVersion );
|
||||
|
||||
if( (major_version < 1) &&
|
||||
if( (major_version < 1) ||
|
||||
(device_properties.limits.maxImageDimension2D < 4096) ) {
|
||||
std::cout << "Physical device " << physical_device << " doesn't support required parameters!" << std::endl;
|
||||
return false;
|
||||
|
||||
@@ -335,7 +335,7 @@ namespace ApiWithoutSecrets {
|
||||
|
||||
uint32_t major_version = VK_VERSION_MAJOR( device_properties.apiVersion );
|
||||
|
||||
if( (major_version < 1) &&
|
||||
if( (major_version < 1) ||
|
||||
(device_properties.limits.maxImageDimension2D < 4096) ) {
|
||||
std::cout << "Physical device " << physical_device << " doesn't support required parameters!" << std::endl;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user