summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEpEpDragon <bergapie@gmail.com>2022-12-28 10:37:42 +0200
committerEpEpDragon <bergapie@gmail.com>2023-01-06 17:08:37 +0200
commit36d02882b9ac773416fb3304fa7679bcdb45e7b9 (patch)
tree231def654067d772ed7d2567e42e8418d921007e /doc
parentb14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff)
Added optional offset and size parameter to RenderDevice buffer_get_data method
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/RenderingDevice.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/RenderingDevice.xml b/doc/classes/RenderingDevice.xml
index f318430611..a575ea80b0 100644
--- a/doc/classes/RenderingDevice.xml
+++ b/doc/classes/RenderingDevice.xml
@@ -26,7 +26,10 @@
<method name="buffer_get_data">
<return type="PackedByteArray" />
<param index="0" name="buffer" type="RID" />
+ <param index="1" name="offset_bytes" type="int" default="0" />
+ <param index="2" name="size_bytes" type="int" default="0" />
<description>
+ Returns a copy of the data of the specified [param buffer], optionally [param offset_bytes] and [param size_bytes] can be set to copy only a portion of the buffer.
</description>
</method>
<method name="buffer_update">