RDTextureFormat
继承: RefCounted
< Object
Texture format (used by RenderingDevice
).
描述
This object is used by RenderingDevice
.
属性
int | array_layers |
int | depth |
DataFormat | format |
int | height |
int | mipmaps |
TextureSamples | samples |
TextureType | texture_type |
TextureUsageBits | usage_bits |
int | width |
方法
void | add_shareable_format ( format: DataFormat ) |
void | remove_shareable_format ( format: DataFormat ) |
属性说明
int
array_layers = 1
The number of layers in the texture. Only relevant for 2D texture arrays.
int
depth = 1
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.
int
height = 1
The texture's height (in pixels).
int
mipmaps = 1
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.
TextureUsageBits usage_bits = 0
void
set_usage_bits ( value: TextureUsageBits )- TextureUsageBits get_usage_bits ( )
The texture's usage bits, which determine what can be done using the texture.
int
width = 1
The texture's width (in pixels).
方法说明
void
add_shareable_format ( format: DataFormat )
该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
void
remove_shareable_format ( format: DataFormat )
该方法目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。