ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / Resource Class / SubResourceIndexFromMipLevel Method
A zero-based index for the mipmap level to address; 0 indicates the first, most detailed mipmap level.
The zero-based index for the array level to address; always use 0 for volume (3D) textures.
Number of mipmap levels in the resource.

In This Topic
    SubResourceIndexFromMipLevel Method
    In This Topic
    Calculates the sub resource index from a miplevel.
    Syntax
    'Declaration
     
    Public Shared Function SubResourceIndexFromMipLevel( _
       ByVal mipSlice As Integer, _
       ByVal arraySlice As Integer, _
       ByVal mipLevel As Integer _
    ) As Integer
    public static int SubResourceIndexFromMipLevel( 
       int mipSlice,
       int arraySlice,
       int mipLevel
    )

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