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.

RDTextureView

继承: RefCounted < Object

纹理视图(由 RenderingDevice 使用)。

描述

这个对象由 RenderingDevice 使用。

属性

DataFormat

format_override

232

TextureSwizzle

swizzle_a

6

TextureSwizzle

swizzle_b

5

TextureSwizzle

swizzle_g

4

TextureSwizzle

swizzle_r

3


属性说明

DataFormat format_override = 232 🔗

返回的采样值的可选覆盖数据格式。相应的 RDTextureFormat 必须将其添加为可共享格式。默认值 RenderingDevice.DATA_FORMAT_MAX 不会覆盖格式。


TextureSwizzle swizzle_a = 6 🔗

对 Alpha 通道进行采样时采样的通道。


TextureSwizzle swizzle_b = 5 🔗

对蓝色通道进行采样时采样的通道。


TextureSwizzle swizzle_g = 4 🔗

对绿色通道进行采样时采样的通道。


TextureSwizzle swizzle_r = 3 🔗

对红色通道进行采样时采样的通道。