Table of Contents

Struct TextureData

Namespace
ReFuel.Resources
Assembly
ReFuel.dll

Provides sparse or dense image data for a texture.

public record struct TextureData : IEquatable<TextureData>
Implements
Inherited Members

Constructors

TextureData(ImageFormat, int, int, int, int)

Provides sparse or dense image data for a texture.

public TextureData(ImageFormat Format, int Width, int Height, int Depth, int Level)

Parameters

Format ImageFormat

Image format.

Width int

Width in pixels.

Height int

Height in pixels.

Depth int

Depth in pixels.

Level int

Mipmap level.

Properties

AutoGenerated

True if this layer should be auto generated from the previous layer.

public bool AutoGenerated { readonly get; init; }

Property Value

bool

Depth

Depth in pixels.

public int Depth { readonly get; set; }

Property Value

int

Format

Image format.

public ImageFormat Format { readonly get; set; }

Property Value

ImageFormat

Height

Height in pixels.

public int Height { readonly get; set; }

Property Value

int

Level

Mipmap level.

public int Level { readonly get; set; }

Property Value

int

Max

The maximum pixel coordinate (exclusive) for sparse data.

public Vector4i? Max { readonly get; init; }

Property Value

Vector4i?

Min

The minimum pixel coordinate (inclusive) for sparse data.

public Vector4i? Min { readonly get; init; }

Property Value

Vector4i?

Offset

Texture data offset in the Source buffer.

public int Offset { readonly get; init; }

Property Value

int

Source

The source of the image data.

public BufferResource? Source { readonly get; init; }

Property Value

BufferResource

Width

Width in pixels.

public int Width { readonly get; set; }

Property Value

int