summaryrefslogtreecommitdiffstats
path: root/doc/classes/RDTextureFormat.xml
diff options
context:
space:
mode:
authorDario <dariosamo@gmail.com>2024-10-24 16:01:00 -0300
committerDario <dariosamo@gmail.com>2024-11-25 11:27:48 -0300
commit6d5ac8f7ef4a3ddaf50720ab473b9dffece21674 (patch)
tree944b63cb05590c207f242025bae3aabc02e0b656 /doc/classes/RDTextureFormat.xml
parent0c45ace151f25de2ca54fe7a46b6f077be32ba6f (diff)
downloadredot-engine-6d5ac8f7ef4a3ddaf50720ab473b9dffece21674.tar.gz
Resolve load and store ops automatically for render passes for discardable textures.
Diffstat (limited to 'doc/classes/RDTextureFormat.xml')
-rw-r--r--doc/classes/RDTextureFormat.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/RDTextureFormat.xml b/doc/classes/RDTextureFormat.xml
index ac875ab7c1..617ed95434 100644
--- a/doc/classes/RDTextureFormat.xml
+++ b/doc/classes/RDTextureFormat.xml
@@ -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>