From 4e48b38928cc62ba1be76ba2b17e2ab16e0b436e Mon Sep 17 00:00:00 2001 From: Hugues Evrard Date: Wed, 15 Jan 2020 16:29:47 +0000 Subject: [PATCH] Fix Android build of computecloth demo The NDK compiler currently fails with: ``` examples/computecloth/computecloth.cpp:71:23: error: cannot initialize a member subobject of type 'VkSemaphore' (aka 'unsigned long long') with an rvalue of type 'nullptr_t' VkSemaphore ready{ nullptr }; ``` --- examples/computecloth/computecloth.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/computecloth/computecloth.cpp b/examples/computecloth/computecloth.cpp index c8f99501..a084442e 100644 --- a/examples/computecloth/computecloth.cpp +++ b/examples/computecloth/computecloth.cpp @@ -68,8 +68,8 @@ public: vks::Buffer output; } storageBuffers; struct Semaphores { - VkSemaphore ready{ nullptr }; - VkSemaphore complete{ nullptr }; + VkSemaphore ready{ 0L }; + VkSemaphore complete{ 0L }; } semaphores; vks::Buffer uniformBuffer; VkQueue queue; @@ -827,4 +827,4 @@ public: } }; -VULKAN_EXAMPLE_MAIN() \ No newline at end of file +VULKAN_EXAMPLE_MAIN()