文档

Unity Engine

Unity Engine

ComputeMipmapSize

Computes the memory size in bytes for a single mipmap.
阅读时间1 分钟最后更新于 1 个月前

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