mirror of https://github.com/xemu-project/xemu.git
meson: Define some VMA debug options for convenience
This commit is contained in:
parent
9200246c62
commit
86daae1453
thirdparty
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue