Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RDTextureFormat
Hérite de : RefCounted < Object
Format de texture (utilisé par RenderingDevice).
Description
This object is used by RenderingDevice.
Propriétés
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
BitField[TextureUsageBits] |
|
|
|
Méthodes
void |
add_shareable_format(format: DataFormat) |
void |
remove_shareable_format(format: DataFormat) |
Descriptions des propriétés
The number of layers in the texture. Only relevant for 2D texture arrays.
The texture's depth (in pixels). This is always 1 for 2D textures.
DataFormat format = 8 🔗
void set_format(value: DataFormat)
DataFormat get_format()
Le format des données de pixels de la texture.
La hauteur de la texture (en pixels).
If a texture is discardable, its contents do not need to be preserved between frames. This flag is only relevant when the texture is used as target in a draw list.
This information is used by RenderingDevice to figure out if a texture's contents can be discarded, eliminating unnecessary writes to memory and boosting performance.
bool is_resolve_buffer = false 🔗
The texture will be used as the destination of a resolve operation.
The number of mipmaps available in the texture.
TextureSamples samples = 0 🔗
void set_samples(value: TextureSamples)
TextureSamples get_samples()
The number of samples used when sampling the texture.
TextureType texture_type = 1 🔗
void set_texture_type(value: TextureType)
TextureType get_texture_type()
Le type de texture.
BitField[TextureUsageBits] usage_bits = 0 🔗
void set_usage_bits(value: BitField[TextureUsageBits])
BitField[TextureUsageBits] get_usage_bits()
The texture's usage bits, which determine what can be done using the texture.
La largeur de la texture (en pixels).
Descriptions des méthodes
Adds format as a valid format for the corresponding RDTextureView's RDTextureView.format_override property. If any format is added as shareable, then the main format must also be added.
Removes format from the list of valid formats that the corresponding RDTextureView's RDTextureView.format_override property can be set to.