Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
RDTextureFormat¶
继承: RefCounted < Object
纹理格式(由 RenderingDevice 使用)。
描述¶
这个对象由 RenderingDevice 使用。
属性¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
BitField<TextureUsageBits> |
|
|
|
方法¶
void |
add_shareable_format ( DataFormat format ) |
void |
remove_shareable_format ( DataFormat format ) |
属性说明¶
int array_layers = 1
纹理的层数。仅适用于 2D 纹理数组。
int depth = 1
纹理的深度(单位为像素)。2D 纹理始终为 1
。
DataFormat format = 8
void set_format ( DataFormat value )
DataFormat get_format ( )
纹理的像素数据格式。
int height = 1
纹理的高度(单位为像素)。
int mipmaps = 1
纹理中可用的 mipmap 数。
TextureSamples samples = 0
void set_samples ( TextureSamples value )
TextureSamples get_samples ( )
对纹理进行采样时所使用的样本数。
TextureType texture_type = 1
void set_texture_type ( TextureType value )
TextureType get_texture_type ( )
纹理类型。
BitField<TextureUsageBits> usage_bits = 0
void set_usage_bits ( BitField<TextureUsageBits> value )
BitField<TextureUsageBits> get_usage_bits ( )
纹理的用途位,决定使用该纹理时能做什么。
int width = 1
纹理的宽度(单位为像素)。
方法说明¶
目前没有这个方法的描述。请帮我们贡献一个!
目前没有这个方法的描述。请帮我们贡献一个!