Luna::Image::calc_dds_subresoruce_index

constexpr u32 calc_dds_subresoruce_index(u32 mip_slice, u32 array_slice, u32 mip_levels)

Calculates subresource index for the specified subresource in DDS image.

Parameters

  • in mip_slice

    The mip index of the subresource.

  • in array_slice

    The array index of the subresource.

  • in mip_levels

    The number of mips of the subresource.

Return value

Returns the calculated subresource index.