Skip to content

Commit 9fa68de

Browse files
committed
Make snippet in physical device chapter more clear
1 parent 2a716d8 commit 9fa68de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

03_Drawing_a_triangle/00_Setup/03_Physical_devices_and_queue_families.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ version can be queried using vkGetPhysicalDeviceProperties.
9191

9292
```c++
9393
VkPhysicalDeviceProperties deviceProperties;
94-
vkGetPhysicalDeviceProperties(physicalDevice, &deviceProperties);
94+
vkGetPhysicalDeviceProperties(device, &deviceProperties);
9595
```
9696
9797
The support for optional features like texture compression, 64 bit floats and
@@ -100,7 +100,7 @@ vkGetPhysicalDeviceFeatures:
100100
101101
```c++
102102
VkPhysicalDeviceFeatures deviceFeatures;
103-
vkGetPhysicalDeviceFeatures(physicalDevice, &deviceFeatures);
103+
vkGetPhysicalDeviceFeatures(device, &deviceFeatures);
104104
```
105105

106106
There are more details that can be queried from devices that we'll discuss later

0 commit comments

Comments
 (0)