Table of Contents

Struct Texture2D<TPixel>

Namespace
Xui.GPU.Shaders.Types
Assembly
Xui.Core.dll

Represents a 2D texture resource in shader code.

public readonly struct Texture2D<TPixel> where TPixel : unmanaged

Type Parameters

TPixel

The pixel format type (typically Color4).

Inherited Members

Remarks

In CPU execution, this wraps actual texture data. In GPU execution, this will be translated to the appropriate backend texture type.

Constructors

Texture2D(object?)

Initializes a new instance of the Texture2D<TPixel> struct.

public Texture2D(object? data)

Parameters

data object

The underlying texture data (implementation-specific).