Commit Graph

350 Commits

Author SHA1 Message Date
3ffcae66a8 Renderer: Fix missing shader_name; use forward declarations
* Moving over to RenderingShaderContainer, missed setting shader_name
* Use forward declaration reduces compile time when modifying
  rendering_shader_container.h from over 950s to about 10-15
2025-10-02 10:02:18 +10:00
4594de69fd Merge pull request #111013 from stuartcarnie/shader_container_ext
Renderer: Move `reflect_spirv` to `RenderingShaderContainer`
2025-10-01 17:54:09 -05:00
22467f3a5b Merge pull request #111018 from Zylann/fix_double_build_get_downloads_availability
Fix unreachable code warning in double-precision builds
2025-09-30 20:10:38 -05:00
5240f1c283 Merge pull request #108658 from bruvzg/ed_pl_init
[EditorExportPlatform] Move initialization to a dedicated method.
2025-09-30 18:35:25 -05:00
65e8b0951b Renderer: Move reflect_spirv to RenderingShaderContainer
This change introduces a new protected type, `ReflectedShaderStage` to
`RenderingShaderContainer` that derived types use to access SPIR-V and
the reflected module, `SpvReflectShaderModule` allowing implementations
to use the reflection information to compile their platform-specific
module.

* Fixes memory leak in `reflect_spirv` that would not deallocate the
  `SpvReflectShaderModule` if an error occurred.
* Removes unnecessary allocation when creating `SpvReflectShaderModule`
  by passing `NO_COPY` flag to `spvReflectCreateShaderModule2`
  constructor function.
* Replaces `VectorView` with `Span` for consistency
* Fixes unnecessary allocations in D3D12 shader container in
  `_convert_spirv_to_nir` and `_convert_spirv_to_dxil` which implicitly
  converted the old `VectorView` to a `Vector`
