:: instead of . required

my first issue, just ran into this while trying it out myself

Is this the correct way to do this?
This commit is contained in:
brgalo 2022-10-28 23:07:30 +02:00 committed by Charles Giessen
parent c16de53814
commit 9545ed222e

View File

@ -59,7 +59,7 @@ auto inst_builder_ret = instance_builder
To query the available layers and extensions, get a `SystemInfo` struct from `SystemInfo::get_system_info()`. It contains a `is_layer_available()` and `is_extension_available()` function to check for a layer or extensions before enabling it. It also has booleans for if the validation layers are present and if the VK_EXT_debug_utils extension is available. To query the available layers and extensions, get a `SystemInfo` struct from `SystemInfo::get_system_info()`. It contains a `is_layer_available()` and `is_extension_available()` function to check for a layer or extensions before enabling it. It also has booleans for if the validation layers are present and if the VK_EXT_debug_utils extension is available.
```cpp ```cpp
auto system_info_ret = vkb::SystemInfo.get_system_info(); auto system_info_ret = vkb::SystemInfo::get_system_info();
if (!system_info_ret) { if (!system_info_ret) {
printf("%s\n", system_info_ret.error().message()); printf("%s\n", system_info_ret.error().message());
return -1; return -1;