Skip to content

RDTextureView

Inherits: RefCounted < Object

Texture view (used by RenderingDevice).

This object is used by RenderingDevice.

Type Name Default
RenderingDevice.DataFormat format_override 232
RenderingDevice.TextureSwizzle swizzle_a 6
RenderingDevice.TextureSwizzle swizzle_b 5
RenderingDevice.TextureSwizzle swizzle_g 4
RenderingDevice.TextureSwizzle swizzle_r 3

format_override

RenderingDevice.DataFormat format_override = 232

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.

swizzle_a

RenderingDevice.TextureSwizzle swizzle_a = 6

The channel to sample when sampling the alpha channel.

swizzle_b

RenderingDevice.TextureSwizzle swizzle_b = 5

The channel to sample when sampling the blue color channel.

swizzle_g

RenderingDevice.TextureSwizzle swizzle_g = 4

The channel to sample when sampling the green color channel.

swizzle_r

RenderingDevice.TextureSwizzle swizzle_r = 3

The channel to sample when sampling the red color channel.