GPU: Added a function to retrieve the bytes per pixel of the render target formats.

This commit is contained in:
Subv 2018-04-24 21:57:10 -05:00
parent 378c881427
commit a6da2b93c1
2 changed files with 15 additions and 0 deletions

View file

@ -21,6 +21,9 @@ enum class RenderTargetFormat : u32 {
RGBA8_SRGB = 0xD6,
};
/// Returns the number of bytes per pixel of each rendertarget format.
u32 RenderTargetBytesPerPixel(RenderTargetFormat format);
class DebugContext;
/**