diff options
author | Bastiaan Olij <mux213@gmail.com> | 2023-06-13 09:28:35 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2023-06-14 09:58:08 +1000 |
commit | 6dd47e232b64cb093ddb79eac0b7891531deea62 (patch) | |
tree | 5d016e6105b5e26c7ee628344d85331b4fa01452 /doc | |
parent | dcd31a25b473e8c6049224e586418de0f1ecdbf3 (diff) | |
download | redot-engine-6dd47e232b64cb093ddb79eac0b7891531deea62.tar.gz |
Expose RD::texture_native_handle
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/RenderingDevice.xml | 8 | ||||
-rw-r--r-- | doc/classes/RenderingServer.xml | 4 |
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"> |