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...
RDTextureView¶
继承: RefCounted < Object
纹理视图(由 RenderingDevice 使用)。
描述¶
这个对象由 RenderingDevice 使用。
属性¶
|
||
|
||
|
||
|
||
|
属性说明¶
DataFormat format_override = 218
void set_format_override ( DataFormat value )
DataFormat get_format_override ( )
对返回采样值数据格式的可选覆盖。默认值 RenderingDevice.DATA_FORMAT_MAX 不会对格式进行覆盖。
TextureSwizzle swizzle_a = 6
void set_swizzle_a ( TextureSwizzle value )
TextureSwizzle get_swizzle_a ( )
对 Alpha 通道进行采样时采样的通道。
TextureSwizzle swizzle_b = 5
void set_swizzle_b ( TextureSwizzle value )
TextureSwizzle get_swizzle_b ( )
对蓝色通道进行采样时采样的通道。
TextureSwizzle swizzle_g = 4
void set_swizzle_g ( TextureSwizzle value )
TextureSwizzle get_swizzle_g ( )
对绿色通道进行采样时采样的通道。
TextureSwizzle swizzle_r = 3
void set_swizzle_r ( TextureSwizzle value )
TextureSwizzle get_swizzle_r ( )
对红色通道进行采样时采样的通道。