Up to date
This page is up to date for Godot 4.3
.
If you still find outdated information, please open an issue.
RDTextureFormat¶
Inherits: RefCounted < Object
Texture format (used by RenderingDevice).
Description¶
This object is used by RenderingDevice.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
BitField[TextureUsageBits] |
|
|
|
Methods¶
void |
add_shareable_format(format: DataFormat) |
void |
remove_shareable_format(format: DataFormat) |
Property Descriptions¶
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()
The texture's pixel data format.
The texture's height (in pixels).
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()
The texture type.
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.
The texture's width (in pixels).
Method Descriptions¶
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.