From 40f5481223e8f97aeba64ceb0b363260899b37e0 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 21 Feb 2024 21:39:08 +0000 Subject: [PATCH 1/2] Update the vulkan_glfw sample for the latest roll of vulkan-deps --- examples/vulkan_glfw/src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vulkan_glfw/src/main.cc b/examples/vulkan_glfw/src/main.cc index 7d226055b56ed..c6fb9d591d496 100644 --- a/examples/vulkan_glfw/src/main.cc +++ b/examples/vulkan_glfw/src/main.cc @@ -512,7 +512,7 @@ int main(int argc, char** argv) { } // Load instance procs. - VULKAN_HPP_DEFAULT_DISPATCHER.init(g_state.instance); + VULKAN_HPP_DEFAULT_DISPATCHER.init(vk::Instance(g_state.instance)); /// -------------------------------------------------------------------------- /// Create the window surface. From 390d7cfcf6f3a46ff05f43d72293defb34db2072 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 21 Feb 2024 22:05:51 +0000 Subject: [PATCH 2/2] Workaround for -Wnewline-eof error in Vulkan headers --- examples/vulkan_glfw/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/vulkan_glfw/BUILD.gn b/examples/vulkan_glfw/BUILD.gn index cea552f66e2d5..12d41355e77f1 100644 --- a/examples/vulkan_glfw/BUILD.gn +++ b/examples/vulkan_glfw/BUILD.gn @@ -5,6 +5,9 @@ executable("vulkan_glfw") { output_name = "embedder_example_vulkan" + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + sources = [ "src/main.cc" ] deps = [