[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.Resource.SubResourceIndexFromMipLevel

SubResourceIndexFromMipLevel Method

SubResourceIndexFromMipLevel(int, int, int)

Calculates the sub resource index from a miplevel.

Declaration
public static int SubResourceIndexFromMipLevel(int mipSlice, int arraySlice, int mipLevel)
Parameters
Type Name Description
int mipSlice

A zero-based index for the mipmap level to address; 0 indicates the first, most detailed mipmap level.

int arraySlice

The zero-based index for the array level to address; always use 0 for volume (3D) textures.

int mipLevel

Number of mipmap levels in the resource.

Returns
Type Description
int

The index which equals MipSlice + (ArraySlice * MipLevels).