Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
vkMemAllocatorInclude.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#ifndef VMA_HEAVY_ASSERT
33
#define VMA_HEAVY_ASSERT(expr) assert(expr)
34
#endif
//VMA_HEAVY_ASSERT
35
36
#ifndef VMA_ASSERT
37
#define VMA_ASSERT(expr) Divide::DIVIDE_ASSERT(expr)
38
#endif
//VMA_ASSERT
39
40
#define VMA_DEBUG_LOG(format, ...) do { Divide::Console::printfn(format, ##__VA_ARGS__); } while(false)
41
42
#ifdef _MSVC_LANG
43
44
#pragma warning(push, 4)
45
#pragma warning(disable: 4127)
// conditional expression is constant
46
#pragma warning(disable: 4100)
// unreferenced formal parameter
47
#pragma warning(disable: 4189)
// local variable is initialized but not referenced
48
#pragma warning(disable: 4324)
// structure was padded due to alignment specifier
49
50
#endif
// #ifdef _MSVC_LANG
51
52
#ifdef __clang__
53
#pragma clang diagnostic push
54
#pragma clang diagnostic ignored "-Wtautological-compare"
// comparison of unsigned expression < 0 is always false
55
#pragma clang diagnostic ignored "-Wunused-private-field"
56
#pragma clang diagnostic ignored "-Wunused-parameter"
57
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
58
#pragma clang diagnostic ignored "-Wnullability-completeness"
59
#endif
60
61
#include <vk_mem_alloc.h>
62
63
#ifdef __clang__
64
#pragma clang diagnostic pop
65
#endif
66
67
#ifdef _MSVC_LANG
68
#pragma warning(pop)
69
#endif
Source
Platform
Video
RenderBackend
Vulkan
Headers
vkMemAllocatorInclude.h
Generated on Fri May 17 2024 16:59:55 for Divide Framework by
1.9.6