[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.Resource.CalculateSubResourceIndex

CalculateSubResourceIndex Method

CalculateSubResourceIndex(int, int, out int)

Calculates the sub resource index for a particular mipSlice and arraySlice.

Declaration
public virtual int CalculateSubResourceIndex(int mipSlice, int arraySlice, out int mipSize)
Parameters
Type Name Description
int mipSlice

The mip slice.

int arraySlice

The array slice.

int 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

Returns
Type Description
int

The resulting miplevel calulated for this instance with this mipSlice and arraySlice.