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()
回傳的取樣值的可選覆蓋資料格式。相應的 RDTextureFormat 必須將其新增為可共享格式。預設值 RenderingDevice.DATA_FORMAT_MAX 不會覆蓋格式。
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()
對紅色通道進行取樣時取樣的通道。