2025-09-30 06:40:14 +10:00
0534423c58 Fix unreachable code warning in double-precision builds 2025-09-29 18:36:00 +02:00
e366471fdc Add GDSOFTCLASS to deeper inheritors of Object 2025-09-24 19:15:56 +01:00
f553875728 Merge pull request #110387 from timothyqiu/project-zip-utf8
Set language encoding flag when using Pack Project as ZIP
2025-09-22 13:28:49 -05:00
14bdf39806 Merge pull request #107789 from rsanchezsaez/apple/apple-embedded-export-template
Replace iOS/visionOS Xcode templates by new Apple embedded template
2025-09-19 13:07:09 -05:00
988721cda3 Merge pull request #106146 from gtibo/show-encryption-key
Add "Show Encryption Key" toggle
2025-09-19 09:16:59 -05:00
490af72c99 Merge pull request #109815 from Muller-Castro/export-script-file
Fix `EditorExportPlugin::_export_file()` ignoring GDScripts
2025-09-16 11:44:52 -05:00
cadd08da9e Set language encoding flag when using Pack Project as ZIP 2025-09-11 16:44:09 +08:00
b7aac81366 Metal: Ensure baking to binary sets minimum target OS
Co-authored-by: Travis Lange <travislange12@gmail.com>
2025-09-08 08:16:53 +10:00
9504b0ff7a Fix EditorExportPlugin::_export_file() ignoring GDScripts 2025-09-03 16:50:28 -03:00
0f0bb7d225 Merge pull request #110025 from DarioSamo/fix-shader-debug-info-take-two
Fix --generate-spirv-debug-info regression (alternate take)
2025-09-01 19:37:27 -07:00
e137c882c0 Disable smolv and change the shader hash when SPIR-V debug info is enabled. 2025-08-28 14:17:58 -03:00
9086b5c05f Fix editor export plugins always causing resources to be edited.
- Remove the ', true' which always caused the if statement to be true.
- Add a new comparison before setting again the same array or dictionary back to the object. Not all objects are programmed to take into account that the setter could be called with the exact same Array or Dictionary from the class. This check ensures that scenario doesn't happen since it should be unnecessary.
2025-08-28 12:21:30 -03:00
6d9983e958 [apple embedded] Replace individual iOS/visionOS Xcode templates by Apple embedded template 2025-08-25 12:42:34 -07:00
702bbb3eab Add default param value to EditorExportPlatform::get_forced_export_files
Add default parameter value to a new parameter added in 4.5 to `EditorExportPlatform::get_forced_export_files` so we can avoid breaking compatibility for GDScript.
2025-08-16 04:16:43 +02:00
e09cb44a94 Add Show Encryption Key toggle 2025-08-01 09:01:59 +02:00
9c325d0f91 Remove selective shader baking. 2025-07-23 23:02:43 +03:00
e407f55fbf Fix editor one-click icons not showing. 2025-07-21 12:18:44 +03:00
f20e5152ad [EditorExportPlatform] Move initialization to a dedicated method. 2025-07-16 08:55:23 +03:00
d5cb0f948e Merge pull request #108478 from KoBeWi/phantom_paths
Fix export path "leaking" between presets
2025-07-14 10:30:42 -05:00
4753ca4219 Fix export path "leaking" between presets 2025-07-10 15:18:34 +02:00
a8873727ac [macOS] Selectively bake specific shader variants for MoltenVK. 2025-07-09 20:09:56 +03:00
f11aff3841 Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00
42733a2a5c Implement sparse bundle PCK support. 2025-06-26 00:47:25 +02:00
a272376f89 Cleanup accessibility names. 2025-06-23 11:08:36 +03:00
ec37e7e97f Fix doctool crash and errors on macOS. 2025-06-19 08:35:28 +03:00
939f29f6d5 Apple: Improve reliability of Apple Embedded build and deployment 2025-06-19 06:33:08 +10:00
ee84a5a100 Merge pull request #107482 from nikitalita/fix-pck-misalign
PCKPacker: Fix first file being written mis-aligned
2025-06-13 18:37:46 +02:00
6e823b4b14 PCKPacker: Fix first file being written mis-aligned 2025-06-13 16:25:38 +02:00
22702244f8 Merge pull request #105414 from KoBeWi/disable_uid_here
Add `@export_file_path` to export raw paths (no UID)
2025-06-13 01:30:24 +02:00
8bf87a6b2c Show shader baker related export warnings only if enabled 2025-06-06 21:05:39 +05:30
b25f609eed Merge pull request #105994 from syntaxerror247/split_container
Add option for a touch-friendly drag handle in `SplitContainer`
2025-06-05 13:11:14 +02:00
b5dad5a0b2 Improve SplitContainer usability in the Android editor 2025-06-03 19:49:56 +05:30
e521d69d39 Texture format error on export: Show project setting
Changing the project setting manually will prompt for a restart, which
will trigger the required re-import of textures.
Previously the project setting would be changed automatically but
textures would not be re-imported, which could be unexpected.
2025-06-03 13:25:45 +02:00
e8a02152c4 Merge pull request #105757 from bruvzg/no_temp
[PCK] Move directory to the end of file, write exported/saved PCK in place.
2025-06-02 18:51:28 -05:00
b41d6ecf8c Allow to override editor settings per project 2025-06-02 17:51:26 +02:00
8cb2817976 [PCK] Move directory to the end of file, write exported/saved PCK in place. 2025-06-02 12:54:09 +03:00
5a30a7e7cd 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>
2025-05-27 12:45:27 -03:00
99f5a3d665 Merge pull request #106870 from timothyqiu/add-metadata-dialog-includes
Cleanup header includes for AddMetadataDialog
2025-05-27 09:39:37 -05:00
f0fc5ffd3e Cleanup header includes for AddMetadataDialog 2025-05-27 21:45:00 +08:00
4cb8a0c77e Add resize_initialized and resize_uninitialized to Vector. These functions serve as replacements for resize, to make sure the caller understands whether elements need to be initialized 'by hand' after the call. 2025-05-26 18:35:41 +02:00
a350e01dc7 Fix ios and android plugin always invalid due to null ConfigFile 2025-05-23 11:41:13 -04:00
42249bb659 Add @export_file_path to export raw paths (no UID) 2025-05-22 13:25:17 +02:00
47971c0a27 Introduce 'visionos' platform derived from 'apple_embedded' 2025-05-19 15:47:01 -07:00
457299449d Introduce 'drivers/apple_embedded' abstract platform for code reuse 2025-05-19 15:37:13 -07:00
88d922c55e Cleanup header includes in Tree 2025-05-15 14:28:00 +08:00