diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-03-12 19:13:55 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-03-12 19:13:55 +1100 |
| commit | 8fb45371b8a0d47a387f9e0c50e7700af14e3a7e (patch) | |
| tree | db18874ca2547777783bc1acf20bcb08f22ed7b1 /src/physical_device_context.cc | |
| parent | 44d88e25df14b7e191a15bfbe002a875d7c67056 (diff) | |
Check for bad returns on vulkan calls (lol!)
Diffstat (limited to 'src/physical_device_context.cc')
| -rw-r--r-- | src/physical_device_context.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc index 29b4ca3..66940f5 100644 --- a/src/physical_device_context.cc +++ b/src/physical_device_context.cc @@ -38,12 +38,12 @@ PhysicalDeviceContext::PhysicalDeviceContext( this->supports_required_extensions = [&]() { auto count = std::uint32_t{}; - vtable.EnumerateDeviceExtensionProperties(physical_device, nullptr, - &count, nullptr); - + THROW_NON_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties( + physical_device, nullptr, &count, nullptr)); auto supported_extensions = std::vector<VkExtensionProperties>(count); - vtable.EnumerateDeviceExtensionProperties( - physical_device, nullptr, &count, std::data(supported_extensions)); + THROW_NON_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties( + physical_device, nullptr, &count, + std::data(supported_extensions))); const auto supported = supported_extensions | |
