Error when compiling the engine with double precision

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kyuth

I’m trying to compile engine from the master-branch with mono and double precision enabled. Compile works fine but when I try open any project I receive error and editor crashes:

Godot Engine v4.0.beta.custom_build.8a98110e3 - https://godotengine.org
Vulkan API 1.2.236 - Using Vulkan Device #0: AMD - AMD Radeon Pro 5500M
[mvk-error] VK_ERROR_FORMAT_NOT_SUPPORTED: VkFormat VK_FORMAT_R64G64B64_SFLOAT is not supported for vertex buffers on this device.
[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
Vertex attribute vertex0(0) is missing from the vertex descriptor.
ERROR: vkCreateGraphicsPipelines failed with error -3 for shader ‘CanvasOcclusionShaderRD:0’.
at: render_pipeline_create (drivers/vulkan/rendering_device_vulkan.cpp:6393)

I compiled it with the following command:

scons platform=macos arch= --jobs=$(sysctl -n hw.logicalcpu) precision=double module_mono_enabled=yes

I also compiled without double precision and without it both mono and standard versions works fine so the problem seems to be with double precision.

The error message suggest that the GPU (AMD Radeon Pro 5500M) doesn’t support 64-bit data types but this shouldn’t be a problem because GPU is still not using 64-bit data types as described here: Emulating Double Precision on the GPU to Render Large Worlds ?