2018-05-29 14:46:51 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2018 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// We use this header to include vk_mem_alloc.h to make sure we always include GrVkDefines.h first.
|
|
|
|
// We need to do this so that the corect defines are setup before we include vulkan.h inside of
|
|
|
|
// vk_mem_alloc.h
|
|
|
|
|
|
|
|
#ifndef GrVulkanMemoryAllocator_DEFINED
|
|
|
|
#define GrVulkanMemoryAllocator_DEFINED
|
|
|
|
|
2018-12-20 19:09:36 +00:00
|
|
|
// We only ever include this from src files which have already included vulkan.
|
|
|
|
#ifndef VULKAN_CORE_H_
|
|
|
|
#error "vulkan_core.h has not been included before trying to include the GrVulkanMemoryAllocator"
|
|
|
|
#endif
|
2018-05-29 14:46:51 +00:00
|
|
|
#include "include/vk_mem_alloc.h"
|
|
|
|
|
|
|
|
#endif
|