ComputeMipChainSize
Computes the memory size in bytes for a chain of mipmaps.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
ComputeMipChainSize(int, int, GraphicsFormat, int)
Computes the memory size in bytes for a chain of mipmaps.
public static uint ComputeMipChainSize(int width, int height, GraphicsFormat format, int mipCount = -1)
Parameters
Total number of mip levels to calculate. A value of -1 means Unity calculates the entire mip chain.
Returns
Type | Description |
|---|---|
| uint |
ComputeMipChainSize(int, int, TextureFormat, int)
Computes the memory size in bytes for a chain of mipmaps.
public static uint ComputeMipChainSize(int width, int height, TextureFormat format, int mipCount = -1)
Parameters
Total number of mip levels to calculate. A value of -1 means Unity calculates the entire mip chain.
Returns
Type | Description |
|---|---|
| uint |
ComputeMipChainSize(int, int, int, GraphicsFormat, int)
Computes the memory size in bytes for a chain of mipmaps.
public static uint ComputeMipChainSize(int width, int height, int depth, GraphicsFormat format, int mipCount = -1)
Parameters
Total number of mip levels to calculate. A value of -1 means Unity calculates the entire mip chain.
Returns
Type | Description |
|---|---|
| uint |
ComputeMipChainSize(int, int, int, TextureFormat, int)
Computes the memory size in bytes for a chain of mipmaps.
public static uint ComputeMipChainSize(int width, int height, int depth, TextureFormat format, int mipCount = -1)
Parameters
Total number of mip levels to calculate. A value of -1 means Unity calculates the entire mip chain.
Returns
Type | Description |
|---|---|
| uint |