Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ RenderingShaderContainerFormat *ShaderBakerExportPluginPlatformMetal::create_sha

if (os_name == U"macOS") {
min_os_version = (String)p_preset->get("application/min_macos_version_arm64");
int min_gpu = p_preset->get("application/min_macos_gpu_family");
// Godot metal doesn't support x86_64 mac so no need to worry about that version
profile = MetalDeviceProfile::get_profile(MetalDeviceProfile::Platform::macOS, MetalDeviceProfile::GPU::Apple7, min_os_version);
profile = MetalDeviceProfile::get_profile(MetalDeviceProfile::Platform::macOS, (MetalDeviceProfile::GPU)min_gpu, min_os_version);
} else if (os_name == U"iOS") {
min_os_version = (String)p_preset->get("application/min_ios_version");
profile = MetalDeviceProfile::get_profile(MetalDeviceProfile::Platform::iOS, MetalDeviceProfile::GPU::Apple7, min_os_version);
int min_gpu = p_preset->get("application/min_ios_gpu_family");
profile = MetalDeviceProfile::get_profile(MetalDeviceProfile::Platform::iOS, (MetalDeviceProfile::GPU)min_gpu, min_os_version);
} else if (os_name == U"visionOS") {
min_os_version = (String)p_preset->get("application/min_visionos_version");
profile = MetalDeviceProfile::get_profile(MetalDeviceProfile::Platform::visionOS, MetalDeviceProfile::GPU::Apple8, min_os_version);
int min_gpu = p_preset->get("application/min_visionos_gpu_family");
profile = MetalDeviceProfile::get_profile(MetalDeviceProfile::Platform::visionOS, (MetalDeviceProfile::GPU)min_gpu, min_os_version);
} else {
ERR_FAIL_V_MSG(nullptr, vformat("Unsupported platform: %s", os_name));
}
Expand Down
3 changes: 3 additions & 0 deletions platform/ios/doc_classes/EditorExportPlatformIOS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<member name="application/icon_interpolation" type="int" setter="" getter="">
Interpolation method used to resize application icon.
</member>
<member name="application/min_ios_gpu_family" type="int" setter="" getter="">
The target GPU family for shader baker. See [url=https://developer.apple.com/documentation/metal/mtlgpufamily]MTLGPUFamily[/url].
</member>
<member name="application/min_ios_version" type="String" setter="" getter="">
Minimum version of iOS required for this application to run in the [code]major.minor.patch[/code] or [code]major.minor[/code] format, can only contain numeric characters ([code]0-9[/code]) and periods ([code].[/code]).
</member>
Expand Down
1 change: 1 addition & 0 deletions platform/ios/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options)

r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/targeted_device_family", PROPERTY_HINT_ENUM, "iPhone,iPad,iPhone & iPad"), 2));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/min_ios_version"), get_minimum_deployment_target()));
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/min_ios_gpu_family", PROPERTY_HINT_ENUM, "Apple6:1006,Apple7:1007,Apple8:1008,Apple9:1009"), 1007));

r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "storyboard/image_scale_mode", PROPERTY_HINT_ENUM, "Same as Logo,Center,Scale to Fit,Scale to Fill,Scale"), 0));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "storyboard/custom_image@2x", PROPERTY_HINT_FILE_PATH, "*.png,*.jpg,*.jpeg"), ""));
Expand Down
3 changes: 3 additions & 0 deletions platform/macos/doc_classes/EditorExportPlatformMacOS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
[b]Note:[/b] Supported when exporting from macOS only, Xcode 26+ required.
[b]Note:[/b] Liquid Glass icons are supported on macOS 26 only, use [member application/icon] to set the icon for older macOS versions.
</member>
<member name="application/min_macos_gpu_family" type="int" setter="" getter="">
The target GPU family for shader baker. See [url=https://developer.apple.com/documentation/metal/mtlgpufamily]MTLGPUFamily[/url].
</member>
<member name="application/min_macos_version_arm64" type="String" setter="" getter="">
Minimum version of macOS required for this application to run on Apple Silicon Macs, in the [code]major.minor.patch[/code] or [code]major.minor[/code] format, can only contain numeric characters ([code]0-9[/code]) and periods ([code].[/code]).
</member>
Expand Down
1 change: 1 addition & 0 deletions platform/macos/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ void EditorExportPlatformMacOS::get_export_options(List<ExportOption> *r_options
r_options->push_back(ExportOption(PropertyInfo(Variant::DICTIONARY, "application/copyright_localized", PROPERTY_HINT_LOCALIZABLE_STRING), Dictionary()));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/min_macos_version_x86_64"), "11.00"));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/min_macos_version_arm64"), "13.00"));
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/min_macos_gpu_family", PROPERTY_HINT_ENUM, "Apple7:1007,Apple8:1008,Apple9:1009"), 1007));
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/export_angle", PROPERTY_HINT_ENUM, "Auto,Yes,No"), 0, true));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "display/high_res"), true));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
<member name="application/immersion_style" type="int" setter="" getter="">
Initial immersion style, only applicable if you have chosen the [code]Immersive[/code] app role. It can be [code]Full[/code] for a VR experience; [code]Mixed[/code] for a mixed reality experience where the rendered content is displayed along with the real environment; or [code]Progressive[/code] for a portal style experience where the user controls the immersion level. Change it at runtime with [member VisionOSXRInterface.immersion_style].
</member>
<member name="application/min_visionos_gpu_family" type="int" setter="" getter="">
The target GPU family for shader baker. See [url=https://developer.apple.com/documentation/metal/mtlgpufamily]MTLGPUFamily[/url].
</member>
<member name="application/min_visionos_version" type="String" setter="" getter="">
</member>
<member name="application/provisioning_profile_specifier_debug" type="String" setter="" getter="">
Expand Down
1 change: 1 addition & 0 deletions platform/visionos/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void EditorExportPlatformVisionOS::get_export_options(List<ExportOption> *r_opti
EditorExportPlatformAppleEmbedded::get_export_options(r_options);

r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/min_visionos_version"), get_minimum_deployment_target()));
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/min_visionos_gpu_family", PROPERTY_HINT_ENUM, "Apple8:1008,Apple9:1009"), 1008));

r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/app_role", PROPERTY_HINT_ENUM, "Window,Immersive"), 0));
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/immersion_style", PROPERTY_HINT_ENUM, "Full,Mixed,Progressive"), 1));
Expand Down
Loading