Calculates the sub resource index from a miplevel.
'Declaration
Public Shared Function SubResourceIndexFromMipLevel( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Integer _
) As System.Integer
public static System.int SubResourceIndexFromMipLevel(
System.int ,
System.int ,
System.int
)
Parameters
- mipSlice
- A zero-based index for the mipmap level to address; 0 indicates the first, most detailed mipmap level.
- arraySlice
- The zero-based index for the array level to address; always use 0 for volume (3D) textures.
- mipLevel
- Number of mipmap levels in the resource.
Return Value
The index which equals MipSlice + (ArraySlice * MipLevels).