Struct TextureData
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
ImageFormatImage format.
Width
intWidth in pixels.
Height
intHeight in pixels.
Depth
intDepth in pixels.
Level
intMipmap level.
Properties
AutoGenerated
True if this layer should be auto generated from the previous layer.
public bool AutoGenerated { readonly get; init; }
Property Value
Depth
Depth in pixels.
public int Depth { readonly get; set; }
Property Value
Format
Image format.
public ImageFormat Format { readonly get; set; }
Property Value
Height
Height in pixels.
public int Height { readonly get; set; }
Property Value
Level
Mipmap level.
public int Level { readonly get; set; }
Property Value
Max
The maximum pixel coordinate (exclusive) for sparse data.
public Vector4i? Max { readonly get; init; }
Property Value
Min
The minimum pixel coordinate (inclusive) for sparse data.
public Vector4i? Min { readonly get; init; }
Property Value
Offset
Texture data offset in the Source buffer.
public int Offset { readonly get; init; }
Property Value
Source
The source of the image data.
public BufferResource? Source { readonly get; init; }
Property Value
Width
Width in pixels.
public int Width { readonly get; set; }