:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RDTextureFormat.xml. .. _class_RDTextureFormat: RDTextureFormat =============== **Inherits:** :ref:`RefCounted` **<** :ref:`Object` Properties ---------- +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`array_layers` | ``1`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`depth` | ``1`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`DataFormat` | :ref:`format` | ``8`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`height` | ``1`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`mipmaps` | ``1`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`TextureSamples` | :ref:`samples` | ``0`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`TextureType` | :ref:`texture_type` | ``1`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`usage_bits` | ``0`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`width` | ``1`` | +------------------------------------------------------------+------------------------------------------------------------------+-------+ Methods ------- +------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_shareable_format` **(** :ref:`DataFormat` format **)** | +------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_shareable_format` **(** :ref:`DataFormat` format **)** | +------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ Property Descriptions --------------------- .. _class_RDTextureFormat_property_array_layers: - :ref:`int` **array_layers** +-----------+-------------------------+ | *Default* | ``1`` | +-----------+-------------------------+ | *Setter* | set_array_layers(value) | +-----------+-------------------------+ | *Getter* | get_array_layers() | +-----------+-------------------------+ ---- .. _class_RDTextureFormat_property_depth: - :ref:`int` **depth** +-----------+------------------+ | *Default* | ``1`` | +-----------+------------------+ | *Setter* | set_depth(value) | +-----------+------------------+ | *Getter* | get_depth() | +-----------+------------------+ ---- .. _class_RDTextureFormat_property_format: - :ref:`DataFormat` **format** +-----------+-------------------+ | *Default* | ``8`` | +-----------+-------------------+ | *Setter* | set_format(value) | +-----------+-------------------+ | *Getter* | get_format() | +-----------+-------------------+ ---- .. _class_RDTextureFormat_property_height: - :ref:`int` **height** +-----------+-------------------+ | *Default* | ``1`` | +-----------+-------------------+ | *Setter* | set_height(value) | +-----------+-------------------+ | *Getter* | get_height() | +-----------+-------------------+ ---- .. _class_RDTextureFormat_property_mipmaps: - :ref:`int` **mipmaps** +-----------+--------------------+ | *Default* | ``1`` | +-----------+--------------------+ | *Setter* | set_mipmaps(value) | +-----------+--------------------+ | *Getter* | get_mipmaps() | +-----------+--------------------+ ---- .. _class_RDTextureFormat_property_samples: - :ref:`TextureSamples` **samples** +-----------+--------------------+ | *Default* | ``0`` | +-----------+--------------------+ | *Setter* | set_samples(value) | +-----------+--------------------+ | *Getter* | get_samples() | +-----------+--------------------+ ---- .. _class_RDTextureFormat_property_texture_type: - :ref:`TextureType` **texture_type** +-----------+-------------------------+ | *Default* | ``1`` | +-----------+-------------------------+ | *Setter* | set_texture_type(value) | +-----------+-------------------------+ | *Getter* | get_texture_type() | +-----------+-------------------------+ ---- .. _class_RDTextureFormat_property_usage_bits: - :ref:`int` **usage_bits** +-----------+-----------------------+ | *Default* | ``0`` | +-----------+-----------------------+ | *Setter* | set_usage_bits(value) | +-----------+-----------------------+ | *Getter* | get_usage_bits() | +-----------+-----------------------+ ---- .. _class_RDTextureFormat_property_width: - :ref:`int` **width** +-----------+------------------+ | *Default* | ``1`` | +-----------+------------------+ | *Setter* | set_width(value) | +-----------+------------------+ | *Getter* | get_width() | +-----------+------------------+ Method Descriptions ------------------- .. _class_RDTextureFormat_method_add_shareable_format: - void **add_shareable_format** **(** :ref:`DataFormat` format **)** ---- .. _class_RDTextureFormat_method_remove_shareable_format: - void **remove_shareable_format** **(** :ref:`DataFormat` format **)** .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`