[−][src]Struct bedrock::SubpassDescription
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
Auto Trait Implementations
impl RefUnwindSafe for SubpassDescription
impl Send for SubpassDescription
impl Sync for SubpassDescription
impl Unpin for SubpassDescription
impl UnwindSafe for SubpassDescription
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,