Add PixelFormatExtensions::ComputeBlockSize
This commit is contained in:
@@ -173,6 +173,13 @@ public:
|
||||
/// <returns>The components count.</returns>
|
||||
API_FUNCTION() static int ComputeComponentsCount(PixelFormat format);
|
||||
|
||||
/// <summary>
|
||||
/// Computes the amount of pixels per-axis stored in the a single block of the format (eg. 4 for BC-family). Returns 1 for uncompressed formats.
|
||||
/// </summary>
|
||||
/// <param name="format">The <see cref="PixelFormat"/>.</param>
|
||||
/// <returns>The block pixels count.</returns>
|
||||
API_FUNCTION() static int32 ComputeBlockSize(PixelFormat format);
|
||||
|
||||
/// <summary>
|
||||
/// Finds the equivalent sRGB format to the provided format.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user