Luna::RHI::BufferViewDesc

Describes one buffer view in descriptor set.

struct Luna::RHI::BufferViewDesc

Member objects

  • u64 first_element

    If this is a uniform buffer, specify the offset, in bytes, of the data to be viewed. If this is a structured buffer, specify the index of the first element to be accessed by the view.

  • IBuffer* buffer

    The buffer to set.

  • u32 element_count

    The number of elements in this view. This must be set to 1 if this is a uniform buffer view.

  • u32 element_size

    If this is a uniform buffer, specify the size, in bytes, of the uniform buffer. If this is a structured buffer, specify the size, in bytes, of each element in the buffer structure.