RDTextureFormat

继承: RefCounted < Object

Texture format (used by RenderingDevice).

描述

This object is used by RenderingDevice.

属性

方法


属性说明

int array_layers = 1

  • void set_array_layers ( value: int )
  • int get_array_layers ( )

The number of layers in the texture. Only relevant for 2D texture arrays.


int depth = 1

  • void set_depth ( value: int )
  • int get_depth ( )

The texture's depth (in pixels). This is always 1 for 2D textures.


DataFormat format = 8

The texture's pixel data format.


int height = 1

  • void set_height ( value: int )
  • int get_height ( )

The texture's height (in pixels).


int mipmaps = 1

  • void set_mipmaps ( value: int )
  • int get_mipmaps ( )

The number of mipmaps available in the texture.


TextureSamples samples = 0

The number of samples used when sampling the texture.


TextureType texture_type = 1

The texture type.


TextureUsageBits usage_bits = 0

The texture's usage bits, which determine what can be done using the texture.


int width = 1

  • void set_width ( value: int )
  • int get_width ( )

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>\ 吧!

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。