Class FormatSizeHelpers
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
public static class FormatSizeHelpers
- Inheritance
-
FormatSizeHelpers
- Inherited Members
Methods
GetSizeInBytes(PixelFormat)
Given a pixel format, returns the number of bytes required to store a single pixel. Compressed formats may not be used with this method as the number of bytes per pixel is variable.
public static uint GetSizeInBytes(PixelFormat format)
Parameters
formatPixelFormatAn uncompressed pixel format
Returns
- uint
The number of bytes required to store a single pixel in the given format
GetSizeInBytes(VertexElementFormat)
Given a vertex element format, returns the number of bytes required to store an element in that format.
public static uint GetSizeInBytes(VertexElementFormat format)
Parameters
formatVertexElementFormatA vertex element format
Returns
- uint
The number of bytes required to store an element in the given format