GrVulkanMemoryAllocator.h 691 B

123456789101112131415161718192021
  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. // We use this header to include vk_mem_alloc.h to make sure we always include GrVkDefines.h first.
  8. // We need to do this so that the corect defines are setup before we include vulkan.h inside of
  9. // vk_mem_alloc.h
  10. #ifndef GrVulkanMemoryAllocator_DEFINED
  11. #define GrVulkanMemoryAllocator_DEFINED
  12. // We only ever include this from src files which have already included vulkan.
  13. #ifndef VULKAN_CORE_H_
  14. #error "vulkan_core.h has not been included before trying to include the GrVulkanMemoryAllocator"
  15. #endif
  16. #include "include/vk_mem_alloc.h"
  17. #endif