aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp')
-rw-r--r--third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp b/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp
new file mode 100644
index 0000000000..58884630c5
--- /dev/null
+++ b/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2018 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+// Workaround to make sure we align non-coherent memory to nonCoherentAtomSize.
+#define VMA_DEBUG_ALIGNMENT 256
+
+// We use our own functions pointers
+#define VMA_STATIC_VULKAN_FUNCTIONS 0
+
+#define VMA_IMPLEMENTATION
+#include "GrVulkanMemoryAllocator.h"
+