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 = 232 🔗
void set_format_override(value: DataFormat)
DataFormat get_format_override()
Optional override for the data format to return sampled values in. The corresponding RDTextureFormat must have had this added as a shareable format. The default value of RenderingDevice.DATA_FORMAT_MAX does not override the format.
TextureSwizzle swizzle_a = 6 🔗
void set_swizzle_a(value: TextureSwizzle)
TextureSwizzle get_swizzle_a()
對 Alpha 通道進行取樣時取樣的通道。
TextureSwizzle swizzle_b = 5 🔗
void set_swizzle_b(value: TextureSwizzle)
TextureSwizzle get_swizzle_b()
對藍色通道進行取樣時取樣的通道。
TextureSwizzle swizzle_g = 4 🔗
void set_swizzle_g(value: TextureSwizzle)
TextureSwizzle get_swizzle_g()
對綠色通道進行取樣時取樣的通道。
TextureSwizzle swizzle_r = 3 🔗
void set_swizzle_r(value: TextureSwizzle)
TextureSwizzle get_swizzle_r()
對紅色通道進行取樣時取樣的通道。