Struct bedrock::SubpassDescription
[−]
[src]
pub struct SubpassDescription { /* fields omitted */ }
Builder structure to construct the VkSubpassDescription
The layout
parameter of each attachment
The layout
parameter describes what layout the attachment will be in during the subpass.
How input attachments work
- Each element of the array corresponds to an input attachment unit number in the shader.
- i. e. if the shader declares an input variable
layout(input_attachment_index=X, set=Y, binding=Z)
then it uses the attachment provided ininput_attachments[X]
.
- i. e. if the shader declares an input variable
- Input attachments must also be bound to the pipeline with a descriptor set, with the input attachment descriptor written in the location (set=Y, binding=Z).
- Fragment shaders can use subpass input variables to access the contents of an input attachment at the fragment's (x, y, layer) framebuffer coordinates.
Methods
impl SubpassDescription
[src]
pub fn new() -> Self
[src]
pub fn add_input(self, index: u32, layout: ImageLayout) -> Self
[src]
pub fn add_color_output(
self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> Self
[src]
self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> Self
pub fn depth_stencil(self, index: u32, layout: ImageLayout) -> Self
[src]
pub fn add_preserve(self, index: u32) -> Self
[src]
pub fn add_preserves<Collection: IntoIterator<Item = u32>>(
self,
collection: Collection
) -> Self
[src]
self,
collection: Collection
) -> Self
pub fn add_input_borrow(&mut self, index: u32, layout: ImageLayout) -> &mut Self
[src]
pub fn add_color_output_borrow(
&mut self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> &mut Self
[src]
&mut self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> &mut Self
pub fn depth_stencil_borrow(
&mut self,
index: u32,
layout: ImageLayout
) -> &mut Self
[src]
&mut self,
index: u32,
layout: ImageLayout
) -> &mut Self
pub fn add_preserve_borrow(&mut self, index: u32) -> &mut Self
[src]
pub fn add_preserves_borrow<Collection: IntoIterator<Item = u32>>(
&mut self,
collection: Collection
) -> &mut Self
[src]
&mut self,
collection: Collection
) -> &mut Self