2020-04-20 02:19:21 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-07-06 08:08:05 +00:00
|
|
|
<class name="RDTextureFormat" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
2020-04-20 02:19:21 +00:00
|
|
|
<brief_description>
|
2023-03-28 15:32:29 +00:00
|
|
|
Texture format (used by [RenderingDevice]).
|
2020-04-20 02:19:21 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2023-03-28 15:32:29 +00:00
|
|
|
This object is used by [RenderingDevice].
|
2020-04-20 02:19:21 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_shareable_format">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
2022-08-06 18:11:48 +00:00
|
|
|
<param index="0" name="format" type="int" enum="RenderingDevice.DataFormat" />
|
2020-04-20 02:19:21 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="remove_shareable_format">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
2022-08-06 18:11:48 +00:00
|
|
|
<param index="0" name="format" type="int" enum="RenderingDevice.DataFormat" />
|
2020-04-20 02:19:21 +00:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="array_layers" type="int" setter="set_array_layers" getter="get_array_layers" default="1">
|
2023-03-28 15:32:29 +00:00
|
|
|
The number of layers in the texture. Only relevant for 2D texture arrays.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
<member name="depth" type="int" setter="set_depth" getter="get_depth" default="1">
|
2023-03-28 15:32:29 +00:00
|
|
|
The texture's depth (in pixels). This is always [code]1[/code] for 2D textures.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
<member name="format" type="int" setter="set_format" getter="get_format" enum="RenderingDevice.DataFormat" default="8">
|
2023-03-28 15:32:29 +00:00
|
|
|
The texture's pixel data format.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
<member name="height" type="int" setter="set_height" getter="get_height" default="1">
|
2023-03-28 15:32:29 +00:00
|
|
|
The texture's height (in pixels).
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
<member name="mipmaps" type="int" setter="set_mipmaps" getter="get_mipmaps" default="1">
|
2023-03-28 15:32:29 +00:00
|
|
|
The number of mipmaps available in the texture.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
<member name="samples" type="int" setter="set_samples" getter="get_samples" enum="RenderingDevice.TextureSamples" default="0">
|
2023-03-28 15:32:29 +00:00
|
|
|
The number of samples used when sampling the texture.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
2020-11-27 03:50:05 +00:00
|
|
|
<member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="RenderingDevice.TextureType" default="1">
|
2023-03-28 15:32:29 +00:00
|
|
|
The texture type.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
2023-06-15 14:06:22 +00:00
|
|
|
<member name="usage_bits" type="int" setter="set_usage_bits" getter="get_usage_bits" enum="RenderingDevice.TextureUsageBits" is_bitfield="true" default="0">
|
2023-03-28 15:32:29 +00:00
|
|
|
The texture's usage bits, which determine what can be done using the texture.
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
<member name="width" type="int" setter="set_width" getter="get_width" default="1">
|
2023-03-28 15:32:29 +00:00
|
|
|
The texture's width (in pixels).
|
2020-04-20 02:19:21 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
</class>
|