Table of Contents

Struct TextureUploadDescriptor

Namespace
BSGameLib.Game.Rendering
Assembly
BSGameLib.Game.dll

The pixels of a texture to upload, and how they are laid out.

public readonly record struct TextureUploadDescriptor : IEquatable<TextureUploadDescriptor>
Implements
Inherited Members

Constructors

TextureUploadDescriptor(byte[], int, int, TexturePixelFormat)

The pixels of a texture to upload, and how they are laid out.

public TextureUploadDescriptor(byte[] PixelData, int Width, int Height, TexturePixelFormat Format)

Parameters

PixelData byte[]

The pixels, row by row.

Width int

The width of the texture, in pixels.

Height int

The height of the texture, in pixels.

Format TexturePixelFormat

The layout of each pixel.

Properties

Format

The layout of each pixel.

public TexturePixelFormat Format { get; init; }

Property Value

TexturePixelFormat

Height

The height of the texture, in pixels.

public int Height { get; init; }

Property Value

int

PixelData

The pixels, row by row.

public byte[] PixelData { get; init; }

Property Value

byte[]

Width

The width of the texture, in pixels.

public int Width { get; init; }

Property Value

int