[]
Calculates the sub resource index for a particular mipSlice and arraySlice.
public virtual int CalculateSubResourceIndex(int mipSlice, int arraySlice, out int mipSize)
Type | Name | Description |
---|---|---|
int | mipSlice | The mip slice. |
int | arraySlice | The array slice. |
int | mipSize | The size of slice. This values is resource dependent. Texture1D -> mipSize of the Width. Texture2D -> mipSize of the Height. Texture3D -> mipsize of the Depth |
Type | Description |
---|---|
int | The resulting miplevel calulated for this instance with this mipSlice and arraySlice. |