Skip to content

Commit 08bb052

Browse files
Use the right API version defines (#351)
1 parent ec7d5a0 commit 08bb052

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

en/12_Ecosystem_Utilities_and_Compatibility.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ The first step is to detect what features are available on the user's GPU. This
213213
bool dynamicRenderingSupported = false;
214214
215215
// Check for Vulkan 1.3 support
216-
if (deviceProperties.apiVersion >= VK_VERSION_1_3) {
216+
if (deviceProperties.apiVersion >= VK_API_VERSION_1_3) {
217217
dynamicRenderingSupported = true;
218218
} else {
219219
// Check for the extension on older Vulkan versions
@@ -419,7 +419,7 @@ Timeline semaphores (introduced in Vulkan 1.2) provide a more flexible synchroni
419419
bool timelineSemaphoresSupported = false;
420420
421421
// Check for Vulkan 1.2 support or extension
422-
if (deviceProperties.apiVersion >= VK_VERSION_1_2) {
422+
if (deviceProperties.apiVersion >= VK_API_VERSION_1_2) {
423423
timelineSemaphoresSupported = true;
424424
} else {
425425
// Check for extension
@@ -471,7 +471,7 @@ The Synchronization2 feature (Vulkan 1.3) simplifies pipeline barriers and memor
471471
bool synchronization2Supported = false;
472472
473473
// Check for Vulkan 1.3 support or extension
474-
if (deviceProperties.apiVersion >= VK_VERSION_1_3) {
474+
if (deviceProperties.apiVersion >= VK_API_VERSION_1_3) {
475475
synchronization2Supported = true;
476476
} else {
477477
// Check for extension

en/13_Vulkan_Profiles.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ In the previous chapter, we had to write code like this for *each feature* we wa
191191
bool dynamicRenderingSupported = false;
192192
193193
// Check for Vulkan 1.3 support
194-
if (deviceProperties.apiVersion >= VK_VERSION_1_3) {
194+
if (deviceProperties.apiVersion >= VK_API_VERSION_1_3) {
195195
dynamicRenderingSupported = true;
196196
} else {
197197
// Check for the extension on older Vulkan versions

0 commit comments

Comments
 (0)