Struct Texture2D<TPixel>
Represents a 2D texture resource in shader code.
public readonly struct Texture2D<TPixel> where TPixel : unmanaged
Type Parameters
TPixelThe 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
dataobjectThe underlying texture data (implementation-specific).