Struct vulkano::render_pass::RenderPassDesc [−][src]
pub struct RenderPassDesc { /* fields omitted */ }
Expand description
The description of a render pass.
Implementations
pub fn new(
attachments: Vec<AttachmentDesc>,
subpasses: Vec<SubpassDesc>,
dependencies: Vec<SubpassDependencyDesc>
) -> RenderPassDesc
pub fn new(
attachments: Vec<AttachmentDesc>,
subpasses: Vec<SubpassDesc>,
dependencies: Vec<SubpassDependencyDesc>
) -> RenderPassDesc
Creates a description of a render pass.
pub fn with_multiview(
attachments: Vec<AttachmentDesc>,
subpasses: Vec<SubpassDesc>,
dependencies: Vec<SubpassDependencyDesc>,
multiview: MultiviewDesc
) -> RenderPassDesc
pub fn with_multiview(
attachments: Vec<AttachmentDesc>,
subpasses: Vec<SubpassDesc>,
dependencies: Vec<SubpassDependencyDesc>,
multiview: MultiviewDesc
) -> RenderPassDesc
Creates a description of a render pass that uses the multiview feature.
See MultiviewDesc
for an explanation of possible configuration options.
Creates a description of an empty render pass, with one subpass and no attachments.
pub fn convert_clear_values<I>(
&self,
values: I
) -> impl Iterator<Item = ClearValue> where
I: IntoIterator<Item = ClearValue>,
pub fn convert_clear_values<I>(
&self,
values: I
) -> impl Iterator<Item = ClearValue> where
I: IntoIterator<Item = ClearValue>,
Decodes I
into a list of clear values where each element corresponds
to an attachment. The size of the returned iterator must be the same as the number of
attachments.
When the user enters a render pass, they need to pass a list of clear values to apply to the attachments of the framebuffer. This method is then responsible for checking the correctness of these values and turning them into a list that can be processed by vulkano.
The format of the clear value must match the format of the attachment. Attachments
that are not loaded with LoadOp::Clear
must have an entry equal to ClearValue::None
.
pub fn is_compatible_with_shader(
&self,
subpass: u32,
shader_interface: &ShaderInterface
) -> bool
pub fn is_compatible_with_shader(
&self,
subpass: u32,
shader_interface: &ShaderInterface
) -> bool
Returns true
if the subpass of this description is compatible with the shader’s fragment
output definition.
Returns true
if this description is compatible with the other description,
as defined in the Render Pass Compatibility
section of the Vulkan specs.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RenderPassDesc
impl Send for RenderPassDesc
impl Sync for RenderPassDesc
impl Unpin for RenderPassDesc
impl UnwindSafe for RenderPassDesc
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.