Struct vulkano::render_pass::MultiviewDesc [−][src]
pub struct MultiviewDesc {
pub view_masks: Vec<u32>,
pub correlation_masks: Vec<u32>,
pub view_offsets: Vec<i32>,
}
Expand description
Describes the multiview
configuration for the render pass which is used to draw
to multiple layers of a framebuffer inside of a single render pass.
Fields
view_masks: Vec<u32>
The view masks indicate which layers of the framebuffer should be rendered for each subpass.
Values are bit masks which means that for example 0b11
will draw to the first two layers
and 0b101
will draw to the first and third layer.
correlation_masks: Vec<u32>
The correlation masks indicate sets of views that may be more efficient to render
concurrently (usually because they show the same geometry from almost the same perspective).
Values are bit masks which means that for example 0b11
means the first two layers are
highly correlated and 0b101
means the first and third layer are highly correlated.
view_offsets: Vec<i32>
The view offsets contain additional information for each subpass dependency that indicate which views in the source subpass the views of the destination subpass depend on.
Implementations
Returns the index of the layer with the biggest index that is referred to by a mask in the multiview description.
Returns the amount of layers that are used in the multiview description.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MultiviewDesc
impl Send for MultiviewDesc
impl Sync for MultiviewDesc
impl Unpin for MultiviewDesc
impl UnwindSafe for MultiviewDesc
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.