This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

GraphicsFormatUtility.ComputeMipmapSize

Declaration

public static uint ComputeMipmapSize(int width, int height, Experimental.Rendering.GraphicsFormat format);

Declaration

public static uint ComputeMipmapSize(int width, int height, int depth, Experimental.Rendering.GraphicsFormat format);

Declaration

public static uint ComputeMipmapSize(int width, int height, TextureFormat format);

Declaration

public static uint ComputeMipmapSize(int width, int height, int depth, TextureFormat format);

Description

Computes the memory size in bytes for a single mipmap.