GPU: Added a function to retrieve the bytes per pixel of the render target formats.
This commit is contained in:
parent
378c881427
commit
a6da2b93c1
2 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue