Class TextureCreateInfo
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
TextureTypeThe texture type.
Format
ImageFormatTexture image format.
ColorSpace
ImageColorSpaceThe image color space.
Width
intWidth in pixels.
Height
intHeight in pixels.
Depth
intDepth in pixels.
MipLevels
intNumber mipmap levels. Negative for auto.
Properties
AlphaSwizzle
The swizzle value for the Alpha color channel.
public ColorChannel AlphaSwizzle { get; init; }
Property Value
AutoGenerateMipmaps
True in order to generate all missing mipmap levels of the texture.
public bool AutoGenerateMipmaps { get; init; }
Property Value
BlueSwizzle
The swizzle value for the blue color channel.
public ColorChannel BlueSwizzle { get; init; }
Property Value
BorderColor
The border color for the texture.
public Color4<Rgba>? BorderColor { get; init; }
Property Value
ColorSpace
The image color space.
public ImageColorSpace ColorSpace { get; init; }
Property Value
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
Depth
Depth in pixels.
public int Depth { get; init; }
Property Value
Format
Texture image format.
public ImageFormat Format { get; init; }
Property Value
GreenSwizzle
The swizzle value for the green color channel.
public ColorChannel GreenSwizzle { get; init; }
Property Value
Height
Height in pixels.
public int Height { get; init; }
Property Value
this[int]
Gets the element at the specified index in the read-only list.
public TextureData this[int index] { get; }
Parameters
index
intThe 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
MinFilter
Minification filter for the texture.
public TextureMinFilter MinFilter { get; init; }
Property Value
MipLevels
Number mipmap levels. Negative for auto.
public int MipLevels { get; init; }
Property Value
RedSwizzle
The swizzle value for the red color channel.
public ColorChannel RedSwizzle { get; init; }
Property Value
RepeatModeR
Wrap mode for the depth axis.
public TextureWrapMode RepeatModeR { get; init; }
Property Value
RepeatModeS
Wrap mode for the horizontal axis.
public TextureWrapMode RepeatModeS { get; init; }
Property Value
RepeatModeT
Wrap mode for the vertical axis.
public TextureWrapMode RepeatModeT { get; init; }
Property Value
Type
The texture type.
public TextureType Type { get; init; }
Property Value
Width
Width in pixels.
public int Width { get; init; }
Property Value
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.