Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ComputeMipmapSize

Computes the memory size in bytes for a single mipmap.
Read time 1 minuteLast updated 4 days ago

Definition

ComputeMipmapSize(int, int, GraphicsFormat)

Computes the memory size in bytes for a single mipmap.
public static uint ComputeMipmapSize(int width, int height, GraphicsFormat format)

Parameters

width


height


Returns

Type

Description

uint

ComputeMipmapSize(int, int, TextureFormat)

Computes the memory size in bytes for a single mipmap.
public static uint ComputeMipmapSize(int width, int height, TextureFormat format)

Parameters

width


height


Returns

Type

Description

uint

ComputeMipmapSize(int, int, int, GraphicsFormat)

Computes the memory size in bytes for a single mipmap.
public static uint ComputeMipmapSize(int width, int height, int depth, GraphicsFormat format)

Parameters

width


height


depth


Returns

Type

Description

uint

ComputeMipmapSize(int, int, int, TextureFormat)

Computes the memory size in bytes for a single mipmap.
public static uint ComputeMipmapSize(int width, int height, int depth, TextureFormat format)

Parameters

width


height


depth


Returns

Type

Description

uint