Struct TextureUploadDescriptor
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
PixelDatabyte[]The pixels, row by row.
WidthintThe width of the texture, in pixels.
HeightintThe height of the texture, in pixels.
FormatTexturePixelFormatThe layout of each pixel.
Properties
Format
The layout of each pixel.
public TexturePixelFormat Format { get; init; }
Property Value
Height
The height of the texture, in pixels.
public int Height { get; init; }
Property Value
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; }