Class FormatInfo¶
Namespace: Apogee.Core.Graphics
Assembly: Apogee.Core.dll
Sizes and kinds of the formats the engine uses.
public static class FormatInfo
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Block(PixelFormat)¶
Bytes per texel for an uncompressed format, or per block for a block-compressed one, and the block's size in texels.
public static (int BytesPerBlock, int BlockWidth, int BlockHeight) Block(PixelFormat format)
Parameters¶
format PixelFormat
Returns¶
(int BytesPerBlock, int BlockWidth, int BlockHeight)
HasStencil(PixelFormat)¶
public static bool HasStencil(PixelFormat format)
Parameters¶
format PixelFormat
Returns¶
IsDepth(PixelFormat)¶
public static bool IsDepth(PixelFormat format)
Parameters¶
format PixelFormat
Returns¶
LevelSize(PixelFormat, uint, uint, uint)¶
Bytes in one mip level of an image of this format.
public static ulong LevelSize(PixelFormat format, uint width, uint height, uint depth = 1)
Parameters¶
format PixelFormat
width uint
height uint
depth uint