ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / Resource Class / CalculateSubResourceIndex Method
The mip slice.
The array slice.
The size of slice. This values is resource dependent. Texture1D -> mipSize of the Width. Texture2D -> mipSize of the Height. Texture3D -> mipsize of the Depth

In This Topic
    CalculateSubResourceIndex Method (Resource)
    In This Topic
    Calculates the sub resource index for a particular mipSlice and arraySlice.
    Syntax
    'Declaration
     
    Public Overridable Function CalculateSubResourceIndex( _
       ByVal mipSlice As Integer, _
       ByVal arraySlice As Integer, _
       ByRef mipSize As Integer _
    ) As Integer
    public virtual int CalculateSubResourceIndex( 
       int mipSlice,
       int arraySlice,
       out int mipSize
    )

    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.
    See Also