Method GetBytePerPixel
GetBytePerPixel(RenderTextureFormat)
Returns the byte cost per pixel used by the memory estimate for a render texture format.
public static int GetBytePerPixel(RenderTextureFormat format)
Parameters
formatRenderTextureFormatThe render texture format to estimate.
Returns
- int
The estimated bytes per pixel for
format, or0when the format is not mapped by this utility.