Luna::Image::DDSSubresource

Describes one subresource in one DDS image.

struct Luna::Image::DDSSubresource

Member objects

  • u32 width

    The width of this subresource in pixels.

  • u32 height

    The height of this subresource in pixels.

  • u32 depth

    The depth of this subresource in pixels.

  • usize row_pitch

    The number of bytes to advance between every two rows of data of this subresource.

  • usize slice_pitch

    The number of bytes to advance between every two slices (rows * columns) of data of this subresource.

  • usize data_offset

    The offset, in bytes, of the beginning data of this subresource from the beginning of the image pixel data.