mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
meson: Define some VMA debug options for convenience
This commit is contained in:
committed by
mborgerson
parent
9200246c62
commit
86daae1453
Vendored
+11
-1
@@ -3,10 +3,20 @@ if vulkan.found()
|
||||
libvolk = static_library('volk', sources: 'volk/volk.c', c_args: ['-DVK_NO_PROTOTYPES'], dependencies: vulkan)
|
||||
volk = declare_dependency(compile_args: ['-DVK_NO_PROTOTYPES'], include_directories: 'volk', link_with: libvolk, dependencies: vulkan)
|
||||
|
||||
debug_vma = false
|
||||
|
||||
vma_defns = [
|
||||
'-DVMA_STATIC_VULKAN_FUNCTIONS=0',
|
||||
'-DVMA_DYNAMIC_VULKAN_FUNCTIONS=0',
|
||||
]
|
||||
]
|
||||
|
||||
if debug_vma
|
||||
vma_defns += [
|
||||
'-DVMA_DEBUG_MARGIN=16',
|
||||
'-DVMA_DEBUG_DETECT_CORRUPTION=1',
|
||||
'-DVMA_DEBUG_MIN_BUFFER_IMAGE_GRANULARITY=256',
|
||||
]
|
||||
endif
|
||||
libvma = static_library('vma', sources: 'vma.cc', cpp_args: vma_defns, include_directories: 'VulkanMemoryAllocator/include', dependencies: [vulkan, volk])
|
||||
vma = declare_dependency(compile_args: vma_defns, include_directories: 'VulkanMemoryAllocator/include', link_with: libvma)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user