Fix VulkanWrapper compilation VulkanWrapper is relying on include statements provided by Vulkan-Headers, which are removed in the next update, so this CL preemptively adds those include statements. Bug: b/176981107 Change-Id: I030990e342ba8852a09f52c4b4424208bf04969c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/67350 Reviewed-by: Nicolas Capens <nicolascapens@google.com> Commit-Queue: Alexis Hétu <sugoi@google.com> Tested-by: Alexis Hétu <sugoi@google.com> Presubmit-Ready: Alexis Hétu <sugoi@google.com>
diff --git a/tests/VulkanWrapper/DrawTester.hpp b/tests/VulkanWrapper/DrawTester.hpp index 23cbd93..4fc323f 100644 --- a/tests/VulkanWrapper/DrawTester.hpp +++ b/tests/VulkanWrapper/DrawTester.hpp
@@ -22,6 +22,9 @@ #include "VulkanTester.hpp" #include "Window.hpp" +#include <functional> +#include <memory> + enum class Multisample { False,
diff --git a/tests/VulkanWrapper/Framebuffer.hpp b/tests/VulkanWrapper/Framebuffer.hpp index 505eea1..e2126b6 100644 --- a/tests/VulkanWrapper/Framebuffer.hpp +++ b/tests/VulkanWrapper/Framebuffer.hpp
@@ -18,6 +18,8 @@ #include "Image.hpp" #include "VulkanHeaders.hpp" +#include <memory> + class Framebuffer { public:
diff --git a/tests/VulkanWrapper/Util.cpp b/tests/VulkanWrapper/Util.cpp index 452cb39..cfd00c1 100644 --- a/tests/VulkanWrapper/Util.cpp +++ b/tests/VulkanWrapper/Util.cpp
@@ -16,6 +16,8 @@ #include "SPIRV/GlslangToSpv.h" #include "StandAlone/ResourceLimits.h" +#include <memory> + namespace Util { uint32_t getMemoryTypeIndex(vk::PhysicalDevice physicalDevice, uint32_t typeBits, vk::MemoryPropertyFlags properties)
diff --git a/tests/VulkanWrapper/VulkanTester.hpp b/tests/VulkanWrapper/VulkanTester.hpp index 044bffc..dba887e 100644 --- a/tests/VulkanWrapper/VulkanTester.hpp +++ b/tests/VulkanWrapper/VulkanTester.hpp
@@ -17,6 +17,8 @@ #include "VulkanHeaders.hpp" +#include <memory> + class VulkanTester { public: