[−][src]Struct vulkano::framebuffer::Subpass
Represents a subpass within a RenderPassAbstract
object.
This struct doesn't correspond to anything in Vulkan. It is simply an equivalent to a
tuple of a render pass and subpass index. Contrary to a tuple, however, the existence of the
subpass is checked when the object is created. When you have a Subpass
you are guaranteed
that the given subpass does exist.
Methods
impl<L> Subpass<L> where
L: RenderPassDesc,
[src]
L: RenderPassDesc,
pub fn from(render_pass: L, id: u32) -> Option<Subpass<L>>
[src]
Returns a handle that represents a subpass of a render pass.
pub fn num_color_attachments(&self) -> u32
[src]
Returns the number of color attachments in this subpass.
pub fn has_depth(&self) -> bool
[src]
Returns true if the subpass has a depth attachment or a depth-stencil attachment.
pub fn has_writable_depth(&self) -> bool
[src]
Returns true if the subpass has a depth attachment or a depth-stencil attachment whose
layout is not DepthStencilReadOnlyOptimal
.
pub fn has_stencil(&self) -> bool
[src]
Returns true if the subpass has a stencil attachment or a depth-stencil attachment.
pub fn has_writable_stencil(&self) -> bool
[src]
Returns true if the subpass has a stencil attachment or a depth-stencil attachment whose
layout is not DepthStencilReadOnlyOptimal
.
pub fn has_color_or_depth_stencil_attachment(&self) -> bool
[src]
Returns true if the subpass has any color or depth/stencil attachment.
pub fn num_samples(&self) -> Option<u32>
[src]
Returns the number of samples in the color and/or depth/stencil attachments. Returns None
if there is no such attachment in this subpass.
impl<L> Subpass<L>
[src]
pub fn render_pass(&self) -> &L
[src]
Returns the render pass of this subpass.
pub fn index(&self) -> u32
[src]
Returns the index of this subpass within the renderpass.
Trait Implementations
impl<L> Into<(L, u32)> for Subpass<L>
[src]
impl<L: Clone> Clone for Subpass<L>
[src]
impl<L: Copy> Copy for Subpass<L>
[src]
impl<L: Debug> Debug for Subpass<L>
[src]
Auto Trait Implementations
impl<L> Send for Subpass<L> where
L: Send,
L: Send,
impl<L> Unpin for Subpass<L> where
L: Unpin,
L: Unpin,
impl<L> Sync for Subpass<L> where
L: Sync,
L: Sync,
impl<L> UnwindSafe for Subpass<L> where
L: UnwindSafe,
L: UnwindSafe,
impl<L> RefUnwindSafe for Subpass<L> where
L: RefUnwindSafe,
L: RefUnwindSafe,
Blanket Implementations
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,