1
0
Fork 0
godot/misc
Matias N. Goldberg af900a5825 Change how device address is requested to avoid future API breakage
PR #100062 introduced BUFFER_USAGE_DEVICE_ADDRESS_BIT.

However it did so by adding a boolean to uniform_buffer_create(), called
"bool p_enable_device_address".

This makes maintaining backwards compatibility harder because I am
working on another feature that would require introducing yet another
bit flag.

This would save us the need to add fallback routines when the feature I
am working on makes it to Godot 4.5.

Even if my feature doesn't make it to 4.5 either, this PR makes the
routine more future-proof.

This PR also moves STORAGE_BUFFER_USAGE_DEVICE_ADDRESS into
BUFFER_CREATION_DEVICE_ADDRESS_BIT, since it's an option available to
both storage and uniforms.

This PR also moves the boolean use_as_storage into
BUFFER_CREATION_AS_STORAGE.
2025-02-11 20:00:18 -03:00
..
dist Fix various typos 2025-01-08 14:47:42 +02:00
error_suppressions Add thirdparty/ ubsan suppressions for TPS demo 2024-12-14 00:41:52 +01:00
extension_api_validation Change how device address is requested to avoid future API breakage 2025-02-11 20:00:18 -03:00
msvs SCons: Fix output with `vsproj=yes` 2024-06-29 13:11:19 -05:00
scripts SCons: Refactor color output implementation 2025-01-07 18:44:53 -06:00
utility Style: Enable clang-format's `InsertBraces` config 2025-01-09 16:46:51 +01:00