Luna::RHI::DescriptorSetLayoutBinding

Describes one binding in one descriptor set.

struct Luna::RHI::DescriptorSetLayoutBinding

Member objects

  • u32 binding_slot

    The slot to bind the descriptor(s). If num_descs is greater than 1, slots [binding_slot, binding_slot + num_descs) will be occupied and cannot be used in another bindings. The binding slot does not need to be continuous.

  • u32 num_descs

    The number of descriptors for this binding. If this number is greater than 1, this binding will be interprated as one array of descriptors. If this is a variable-sized descriptors array, this is the maximum number of descriptors that may be bound. This value may be used for hardware validation when needed.

  • DescriptorType type

    The type of descriptors.

  • TextureViewType texture_view_type

    The type of the texture view if this binding represents one texture, otherwise TextureViewType::unspecified.

  • ShaderVisibilityFlag shader_visibility_flags

    Specify which pipeline shader can access a resource for this binding.