Luna::RHI::TextureViewDesc

Describes one texture view in descriptor set.

struct Luna::RHI::TextureViewDesc

Member objects

  • ITexture* texture

    The texture to set.

  • TextureViewType type

    The texture view type. If this is TextureViewType::unspecified, the system uses the texture's native type as texture view type.

  • Format format

    The texture view format. If this is Format::unknown, the system uses the texture's native format as texture view format.

  • u32 mip_slice

    The index of the first mip included in this view.

  • u32 mip_size

    The number of mips included in this view. Mips in range [mip_slice, mip_slice + mip_size) will be included in this view.

  • u32 array_slice

    The index of the first texture array element included in this view.

  • u32 array_size

    The number of array elements included in this view. Array elements in range [array_slice, array_slice + array_size) will be included in this view.