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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.