BUILDER_VALUE(LayerDescription, std::string, name, {})
BUILDER_VALUE(LayerDescription, Type, type, Type::INSTANCE)
BUILDER_VALUE(LayerDescription, fs::path, lib_path, {})
- BUILDER_VALUE(LayerDescription, uint32_t, api_version, VK_MAKE_VERSION(1, 0, 0))
+ BUILDER_VALUE(LayerDescription, uint32_t, api_version, VK_API_VERSION_1_0)
BUILDER_VALUE(LayerDescription, uint32_t, implementation_version, 0)
BUILDER_VALUE(LayerDescription, std::string, description, {})
BUILDER_VECTOR(LayerDescription, FunctionOverride, functions, function)
struct Extension {
BUILDER_VALUE(Extension, std::string, extensionName, {})
- BUILDER_VALUE(Extension, uint32_t, specVersion, VK_MAKE_VERSION(1, 0, 0))
+ BUILDER_VALUE(Extension, uint32_t, specVersion, VK_API_VERSION_1_0)
- Extension(std::string extensionName, uint32_t specVersion = VK_MAKE_VERSION(1, 0, 0))
+ Extension(std::string extensionName, uint32_t specVersion = VK_API_VERSION_1_0)
: extensionName(extensionName), specVersion(specVersion) {}
VkExtensionProperties get() const noexcept {
BUILDER_VALUE(InstanceCreateInfo, std::string, engine_name, {})
BUILDER_VALUE(InstanceCreateInfo, uint32_t, app_version, 0)
BUILDER_VALUE(InstanceCreateInfo, uint32_t, engine_version, 0)
- BUILDER_VALUE(InstanceCreateInfo, uint32_t, api_version, VK_MAKE_VERSION(1, 0, 0))
+ BUILDER_VALUE(InstanceCreateInfo, uint32_t, api_version, VK_API_VERSION_1_0)
BUILDER_VECTOR(InstanceCreateInfo, const char*, enabled_layers, layer)
BUILDER_VECTOR(InstanceCreateInfo, const char*, enabled_extensions, extension)
// tell the get() function to not provide `application_info`
// When ICD doesn't support the extension, create instance should fail
TEST_F(WsiTests, CreateSurfaceWin32NoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.enable_icd_wsi = false;
// When ICD doesn't support the surface creation, the loader should handle it
TEST_F(WsiTests, CreateSurfaceWin32NoICDCreateSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WIN32_SURFACE_EXTENSION_NAME});
// When ICD does support the surface creation, the loader should delegat handle it to the ICD
TEST_F(WsiTests, CreateSurfaceWin32ICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WIN32_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceWin32PresentNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WIN32_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceWin32PresentICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WIN32_SURFACE_EXTENSION_NAME});
// When ICD doesn't support the extension, create instance should fail
TEST_F(WsiTests, CreateSurfaceXCBNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.enable_icd_wsi = false;
// When ICD doesn't support the surface creation, the loader should handle it
TEST_F(WsiTests, CreateSurfaceXCBNoICDCreateSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XCB_SURFACE_EXTENSION_NAME});
// When ICD does support the surface creation, the loader should delegat handle it to the ICD
TEST_F(WsiTests, CreateSurfaceXCBICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XCB_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceXcbPresentNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XCB_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceXcbPresentICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XCB_SURFACE_EXTENSION_NAME});
// When ICD doesn't support the extension, create instance should fail
TEST_F(WsiTests, CreateSurfaceXLIBNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.enable_icd_wsi = false;
// When ICD doesn't support the surface creation, the loader should handle it
TEST_F(WsiTests, CreateSurfaceXLIBNoICDCreateSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XLIB_SURFACE_EXTENSION_NAME});
// When ICD does support the surface creation, the loader should delegat handle it to the ICD
TEST_F(WsiTests, CreateSurfaceXLIBICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XLIB_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceXlibPresentNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XLIB_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceXlibPresentICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_XLIB_SURFACE_EXTENSION_NAME});
// When ICD doesn't support the extension, create instance should fail
TEST_F(WsiTests, CreateSurfaceWaylandNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.enable_icd_wsi = false;
// When ICD doesn't support the surface creation, the loader should handle it
TEST_F(WsiTests, CreateSurfaceWaylandNoICDCreateSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME});
// When ICD does support the surface creation, the loader should delegat handle it to the ICD
TEST_F(WsiTests, CreateSurfaceWaylandICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceWaylandPresentNoICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME});
TEST_F(WsiTests, GetPhysicalDeviceWaylandPresentICDSupport) {
auto& driver = env->get_test_icd();
- driver.set_icd_api_version(VK_MAKE_VERSION(1, 0, 0));
+ driver.set_icd_api_version(VK_API_VERSION_1_0);
driver.set_min_icd_interface_version(5);
driver.add_instance_extension({VK_KHR_SURFACE_EXTENSION_NAME});
driver.add_instance_extension({VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME});