1) device.cpp: use bgfx::RendererType::Vulkan;
2) shader_resource.cpp: in run_external_compiler, use --profile spirv as shaderc option;
3) rebuild project data to use new shaderc output.
Crash happens on BgfxAllocator::realloc().
Commenting-out init.allocator = ... in device.cpp fixes the problem and Vulkan renderer seems working as expected.
Enable Vulkan on Linux:
1) device.cpp: use
bgfx::RendererType::Vulkan
; 2) shader_resource.cpp: in run_external_compiler, use--profile spirv
as shaderc option; 3) rebuild project data to use new shaderc output.Crash happens on BgfxAllocator::realloc().
Commenting-out
init.allocator = ...
in device.cpp fixes the problem and Vulkan renderer seems working as expected.