Calculates the sub resource index for a particular mipSlice and arraySlice.
'Declaration
Public Overridable Function CalculateSubResourceIndex( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByRef As System.Integer _
) As System.Integer
public virtual System.int CalculateSubResourceIndex(
System.int ,
System.int ,
out System.int
)
Parameters
- mipSlice
- The mip slice.
- arraySlice
- The array slice.
- 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
Return Value
The resulting miplevel calulated for this instance with this mipSlice and arraySlice.