Class TextureMetadata
Represents info about the texture, without its actual data.
public class TextureMetadata
- Inheritance
-
TextureMetadata
- Inherited Members
Properties
BytesPerPixel
Number of bytes per pixel.
public uint BytesPerPixel { get; init; }
Property Value
Components
Components per pixel (RGB, grayscale, RGBA...)
public uint Components { get; init; }
Property Value
Compression
Type of texture compression, if any.
public TextureCompression Compression { get; init; }
Property Value
CpuAccess
Whether it can be read from/written to by the CPU.
public bool CpuAccess { get; init; }
Property Value
Depth
Depth in pixels.
public uint Depth { get; init; }
Property Value
Float
Is this a floating-point texture?
public bool Float { get; init; }
Property Value
Height
Height in pixels.
public uint Height { get; init; }
Property Value
Is1D
Is this a 1D texture?
public bool Is1D { get; }
Property Value
Is2D
Is this a 2D texture?
public bool Is2D { get; }
Property Value
Is3D
Is this a 3D texture?
public bool Is3D { get; }
Property Value
NoSampling
Whether this doesn't need sampling.
public bool NoSampling { get; init; }
Property Value
ShaderWrite
Whether it can be written to by the shader.
public bool ShaderWrite { get; init; }
Property Value
Srgb
Is this an SRGB texture?
public bool Srgb { get; init; }
Property Value
Width
Width in pixels.
public uint Width { get; init; }