diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-10-20 16:37:19 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-10-20 17:48:50 +0200 |
commit | da98357e6eddfbf5bcd226c4bf6c3beb4e2c3990 (patch) | |
tree | 605f697d84e75fb416cbf24e3366b1eba70bba30 /servers | |
parent | 8748247d6f5b65358ae69f5c44f4fdfb70633382 (diff) |
doctool: Fix differences between headless and Vulkan rendering backends
Fixes #53913.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering_server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index b3efe840b6..348d46545b 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -2810,6 +2810,12 @@ RenderingServer::RenderingServer() { PropertyInfo(Variant::INT, "rendering/vulkan/rendering/back_end", PROPERTY_HINT_ENUM, "Forward Clustered (Supports Desktop Only),Forward Mobile (Supports Desktop and Mobile)")); + // Already defined in RenderingDeviceVulkan::initialize which runs before this code. + // We re-define them here just for doctool's sake. Make sure to keep default values in sync. + GLOBAL_DEF("rendering/vulkan/staging_buffer/block_size_kb", 256); + GLOBAL_DEF("rendering/vulkan/staging_buffer/max_size_mb", 128); + GLOBAL_DEF("rendering/vulkan/staging_buffer/texture_upload_region_size_px", 64); + GLOBAL_DEF("rendering/vulkan/descriptor_pools/max_descriptors_per_pool", 64); GLOBAL_DEF("rendering/3d/viewport/scale", 1.0); ProjectSettings::get_singleton()->set_custom_property_info("rendering/3d/viewport/scale", |