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¶
Inherits: RefCounted < Object
Texture view (used by RenderingDevice).
描述¶
This object is used by RenderingDevice.
属性¶
|
||
|
||
|
||
|
||
|
Property Descriptions¶
DataFormat format_override = 218
void set_format_override ( DataFormat value )
DataFormat get_format_override ( )
Optional override for the data format to return sampled values in. The default value of RenderingDevice.DATA_FORMAT_MAX does not override the format.
TextureSwizzle swizzle_a = 6
void set_swizzle_a ( TextureSwizzle value )
TextureSwizzle get_swizzle_a ( )
The channel to sample when sampling the alpha channel.
TextureSwizzle swizzle_b = 5
void set_swizzle_b ( TextureSwizzle value )
TextureSwizzle get_swizzle_b ( )
The channel to sample when sampling the blue color channel.
TextureSwizzle swizzle_g = 4
void set_swizzle_g ( TextureSwizzle value )
TextureSwizzle get_swizzle_g ( )
The channel to sample when sampling the green color channel.
TextureSwizzle swizzle_r = 3
void set_swizzle_r ( TextureSwizzle value )
TextureSwizzle get_swizzle_r ( )
The channel to sample when sampling the red color channel.