Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

RDTextureView

继承: RefCounted < Object

纹理视图(由 RenderingDevice 使用)。

描述

这个对象由 RenderingDevice 使用。

属性

DataFormat

format_override

218

TextureSwizzle

swizzle_a

6

TextureSwizzle

swizzle_b

5

TextureSwizzle

swizzle_g

4

TextureSwizzle

swizzle_r

3


属性说明

DataFormat format_override = 218

对返回采样值数据格式的可选覆盖。默认值 RenderingDevice.DATA_FORMAT_MAX 不会对格式进行覆盖。


TextureSwizzle swizzle_a = 6

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


TextureSwizzle swizzle_b = 5

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


TextureSwizzle swizzle_g = 4

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


TextureSwizzle swizzle_r = 3

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