Thaddeus Crews
5b9443ac93
Merge pull request #105768 from dsnopek/fix-web-dlsym-error
...
Web: Fix crash when built with `dlink_enabled=yes`
2025-04-25 18:25:13 -05:00
David Snopek
39ad4633a8
Web: Fix crash when built with `dlink_enabled=yes`
2025-04-25 15:14:25 -05:00
Thaddeus Crews
2bf7184ed9
Merge pull request #103865 from Repiteo/scons/__has_include
...
SCons: Remove `check_c_headers`
2025-04-25 11:36:06 -05:00
Thaddeus Crews
5eb5f2fa6e
Merge pull request #105740 from bruvzg/mesa_scr_upd
...
Update Mesa-NIR library detection and download script.
2025-04-25 11:36:02 -05:00
Thaddeus Crews
33065d8323
Merge pull request #103238 from Ryan-000/mesh_support_vram_profiler
...
Add Meshes to the Video RAM Profiler
2025-04-25 11:36:01 -05:00
Thaddeus Crews
007717faf9
SCons: Remove `check_c_headers`
...
• Can instead check for headers directly with `__has_include`, a C++17 feature
2025-04-25 11:30:39 -05:00
Pāvels Nadtočajevs
43e9b04f66
Update Mesa-NIR library detection and download script.
2025-04-25 08:11:14 +03:00
Thaddeus Crews
28089c40c1
Merge pull request #91006 from reduz/live-backtrace
...
Ability to print and log script backtraces
2025-04-24 17:18:52 -05:00
reduz
d1dcb40d56
Ability to print and log script backtraces
...
Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
2025-04-24 18:54:41 +02:00
Ryan
4497e2a0d3
Add Meshes to the Video RAM Profiler
...
Apply suggestions from code review
Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
2025-04-23 18:26:56 -04:00
Thaddeus Crews
1f7a8eac9d
Merge pull request #101973 from clayjohn/sky-material-opt
...
Optimize ProceduralSkyMaterial by removing uses of acos and simplifying logic
2025-04-22 18:25:51 -05:00
Thaddeus Crews
c928676582
Merge pull request #105531 from Repiteo/style/specify-attribute-macros
...
Style: Declare inline macros as attributes
2025-04-22 10:44:32 -05:00
Thaddeus Crews
2ffd5a3913
Merge pull request #104738 from YYF233333/cleanup_rid_owner
...
Use `LocalVector` in `RID_Owner::get_owned_list`
2025-04-22 10:44:25 -05:00
Thaddeus Crews
2a96e895e6
Merge pull request #105525 from BlueCube3310/light-probe-sh-impr
...
Scene shader: Improve and document SH diffuse evaluation for light probes
2025-04-21 08:24:20 -05:00
Yyf2333
1a70a06a43
Change RID_Owner::get_owned_list.
2025-04-21 01:04:27 +08:00
Matthieu Bucchianeri
e3c215fc13
Add support for Direct3D 12 OpenXR backend.
...
This change adds support for running XR projects built with the `d3d12`
rendering backend. The XR backend hooks into the setup for the D3D12
render context in order to use the desired device and command queue for
submission to OpenXR. The XR backend takes care of importing the D3D12
swapchain images into the render context.
As part of this process, three issues are addressed:
- Ensuring that resource state transitions are only done on textures
that require them.
- Enabling view instancing in the PSOs for multiview render passes.
- Addressing a bug in the D3D12 runtime where PSO creation may fail
when front face detection is used.
Please refer to #86283 for additional discussions on the implementation
details.
2025-04-19 20:39:33 -07:00
BlueCube3310
5640ddd0a5
Scene shader: Improve and document SH evaluation for light probes
2025-04-19 15:08:02 +02:00
Thaddeus Crews
dd5460c32a
Style: Declare inline macros as attributes
2025-04-18 12:04:40 -05:00
clayjohn
6fede0b951
Optimize SkyMaterials by removing uses of acos and simplifying logic
...
The results looks almost the same and run much faster.
2025-04-17 22:50:11 -07:00
Thaddeus Crews
ad40939b6f
Core: Replace C math headers with C++ equivalents
...
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Thaddeus Crews
6a9f46931a
Merge pull request #104480 from BlueCube3310/image-unsuported-format
...
Renderer: Warn when images need to be converted due to their formats being unsupported by hardware
2025-04-16 10:44:52 -05:00
Thaddeus Crews
a6979ef664
Merge pull request #97801 from basicer/srgb-color-hint
...
Add `color_conversion_disabled` shader hint.
2025-04-14 19:39:42 -05:00
Thaddeus Crews
addab4f001
Merge pull request #95916 from Repiteo/core/bit-field
...
Core: Add dedicated `BitField` template
2025-04-11 13:29:13 -05:00
Thaddeus Crews
c7e9dc96a4
Rendering: Fix `Math` constant conversion
2025-04-11 12:33:57 -05:00
Thaddeus Crews
0d267e7b1e
Core: Add dedicated `BitField` template
2025-04-11 11:53:26 -05:00
Thaddeus Crews
0964badc05
Merge pull request #105210 from nikitalita/gdsoftclass-fa-da
...
Add GDSOFTCLASS to FileAccess and DirAccess derived classes
2025-04-11 09:51:08 -05:00
Rob Blanckaert
8c54290b4a
Add `color_conversion_disabled` shader hint.
...
Sometimes shaders want to accept a color as input that is always
in the srgb color space. This adds a hint to vec3/vec4 to enable
the color picker popup for those vectors but disable color space
conversion.
2025-04-10 21:31:15 -07:00
Thaddeus Crews
94282d88f9
Core: Use `Math` namespace for constants
2025-04-10 16:29:30 -05:00
Thaddeus Crews
cade15a163
Merge pull request #92475 from AThousandShips/string_replace_char
...
Add `String::replace_char(s)` methods for performance and convenience
2025-04-10 10:18:16 -05:00
Thaddeus Crews
fc1dbda769
Merge pull request #105164 from stuartcarnie/apple_pthread
...
Apple: Add pthread implementation of `Thread` class
2025-04-10 10:18:12 -05:00
A Thousand Ships
889410dcda
Add `String::replace_char(s)` methods for performance and convenience
2025-04-10 13:08:45 +02:00
Stuart Carnie
8c8d6de3e7
Apple: Add pthread implementation of `Thread` class
...
This allows Apple platforms to override the default stack size of
a thread in the WorkerThreadPool, which is 512KiB by default.
This must be increased, as SPIRV-Cross, used by the Metal driver, can
use deeply nested stacks, as can debug builds.
2025-04-10 09:35:40 +10:00
Thaddeus Crews
7a6c3b309f
Merge pull request #105130 from bruvzg/uri_fix_plus
...
Add uri_file_decode to handle + in file names.
2025-04-09 18:11:56 -05:00
nikitalita
2d0ae77719
add GDSOFTCLASS to FileAccess and DirAccess derived classes
2025-04-09 11:52:50 -07:00
Thaddeus Crews
e6a61b1ecc
Merge pull request #76829 from bruvzg/ac_kit_direct
...
Implement screen reader support using AccessKit library.
2025-04-08 12:32:47 -05:00
Pāvels Nadtočajevs
4310cb82b8
AccessKit integration for macOS, Linux, and Windows.
2025-04-08 20:25:47 +03:00
Pāvels Nadtočajevs
9abe2e5294
Add `uri_file_decode` to handle `+` in file names.
2025-04-07 23:49:17 +03:00
Lukas Tenbrink
60784744ce
Handle the case where `waitpid` returns `errno` `EINTR`.
...
This case indicates that a debugger is attached, and `waitpid` should be called again.
Log errors when threads exit with `errno`.
2025-04-07 14:48:34 +02:00
BlueCube3310
a861394e13
Renderer: Warn when images need to be converted due to their formats being unsupported by hardware
2025-04-06 19:27:02 +02:00
Thaddeus Crews
207a2b6472
Core: Integrate warning suppression macro helpers
2025-04-03 10:13:46 -05:00
Thaddeus Crews
1f56d96cf2
Merge pull request #104893 from Repiteo/scons/external-includes-alt
...
SCons: Add `CPPEXTPATH` for external includes
2025-04-02 07:48:03 -05:00
Thaddeus Crews
f25fc34439
SCons: Add `CPPEXTPATH` for external includes
2025-04-02 07:29:08 -05:00
Yufeng Ying
4f4031a675
Replace size() == 0 with is_empty().
2025-04-02 19:18:43 +08:00
sora
abaaa87a47
fix: use productCategory instead of vendorName for joy name on macos
2025-04-01 22:35:09 +02:00
Thaddeus Crews
4950deeea0
Merge pull request #104726 from Meorge/bugfix/reversed-buttons-do-not-spark-joy-con
...
Fix Apple's incorrect mapping of Joy-Con (L) and Joy-Con (R) face buttons
2025-03-31 12:03:46 -05:00
Thaddeus Crews
e8b56aac8c
Merge pull request #104725 from Meorge/gamecontroller-avoid-joystick-code-duplication
...
Make reusable functions for GameController joystick and trigger input
2025-03-31 12:03:46 -05:00
Malcolm Anderson
0f897f8c7e
Make reusable functions for GameController joystick and trigger input
...
Update drivers/apple/joypad_apple.mm
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2025-03-30 21:04:30 -07:00
Kiro
23129a66ed
Replace append_utfx with direct String::utfx
2025-03-30 19:56:38 +02:00
Thaddeus Crews
152c14b053
Merge pull request #104597 from bruvzg/path_check
...
Implement `DirAccess.is_equivalent` method.
2025-03-29 10:16:34 -05:00
Thaddeus Crews
780cf03051
Merge pull request #104556 from Ivorforce/string-extend-instead-of-parse
...
Use `append_` instead of `parse_` for `String` methods.
2025-03-29 10:16:33 -05:00
Rémi Verschelde
afc7398c2b
Merge pull request #104616 from ibrahn/init-cmd-q-pending-and-gles3-skymatdata
...
Fix uninitialized member vars in CommandQueueMT and RasterizerSceneGLES3
2025-03-28 17:30:37 +01:00
bruvzg
48bfe13e4f
Add methods to decode/encode multibyte encodings.
2025-03-28 17:32:34 +02:00
Malcolm Anderson
722b412b73
Fix Apple's incorrect mapping of Joy-Con (L) and Joy-Con (R) face buttons
...
Thanks, Tim Apple
2025-03-28 07:28:42 -07:00
Rémi Verschelde
5b3c732608
Merge pull request #104619 from Meorge/single-joy-con
...
Support more controllers on macOS 11+
2025-03-28 14:33:22 +01:00
Rémi Verschelde
e81eb3f1e9
Merge pull request #102354 from YYF233333/style_iterator
...
Use iterator pattern instead of manually traverse `List::Element *`
2025-03-28 14:31:40 +01:00
Rémi Verschelde
408d07109b
Merge pull request #99551 from DarioSamo/fragment-density-map
...
Implement Fragment density map support.
2025-03-28 14:31:19 +01:00
Yyf2333
22b5ec17fb
Using iterator pattern instead of List::Element *.
...
Co-authored-by: Adam Scott <ascott.ca@gmail.com>
2025-03-28 13:29:15 +08:00
Lukas Tenbrink
ffa6ef220b
Use `append_` instead of `parse_` for `String` methods.
2025-03-27 17:51:02 +01:00
Malcolm Anderson
6f3c007e3d
Support more controllers on macOS 11+
...
Fix platform availability
Make inputs accumulate, matching the `extendedGamepad` implementation
2025-03-26 21:41:51 -07:00
Ibrahn Sahir
c9352f06f7
Fix uninitialised member vars in CommandQueueMT and RasterizerSceneGLES3
2025-03-25 17:19:16 +00:00
Pāvels Nadtočajevs
d5cea9bb2e
Implement `DirAccess.is_equivalent` method.
2025-03-25 17:52:15 +02:00
Dario
76d709be74
Implement support for fragment density maps.
...
Co-Authored-By: Bastiaan Olij <mux213@gmail.com>
2025-03-24 11:50:04 -05:00
Thaddeus Crews
f09ee0171a
Style: Begin integrating simple `.clangd` fixes
2025-03-22 13:24:35 -05:00
kobewi
10f6c01b9c
Remove ABS in favor of Math::abs
2025-03-19 13:52:40 +01:00
Rémi Verschelde
3d9b05ad4a
Merge pull request #104341 from stuartcarnie/103602/metal_fix_cubemaps
...
Renderer: Fix Metal handling of cube textures; assert equal dimensions
2025-03-19 12:27:41 +01:00
Rémi Verschelde
2fa721b1bc
Merge pull request #104127 from Ivorforce/360-noclip
...
Remove `String` clipping constructors.
2025-03-19 12:27:10 +01:00
Stuart Carnie
e2066298d9
Renderer: Fix Metal handling of cube textures; assert equal dimensions
2025-03-19 11:52:59 +11:00
Pāvels Nadtočajevs
a797c7b8e2
[macOS/iOS] Ensure only one axis change event is produced during single `process_joypads()` call.
2025-03-18 14:58:14 +02:00
Lukas Tenbrink
a23f630781
Remove `String` clipping constructors.
...
Callers should instead call constructors with explicit encoding names, with known length `Span`.
2025-03-15 12:34:44 +01:00
Thaddeus Crews
c1b7865ae9
Merge pull request #103557 from aaronfranke/godot-version-defines
...
Rename version defines to `GODOT_VERSION_*` to match GDExtension godot-cpp
2025-03-13 08:57:42 -05:00
Thaddeus Crews
e2c6d860d8
Merge pull request #102302 from stuartcarnie/render_opt
...
Rendering compositor identifies `is_opengl` API; minor optimisation
2025-03-13 08:57:28 -05:00
Stuart Carnie
5e1fe8040a
rendering: compositor has `is_opengl` API; minor optimisations
2025-03-13 15:41:44 +11:00
Stuart Carnie
2123368dca
Metal: Use reference, so we're not copying every frame
2025-03-13 07:15:59 +11:00
Aaron Franke
97ee05e9b7
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
2025-03-12 11:11:38 -07:00
Thaddeus Crews
15a5a2f309
Merge pull request #103766 from BlueCube3310/basisu-hdr-astc
...
BasisUniversal: Ensure ASTC's HDR variant is supported when transcoding
2025-03-12 10:31:49 -05:00
Thaddeus Crews
c19244c7ed
Merge pull request #103878 from mooflu/blur_91717
...
Fix gles3 gaussian_blur mipmap setup.
2025-03-11 19:54:45 -05:00
Thaddeus Crews
d8b48b022a
Merge pull request #101932 from BlueCube3310/web-astc
...
WebGL: Support native ASTC compression when available
2025-03-11 16:53:49 -05:00
Frank Becker
e9bbe6fc78
Fix gles3 gaussian_blur mipmap setup.
...
Extend max level to include i for writing and so fb is complete and avoid resulting errors like:
"Framebuffer is incomplete: Attachment level is not in the [base level, max level] range".
2025-03-11 14:47:04 -07:00
Thaddeus Crews
e9e4760335
Merge pull request #83538 from bruvzg/size_and_at
...
[FileAccess] Implement `get_size` and `get_access_time` methods.
2025-03-11 14:00:58 -05:00
Thaddeus Crews
a77a28c029
Merge pull request #101971 from clayjohn/sky-light-size-fix
...
Pass angular diameter into light size constants for sky shaders.
2025-03-11 09:35:09 -05:00
Thaddeus Crews
56a710999e
Merge pull request #103404 from devloglogan/suppress-opengl-debug-marker
...
Suppress OpenGL debug marker printing
2025-03-11 09:34:55 -05:00
Thaddeus Crews
8d1c1c5867
Merge pull request #92476 from AThousandShips/string_remove_char
...
Add `String::remove_char(s)` methods for performance and convenience
2025-03-10 10:01:04 -05:00
Thaddeus Crews
a5acf1dc81
Merge pull request #101174 from Repiteo/style/objc-import-syntax
...
Style: Standardize Obj-C `#import` syntax
2025-03-10 10:01:02 -05:00
A Thousand Ships
331a43a9d8
Add `String::remove_char(s)` methods for performance and convenience
2025-03-10 13:19:28 +01:00
bruvzg
85d3be8070
[FileAccess] Implement `get_size` and `get_access_time` methods.
2025-03-09 16:07:00 +02:00
A Thousand Ships
466590d0ec
Use `get_slicec` instead of `get_slice` for single character splitters
2025-03-08 20:36:37 +01:00
Thaddeus Crews
713a1ba554
Style: Standardize Obj-C `#import` syntax
2025-03-08 09:28:34 -06:00
Thaddeus Crews
324512e11c
Style: Replace header guards with `#pragma once`
2025-03-07 17:33:47 -06:00
Thaddeus Crews
3c43508ed7
Merge pull request #102427 from AThousandShips/fix_substr
...
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
Thaddeus Crews
c937b6d180
Merge pull request #102419 from Ivorforce/std-size
...
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-03-07 15:12:25 -06:00
Thaddeus Crews
6ab1472fc7
Merge pull request #103730 from darksylinc/matias-vma-regression
...
Fix incorrect parameters passed to VMA
2025-03-07 12:06:27 -06:00
BlueCube3310
fba6e6f932
WebGL: Support native ASTC compression when available
2025-03-07 15:41:59 +01:00
BlueCube3310
4d46ef8e8e
BasisUniversal: Ensure ASTC's HDR variant is supported when transcoding
2025-03-07 15:26:03 +01:00
A Thousand Ships
5113022dfe
Clean up some uses of `String::substr`
...
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Matias N. Goldberg
c543c5615c
Fix incorrect parameters passed to VMA
...
If the allocation is small enough that it enters the
if (p_size <= SMALL_ALLOCATION_MAX_SIZE) {} block, Godot would call
vmaFindMemoryTypeIndexForBufferInfo with the wrong parameters.
This can cause vmaFindMemoryTypeIndexForBufferInfo to potentially
misbehave on some cards or drivers.
Fixes regression introduced in #102830
Might potentially reopen #101850 (I doubt it, but it's possible)
Must be backported to 4.4
2025-03-06 19:56:52 -03:00
Thaddeus Crews
ec5e096388
Merge pull request #103645 from stuartcarnie/fix_101696_pt_2
...
Metal: Use `p_set_index` when binding uniforms, to use correct data
2025-03-06 16:36:12 -06:00
Thaddeus Crews
178566a439
Merge pull request #103661 from Grublady/nin_abxy
...
Swap Nintendo face buttons on macOS
2025-03-06 16:36:09 -06:00
Thaddeus Crews
4bafafaeb3
Merge pull request #102777 from darksylinc/matias-astc-hdr
...
Add ASTC HDR format variants
2025-03-06 16:36:06 -06:00
Grublady
cdcee78fcb
Swap Nintendo face buttons on macOS
2025-03-05 18:50:52 -05:00
Stuart Carnie
a4fb68f43e
Metal: Use `p_set_index` when binding uniforms, to use correct data
2025-03-06 06:29:49 +11:00
Thaddeus Crews
59d75a704e
Merge pull request #103613 from stuartcarnie/fix_101696
...
Metal: Use uniform set index passed by `RenderingDevice`
2025-03-05 12:08:11 -06:00
Thaddeus Crews
7dc6b38699
Merge pull request #103622 from bruvzg/lock_file_time
...
[Windows] Fix `get_modified_time` on locked files.
2025-03-05 12:08:07 -06:00
Thaddeus Crews
aef8ed2901
Merge pull request #87388 from clayjohn/Vulkan-limit-add
...
Implement `LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE` to `limit_get` in the Vulkan backend
2025-03-05 12:08:00 -06:00
Thaddeus Crews
729c4e9e88
Merge pull request #102905 from kleonc/render_info_fix_primitive_count_per_triangle_strip
...
Fix render info primitive count per `TRIANGLE_STRIP`
2025-03-05 12:07:47 -06:00
Pāvels Nadtočajevs
6597fa24a9
[Windows] Fix `get_modified_time` on locked files.
2025-03-05 11:40:37 +02:00
Pāvels Nadtočajevs
76e2e9f81f
[Metal] Add missing stage info to shader description.
2025-03-05 09:06:06 +02:00
Stuart Carnie
2b8cb36434
Metal: Use uniform set index passed by `RenderingDevice`
...
This does not resolve the errors noted in #101696 , as the project is
incorrectly binding incompatible uniform set descriptors, as set 0
and set 1 have a single `readonly` image and set 2 has a single
`writeonly` texture. The `RenderingDevice` is reporting the errors with
Metal, as it uses a different `_reflect_spirv`, which correctly
determines the read / write attribute. A separate PR will be required
to fix the shared `_reflect_spirv`
Helps #101696
2025-03-05 17:52:52 +11:00
clayjohn
338c12fc9a
Implement LIMIT_MAX_COMPUTE_SHARED_MEMORY_SIZE to limit_get in all Rendering backends.
...
Also add a more helpful warning that is only displayed in dev builds to
match the D3D12 backend
2025-03-03 21:43:12 -08:00
Rémi Verschelde
59beee5860
Merge pull request #102908 from kleonc/primitive_quad_second_triangle_lighting_fix
...
Fix 2D quad primitive missing lighting data in GLES3 renderer
2025-03-04 01:00:30 +01:00
devloglogan
99260f3a68
Suppress OpenGL debug marker print
2025-02-28 10:08:24 -06:00
Evan Todd
87efa4d210
Fix particle jitter when scene tree is paused.
2025-02-27 08:40:40 -08:00
Stuart Carnie
5312811c4d
Metal: Fix SPIR-V → MSL compilation on iOS targets
2025-02-27 10:22:39 +11:00
Stuart Carnie
818afcb327
Metal: Compile `MTLLibrary` on demand when pipeline is created
...
This changes the default shader loading strategy, implemented in the
Metal driver, to compile the `MTLLibrary` on demand when the pipeline
is created, which reduces cold startup time on IPHONE target OSs.
Normally, the `MTLLibrary` is compiled from Metal source asynchronously
when Godot calls
`RenderingDeviceDriverMetal::shader_create_from_bytecode`; however, this
changes this behaviour on mobile platforms to do it on demand when the
pipeline is created, as noted in #96052 , Godot will ask to create
many more shaders from bytecode than are initially required. Mobile
OSs like iOS are limited to compiling to shader libraries concurrently,
which results in a significant bottleneck.
This is not the default for macOS, as it can concurrently compile many
shaders at once, resulting in faster startup times for the Godot editor.
2025-02-25 05:32:38 +11:00
Alex
ee0cebeaad
Fix `modified_time` on Android
2025-02-20 17:13:41 +01:00
Rémi Verschelde
cd72d26518
Merge pull request #102830 from clayjohn/vma-memory-fix
...
Restore using VMA to create buffers and images
2025-02-17 09:47:47 +01:00
kleonc
b3769129cb
Fix 2D quad primitive missing lighting data in GLES3 renderer
2025-02-16 01:51:24 +01:00
kleonc
b691a997a3
Fix render info primitive count per TRIANGLE_STRIP
2025-02-15 23:50:07 +01:00
Thaddeus Crews
b607110ad2
Merge pull request #102792 from clayjohn/varying-crash
...
Validate varying count when compiling shaders
2025-02-14 08:25:39 -06:00
clayjohn
d93ac5ee0c
Restore using VMA to create buffers and images when we don't need to extra gpu memory tracking.
...
VMA handles memory allocation on certain devices better than our custom VK code, so we might as well use it
Co-authored-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
2025-02-13 17:40:42 -08:00
clayjohn
35100396e4
Validate varying count when compiling shaders
...
This avoids crashing on devices when a number of varyings greater than the device limit is used.
For now this accurately prints an error when compiling the shader, but the error text only pops up in the editor if the number of user varyings is above the limit.
2025-02-13 15:07:15 -08:00
Matias N. Goldberg
fcd785ace2
Add ASTC HDR format variants
2025-02-13 11:45:42 -03:00
bruvzg
f0ac8294cb
[Windows] Add missing opened file check.
2025-02-13 11:18:46 +02:00
Pāvels Nadtočajevs
d5865cb962
[Unix] Fix deleting symlinks.
2025-02-07 18:57:22 +02:00
Lukas Tenbrink
e34f1f504c
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-02-07 14:57:48 +01:00
BlueCube3310
8714b36171
Fix rendering material when UV2 is compressed
2025-02-06 20:24:46 +01:00
Rémi Verschelde
50b847992d
Merge pull request #101602 from stuartcarnie/metal_gpu_address
...
Metal: Enable GPU buffer address support
2025-02-05 11:33:50 +01:00
Thaddeus Crews
ea2770eb4f
Merge pull request #101947 from Rudolph-B/Issue-101750
...
Add Heightfield mask to GPUParticlesCollisionHeightField3D
2025-02-04 09:04:11 -06:00
Rudolph Bester
b162c59097
Fix GPUParticlesCollisionHeightField3D adding collisions excluded by its layer_mask
...
Co-authored-by: Yahia Zakaria <yahiazakaria13@gmail.com>
2025-02-04 08:02:44 +02:00
Pāvels Nadtočajevs
e6e108d091
Implement `get_length()` for pipes.
2025-02-03 16:50:00 +02:00
bruvzg
baa33d49b1
[Windows] Fix build with MinGW 8.0.0-1.
2025-01-31 20:39:31 +02:00
Chaosus
570e59df3d
Fix shader uniforms has null as default value
2025-01-31 07:35:51 +03:00
Thaddeus Crews
3ba6ac0f66
Merge pull request #102143 from MathdudeMan/shader-error
...
Fix: Mass property particle shader bug
2025-01-29 17:45:13 -06:00
Stuart Carnie
0a9cd5ede9
2D: Fix clip children and rendering artefacts
...
Fixes both GLES3 and RendererRD implementations
Closes #102147
2025-01-30 07:19:47 +11:00
MathdudeMan
964cd6525e
Fix: Mass property particle shader error
2025-01-28 21:00:26 -05:00
Thaddeus Crews
808c25f453
Merge pull request #102089 from adamscott/fix-curve-texture-web
...
Add check for float texture linear filtering support
2025-01-28 09:03:39 -06:00
Adam Scott
60913170c6
Add check for float texture linear filtering support
...
Co-authored-by: Clay John <claynjohn@gmail.com>
2025-01-27 22:12:08 -05:00
Thaddeus Crews
82199a83ce
Merge pull request #101998 from stuartcarnie/2d_buffer_overwrite
...
2D: Fix rendering artifacts when using `BackBufferCopy`.
2025-01-27 09:46:22 -06:00
Julian Todd
b5622e9f78
Initialize pa_buffer_attr.maxlength to -1
2025-01-27 07:57:57 +00:00
Stuart Carnie
2510fefebd
2D: Fix rendering artefacts when using `BackBufferCopy`.
...
Fixes both GLES3 and RendererRD implementations
2025-01-25 10:22:07 +11:00
Thaddeus Crews
802cb0fed8
Merge pull request #101909 from BlueCube3310/compat-rgtc-arr
...
WebGL2: Fix 2D array textures with RGTC compression not rendering
2025-01-24 09:05:36 -06:00
Matias N. Goldberg
c30eff5986
Fix performance regression introduced in #90993
...
PR #90993 needed to get rid of VMA_MEMORY_USAGE_AUTO_PREFER_HOST because
we no longer used vmaCreateBuffer so we could specify the allocation
callbacks.
This however resulted in the wrong memory pool being chosen, causing
signficant performance slowdown.
Indicate additional preferred flags to help VMA select the proper pool.
Fixes #101905
2025-01-24 00:08:29 -03:00
clayjohn
74989c639e
Pass angular diameter into light size constants for sky shaders.
...
This flew under the radar for so long since tan is nearly linear at small values
2025-01-23 17:32:44 -08:00
BlueCube3310
2221f6ed13
WebGL2: Fix 2D array textures with RGTC compression not rendering
2025-01-22 20:41:20 +01:00
Thaddeus Crews
604e3ab91f
Merge pull request #101730 from clayjohn/GLES3-emission-half
...
Bake UV2 emission using half float in the compatibility backend
2025-01-20 10:05:39 -06:00
Thaddeus Crews
0d4696b472
Merge pull request #101515 from allenwp/agx-negative-optimizations
...
Optimize AgX tonemapper's handling of negative values
2025-01-20 10:05:38 -06:00
Thaddeus Crews
dcf4996276
Merge pull request #101159 from brandon515/compatibility_particle_shader_fix
...
Fix inverted `GPUParticlesCollisionHeightField3D` in compatibility renderer.
2025-01-20 10:05:24 -06:00
Brandon Haley
990612040a
Implemented fix from #91219 in compatibility renderer by reversing the z
...
axis in the particle shader.
2025-01-18 13:32:10 -05:00
clayjohn
441fc1cba3
Baked UV2 emission using half float in the compatibility backend
...
The Lightmapper expects a half float image anyway, so this is both more efficient and correct
2025-01-17 16:46:31 -08:00
clayjohn
b8252196df
Avoid leaking ninepatch state to other draw commands in GLES backend
2025-01-17 10:13:04 -08:00
Stuart Carnie
01b4fd3522
Metal: enable GPU buffer address support
2025-01-16 06:10:50 +11:00