Table of Contents

Class TextureCreateInfo

Namespace
ReFuel.Resources
Assembly
ReFuel.dll

Texture constructor object.

public record TextureCreateInfo : IReadOnlyList<TextureData>, IReadOnlyCollection<TextureData>, IEnumerable<TextureData>, IEnumerable, IEquatable<TextureCreateInfo>
Inheritance
TextureCreateInfo
Implements
Inherited Members

Constructors

TextureCreateInfo(TextureType, ImageFormat, ImageColorSpace, int, int, int, int)

Texture constructor object.

public TextureCreateInfo(TextureType Type, ImageFormat Format, ImageColorSpace ColorSpace, int Width, int Height, int Depth, int MipLevels)

Parameters

Type TextureType

The texture type.

Format ImageFormat

Texture image format.

ColorSpace ImageColorSpace

The image color space.

Width int

Width in pixels.

Height int

Height in pixels.

Depth int

Depth in pixels.

MipLevels int

Number mipmap levels. Negative for auto.

Properties

AlphaSwizzle

The swizzle value for the Alpha color channel.

public ColorChannel AlphaSwizzle { get; init; }

Property Value

ColorChannel

AutoGenerateMipmaps

True in order to generate all missing mipmap levels of the texture.

public bool AutoGenerateMipmaps { get; init; }

Property Value

bool

BlueSwizzle

The swizzle value for the blue color channel.

public ColorChannel BlueSwizzle { get; init; }

Property Value

ColorChannel

BorderColor

The border color for the texture.

public Color4<Rgba>? BorderColor { get; init; }

Property Value

Color4<Rgba>?

ColorSpace

The image color space.

public ImageColorSpace ColorSpace { get; init; }

Property Value

ImageColorSpace

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

Data

The list of texture data sources.

public ImmutableList<TextureData> Data { get; init; }

Property Value

ImmutableList<TextureData>

Depth

Depth in pixels.

public int Depth { get; init; }

Property Value

int

Format

Texture image format.

public ImageFormat Format { get; init; }

Property Value

ImageFormat

GreenSwizzle

The swizzle value for the green color channel.

public ColorChannel GreenSwizzle { get; init; }

Property Value

ColorChannel

Height

Height in pixels.

public int Height { get; init; }

Property Value

int

this[int]

Gets the element at the specified index in the read-only list.

public TextureData this[int index] { get; }

Parameters

index int

The zero-based index of the element to get.

Property Value

TextureData

The element at the specified index in the read-only list.

MagFilter

Magnification filter for the texture.

public TextureMagFilter MagFilter { get; init; }

Property Value

TextureMagFilter

MinFilter

Minification filter for the texture.

public TextureMinFilter MinFilter { get; init; }

Property Value

TextureMinFilter

MipLevels

Number mipmap levels. Negative for auto.

public int MipLevels { get; init; }

Property Value

int

RedSwizzle

The swizzle value for the red color channel.

public ColorChannel RedSwizzle { get; init; }

Property Value

ColorChannel

RepeatModeR

Wrap mode for the depth axis.

public TextureWrapMode RepeatModeR { get; init; }

Property Value

TextureWrapMode

RepeatModeS

Wrap mode for the horizontal axis.

public TextureWrapMode RepeatModeS { get; init; }

Property Value

TextureWrapMode

RepeatModeT

Wrap mode for the vertical axis.

public TextureWrapMode RepeatModeT { get; init; }

Property Value

TextureWrapMode

Type

The texture type.

public TextureType Type { get; init; }

Property Value

TextureType

Width

Width in pixels.

public int Width { get; init; }

Property Value

int

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<TextureData> GetEnumerator()

Returns

IEnumerator<TextureData>

An enumerator that can be used to iterate through the collection.