Expose texture_create_from_extension to GDExtension

This commit is contained in:
Shawn Wallace
2023-09-23 01:42:33 -04:00
parent c12d63556b
commit b12ed82c04
5 changed files with 19 additions and 3 deletions

View File

@@ -742,6 +742,21 @@
[b]Note:[/b] Not to be confused with [method RenderingServer.texture_2d_create], which creates the Godot-specific [Texture2D] resource as opposed to the graphics API's own texture type.
</description>
</method>
<method name="texture_create_from_extension">
<return type="RID" />
<param index="0" name="type" type="int" enum="RenderingDevice.TextureType" />
<param index="1" name="format" type="int" enum="RenderingDevice.DataFormat" />
<param index="2" name="samples" type="int" enum="RenderingDevice.TextureSamples" />
<param index="3" name="usage_flags" type="int" enum="RenderingDevice.TextureUsageBits" is_bitfield="true" />
<param index="4" name="image" type="int" />
<param index="5" name="width" type="int" />
<param index="6" name="height" type="int" />
<param index="7" name="depth" type="int" />
<param index="8" name="layers" type="int" />
<description>
Returns an RID for an existing [param image] ([code]VkImage[/code]) with the given [param type], [param format], [param samples], [param usage_flags], [param width], [param height], [param depth], and [param layers]. This can be used to allow Godot to render onto foreign images.
</description>
</method>
<method name="texture_create_shared">
<return type="RID" />
<param index="0" name="view" type="RDTextureView" />