Merge pull request #112361 from Calinou/export-dedicated-server-no-shader-baker

Disable shader baker when exporting as dedicated server
pull/94891/merge
Rémi Verschelde 2025-12-09 19:54:22 +07:00
commit 342ba8063e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
10 changed files with 14 additions and 4 deletions

@ -52,7 +52,8 @@ void EditorExportPlatformAppleEmbedded::get_preset_features(const Ref<EditorExpo
r_features->push_back("etc2");
r_features->push_back("astc");
if (p_preset->get("shader_baker/enabled")) {
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
r_features->push_back("shader_baker");
}

@ -44,7 +44,8 @@ void EditorExportPlatformPC::get_preset_features(const Ref<EditorExportPreset> &
r_features->push_back("etc2");
r_features->push_back("astc");
}
if (p_preset->get("shader_baker/enabled")) {
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
r_features->push_back("shader_baker");
}
// PC platforms only have one architecture per export, since

@ -630,6 +630,7 @@
</member>
<member name="shader_baker/enabled" type="bool" setter="" getter="">
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
</member>
<member name="user_data_backup/allow" type="bool" setter="" getter="">
If [code]true[/code], allows the application to participate in the backup and restore infrastructure.

@ -1981,7 +1981,8 @@ void EditorExportPlatformAndroid::get_preset_features(const Ref<EditorExportPres
r_features->push_back("etc2");
r_features->push_back("astc");
if (p_preset->get("shader_baker/enabled")) {
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
r_features->push_back("shader_baker");
}

@ -730,6 +730,7 @@
</member>
<member name="shader_baker/enabled" type="bool" setter="" getter="">
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
</member>
<member name="storyboard/custom_bg_color" type="Color" setter="" getter="">
A custom background color of the storyboard launch screen.

@ -28,6 +28,7 @@
</member>
<member name="shader_baker/enabled" type="bool" setter="" getter="">
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
</member>
<member name="ssh_remote_deploy/cleanup_script" type="String" setter="" getter="">
Script code to execute on the remote host when app is finished.

@ -704,6 +704,7 @@
</member>
<member name="shader_baker/enabled" type="bool" setter="" getter="">
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ or Mobile renderers.
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
</member>
<member name="ssh_remote_deploy/cleanup_script" type="String" setter="" getter="">
Script code to execute on the remote host when app is finished.

@ -63,7 +63,8 @@ void EditorExportPlatformMacOS::get_preset_features(const Ref<EditorExportPreset
ERR_PRINT("Invalid architecture");
}
if (p_preset->get("shader_baker/enabled")) {
if (!p_preset->is_dedicated_server() && p_preset->get("shader_baker/enabled")) {
// Don't use the shader baker if exporting as a dedicated server, as no rendering is performed.
r_features->push_back("shader_baker");
}

@ -582,6 +582,7 @@
</member>
<member name="shader_baker/enabled" type="bool" setter="" getter="">
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ and Mobile renderers.
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
</member>
<member name="user_data/accessible_from_files_app" type="bool" setter="" getter="">
If [code]true[/code], the app "Documents" folder can be accessed via "Files" app. See [url=https://developer.apple.com/documentation/bundleresources/information_property_list/lssupportsopeningdocumentsinplace]LSSupportsOpeningDocumentsInPlace[/url].

@ -100,6 +100,7 @@
</member>
<member name="shader_baker/enabled" type="bool" setter="" getter="">
If [code]true[/code], shaders will be compiled and embedded in the application. This option is only supported when using the Forward+ and Mobile renderers.
[b]Note:[/b] When exporting as a dedicated server, the shader baker is always disabled since no rendering is performed.
</member>
<member name="ssh_remote_deploy/cleanup_script" type="String" setter="" getter="">
Script code to execute on the remote host when app is finished.