skia2/third_party/vulkanmemoryallocator/GrVulkanMemoryAllocator.cpp
Greg Daniel 2f62abdbe9 Update AMD vulkan memory allocator.
Change-Id: I2ed449cdbb8beac24fbd9d9664ab5fc42a0b3e00
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289236
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2020-05-13 13:03:39 +00:00

22 lines
648 B
C++

/*
* 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 our own functions pointers
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
// vma_mem_alloc.h will use VMA_NULLABLE and VMA_NOT_NULL as clang nullability attribtues but does a
// poor job at using them everywhere. Thus it causes lots of clang compiler warnings. We just
// disable them here by defining them to be nothing.
#define VMA_NULLABLE
#define VMA_NOT_NULL
#define VMA_IMPLEMENTATION
#include <vulkan/vulkan_core.h>
#include "GrVulkanMemoryAllocator.h"