For GDExternal use, provides access to internal graphics handles for textures
This commit is contained in:
parent
6980b2bf17
commit
c328676d96
13 changed files with 45 additions and 0 deletions
|
|
@ -3281,6 +3281,15 @@
|
|||
[b]Note:[/b] The [param texture] must have the same width, height, depth and format as the current texture data. Otherwise, an error will be printed and the original texture won't be modified. If you need to use different width, height, depth or format, use [method texture_replace] instead.
|
||||
</description>
|
||||
</method>
|
||||
<method name="texture_get_native_handle" qualifiers="const">
|
||||
<return type="int" />
|
||||
<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).
|
||||
</description>
|
||||
</method>
|
||||
<method name="texture_get_path" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="texture" type="RID" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue