RDTextureView¶
继承: RefCounted < Object
纹理视图(由RenderingDevice使用)。
描述¶
此对象由RenderingDevice使用。
属性¶
属性说明¶
DataFormat format_override = 218 🔗
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()
对红色通道进行采样时要采样的通道。