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 };
```
This commit is contained in:
Hugues Evrard 2020-01-15 16:29:47 +00:00
parent 8668606a14
commit 4e48b38928

View file

@ -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()
VULKAN_EXAMPLE_MAIN()