Luna::RHI::TextureDesc

Describes one texture resource.

struct Luna::RHI::TextureDesc

Member objects

  • TextureType type

    The type of the texture.

  • Format format

    The pixel format of the texture.

  • u32 width

    The width of the texture.

  • u32 height

    The height of the texture. This should always be 1 for 1D textures.

  • u32 depth

    The depth of the texture. This should always be 1 for 1D and 2D textures.

  • u32 array_size

    The texture array size, specify 1 if this is not a texture array. This should always be 1 for 3D textures. This should be times of 6 of usages contains TextureUsageFlag::cube.

  • u32 mip_levels

    The number of mip-map slices. Specify 0 tells the system to create full mip-map chain for the resource.

  • u32 sample_count

    The sample count per pixel for multi-sample texture resource, specify 1 if the multi-sample is disabled for this texture. This should always be 1 for 1D and 3D textures.

  • TextureUsageFlag usages

    A combination of TextureUsageFlag flags to indicate all possible usages of this texture.

  • ResourceFlag flags

    The resource flags.