aboutsummaryrefslogtreecommitdiff
path: root/src/physical_device_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/physical_device_context.cc')
-rw-r--r--src/physical_device_context.cc10
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 |