GrVulkanMemoryAllocator.cpp 431 B

1234567891011121314151617
  1. /*
  2. * Copyright 2018 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. // Workaround to make sure we align non-coherent memory to nonCoherentAtomSize.
  8. #define VMA_DEBUG_ALIGNMENT 256
  9. // We use our own functions pointers
  10. #define VMA_STATIC_VULKAN_FUNCTIONS 0
  11. #define VMA_IMPLEMENTATION
  12. #include <vulkan/vulkan_core.h>
  13. #include "GrVulkanMemoryAllocator.h"