summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-14 09:25:59 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-14 09:25:59 +0200
commit41776634b6829578c080a9b852fdb0c3019de34d (patch)
tree39405a85fc5989e26c3a45e62f3f3af6f573c3ec /doc
parent5145098e6e3407c309f20101df4e06457516978e (diff)
parent6dd47e232b64cb093ddb79eac0b7891531deea62 (diff)
downloadredot-engine-41776634b6829578c080a9b852fdb0c3019de34d.tar.gz
Merge pull request #78161 from BastiaanOlij/expose_texture_native_handle
Expose `RD::texture_get_native_handle`
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/RenderingDevice.xml8
-rw-r--r--doc/classes/RenderingServer.xml4
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/classes/RenderingDevice.xml b/doc/classes/RenderingDevice.xml
index 2e92eac2a5..e19bb440ec 100644
--- a/doc/classes/RenderingDevice.xml
+++ b/doc/classes/RenderingDevice.xml
@@ -752,6 +752,14 @@
[b]Note:[/b] [param texture] requires the [constant TEXTURE_USAGE_CAN_COPY_FROM_BIT] to be retrieved. Otherwise, an error is printed and a empty [PackedByteArray] is returned.
</description>
</method>
+ <method name="texture_get_native_handle">
+ <return type="int" />
+ <param index="0" name="texture" type="RID" />
+ <description>
+ Returns the internal graphics handle for this texture object. For use when communicating with third-party APIs mostly with GDExtension.
+ [b]Note:[/b] This function returns a [code]uint64_t[/code] which internally maps to a [code]GLuint[/code] (OpenGL) or [code]VkImage[/code] (Vulkan).
+ </description>
+ </method>
<method name="texture_is_format_supported_for_usage" qualifiers="const">
<return type="bool" />
<param index="0" name="format" type="int" enum="RenderingDevice.DataFormat" />
diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml
index 840a594ec4..6b65302a7d 100644
--- a/doc/classes/RenderingServer.xml
+++ b/doc/classes/RenderingServer.xml
@@ -3286,8 +3286,8 @@
<param index="0" name="texture" type="RID" />
<param index="1" name="srgb" type="bool" default="false" />
<description>
- Returns the internal graphics handle for this texture object. For use when communicating with 3rd party APIs mostly with GDExternal.
- [b]Note:[/b] This functions returns a [code]uint64_t[/code] which internally maps to a [code]GLuint[/code] (OpenGL) or [code]VkImage[/code] (Vulkan).
+ Returns the internal graphics handle for this texture object. For use when communicating with third-party APIs mostly with GDExtension.
+ [b]Note:[/b] This function returns a [code]uint64_t[/code] which internally maps to a [code]GLuint[/code] (OpenGL) or [code]VkImage[/code] (Vulkan).
</description>
</method>
<method name="texture_get_path" qualifiers="const">