493afb05e6
This is working repository now. I had to clean this up due to my f_ups, that made this simple repo around 200MB large. Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
30 lines
896 B
C++
30 lines
896 B
C++
/**
|
|
* @file vma_port.cpp
|
|
* @author Piotr Krygier (everyonecancode@gmail.com)
|
|
* @brief C port for vma
|
|
* @version 0.1
|
|
* @date 2023-08-11
|
|
*
|
|
* @copyright Copyright (c) 2023
|
|
*
|
|
*/
|
|
|
|
/* VMA allows C linkage, but it must be compiled as a CPP file. This file takes cares of it */
|
|
#define VMA_IMPLEMENTATION
|
|
#ifdef __unix__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
|
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
|
|
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
|
#pragma GCC diagnostic ignored "-Wswitch"
|
|
#pragma GCC diagnostic ignored "-Wparentheses"
|
|
#endif
|
|
#include "vma/vk_mem_alloc.h"
|
|
#ifdef __unix__
|
|
#pragma GCC diagnostic pop
|
|
#endif
|