clang-format the src/Vulkan directory
Bug: b/144825072
Change-Id: I1bd5196b34a7974a41dcb95814a1ae8643b26f22
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/39658
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Vulkan/VkMemory.cpp b/src/Vulkan/VkMemory.cpp
index 128e648..76afb0e 100644
--- a/src/Vulkan/VkMemory.cpp
+++ b/src/Vulkan/VkMemory.cpp
@@ -15,24 +15,22 @@
#ifndef VK_OBJECT_HPP_
#define VK_OBJECT_HPP_
-#include "VkConfig.h"
#include "VkMemory.h"
+#include "VkConfig.h"
#include "System/Memory.hpp"
namespace vk {
-void* allocate(size_t count, size_t alignment, const VkAllocationCallbacks* pAllocator, VkSystemAllocationScope allocationScope)
+void *allocate(size_t count, size_t alignment, const VkAllocationCallbacks *pAllocator, VkSystemAllocationScope allocationScope)
{
- return pAllocator ?
- pAllocator->pfnAllocation(pAllocator->pUserData, count, alignment, allocationScope) :
- sw::allocate(count, alignment);
+ return pAllocator ? pAllocator->pfnAllocation(pAllocator->pUserData, count, alignment, allocationScope) : sw::allocate(count, alignment);
}
-void deallocate(void* ptr, const VkAllocationCallbacks* pAllocator)
+void deallocate(void *ptr, const VkAllocationCallbacks *pAllocator)
{
pAllocator ? pAllocator->pfnFree(pAllocator->pUserData, ptr) : sw::deallocate(ptr);
}
} // namespace vk
-#endif // VK_OBJECT_HPP_
+#endif // VK_OBJECT_HPP_