Class D3D11Utils
Utility methods.
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public static class D3D11Utils
Methods
| Edit this page View SourceCalcSubresource(uint, uint, uint)
Calculates a subresource index for a texture.
Declaration
public static uint CalcSubresource(uint mipSlice, uint arraySlice, uint mipLevels)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | mipSlice | A zero-based index for the mipmap level to address; 0 indicates the first, most detailed mipmap level |
| uint | arraySlice | The zero-based index for the array level to address; always use 0 for volume (3D) textures. |
| uint | mipLevels | Number of mipmap levels in the resource. |
Returns
| Type | Description |
|---|---|
| uint | The index which equals |