Resolve load and store ops automatically for render passes for discardable textures.

This commit is contained in:
Dario
2024-10-24 16:01:00 -03:00
parent 0c45ace151
commit 6d5ac8f7ef
32 changed files with 799 additions and 473 deletions

View File

@@ -37,6 +37,13 @@
<member name="height" type="int" setter="set_height" getter="get_height" default="1">
The texture's height (in pixels).
</member>
<member name="is_discardable" type="bool" setter="set_is_discardable" getter="get_is_discardable" default="false">
If a texture is discardable, its contents do not need to be preserved between frames. This flag is only relevant when the texture is used as target in a draw list.
This information is used by [RenderingDevice] to figure out if a texture's contents can be discarded, eliminating unnecessary writes to memory and boosting performance.
</member>
<member name="is_resolve_buffer" type="bool" setter="set_is_resolve_buffer" getter="get_is_resolve_buffer" default="false">
The texture will be used as the destination of a resolve operation.
</member>
<member name="mipmaps" type="int" setter="set_mipmaps" getter="get_mipmaps" default="1">
The number of mipmaps available in the texture.
</member>