You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Add shader baker to project exporter.
Metal Support contributed by Migeran (https://migeran.com) and Stuart Carnie. Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com> Co-authored-by: Gergely Kis <gergely.kis@migeran.com>
This commit is contained in:
@@ -155,6 +155,7 @@
|
||||
#include "editor/plugins/plugin_config_dialog.h"
|
||||
#include "editor/plugins/root_motion_editor_plugin.h"
|
||||
#include "editor/plugins/script_text_editor.h"
|
||||
#include "editor/plugins/shader_baker_export_plugin.h"
|
||||
#include "editor/plugins/text_editor.h"
|
||||
#include "editor/plugins/version_control_editor_plugin.h"
|
||||
#include "editor/plugins/visual_shader_editor_plugin.h"
|
||||
@@ -167,6 +168,18 @@
|
||||
#include "editor/themes/editor_theme_manager.h"
|
||||
#include "editor/window_wrapper.h"
|
||||
|
||||
#ifdef VULKAN_ENABLED
|
||||
#include "editor/plugins/shader_baker/shader_baker_export_plugin_platform_vulkan.h"
|
||||
#endif
|
||||
|
||||
#ifdef D3D12_ENABLED
|
||||
#include "editor/plugins/shader_baker/shader_baker_export_plugin_platform_d3d12.h"
|
||||
#endif
|
||||
|
||||
#ifdef METAL_ENABLED
|
||||
#include "editor/plugins/shader_baker/shader_baker_export_plugin_platform_metal.h"
|
||||
#endif
|
||||
|
||||
#include "modules/modules_enabled.gen.h" // For gdscript, mono.
|
||||
|
||||
#ifndef PHYSICS_2D_DISABLED
|
||||
@@ -8531,6 +8544,29 @@ EditorNode::EditorNode() {
|
||||
|
||||
EditorExport::get_singleton()->add_export_plugin(dedicated_server_export_plugin);
|
||||
|
||||
Ref<ShaderBakerExportPlugin> shader_baker_export_plugin;
|
||||
shader_baker_export_plugin.instantiate();
|
||||
|
||||
#ifdef VULKAN_ENABLED
|
||||
Ref<ShaderBakerExportPluginPlatformVulkan> shader_baker_export_plugin_platform_vulkan;
|
||||
shader_baker_export_plugin_platform_vulkan.instantiate();
|
||||
shader_baker_export_plugin->add_platform(shader_baker_export_plugin_platform_vulkan);
|
||||
#endif
|
||||
|
||||
#ifdef D3D12_ENABLED
|
||||
Ref<ShaderBakerExportPluginPlatformD3D12> shader_baker_export_plugin_platform_d3d12;
|
||||
shader_baker_export_plugin_platform_d3d12.instantiate();
|
||||
shader_baker_export_plugin->add_platform(shader_baker_export_plugin_platform_d3d12);
|
||||
#endif
|
||||
|
||||
#ifdef METAL_ENABLED
|
||||
Ref<ShaderBakerExportPluginPlatformMetal> shader_baker_export_plugin_platform_metal;
|
||||
shader_baker_export_plugin_platform_metal.instantiate();
|
||||
shader_baker_export_plugin->add_platform(shader_baker_export_plugin_platform_metal);
|
||||
#endif
|
||||
|
||||
EditorExport::get_singleton()->add_export_plugin(shader_baker_export_plugin);
|
||||
|
||||
Ref<PackedSceneEditorTranslationParserPlugin> packed_scene_translation_parser_plugin;
|
||||
packed_scene_translation_parser_plugin.instantiate();
|
||||
EditorTranslationParser::get_singleton()->add_parser(packed_scene_translation_parser_plugin, EditorTranslationParser::STANDARD);
|
||||
|
||||
Reference in New Issue
Block a user