GraphicsAPI reference
Class TextureFormats
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
Byte-size rules of texture formats, shared by validation and backends.
public static class TextureFormatsInheritance
Methods
ByteCount(TextureFormat, int, int)
Bytes of tightly packed data for a width×height region (rows top to bottom,
no padding; compressed formats count whole 4×4 blocks). Depth formats have no CPU layout and throw.
public static int ByteCount(TextureFormat format, int width, int height)Parameters
format TextureFormat
width int
height int
Returns
IsCompressed(TextureFormat)
True for the 4×4 block-compressed formats.
public static bool IsCompressed(TextureFormat format)Parameters
format TextureFormat
Returns
IsDepth(TextureFormat)
True for D16Unorm, D24UnormS8, D32Float.
public static bool IsDepth(TextureFormat format)Parameters
format TextureFormat