Table of Contents

Method GetBytePerPixel

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

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

format RenderTextureFormat

The render texture format to estimate.

Returns

int

The estimated bytes per pixel for format, or 0 when the format is not mapped by this utility.