ComputeMipmapSize
Computes the memory size in bytes for a single mipmap.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
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
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
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
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
Returns
Type | Description |
|---|---|
| uint |