[][src]Struct vulkano::framebuffer::Subpass

pub struct Subpass<L> { /* fields omitted */ }

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.

Implementations

impl<L> Subpass<L> where
    L: RenderPassDesc
[src]

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: Clone> Clone for Subpass<L>[src]

impl<L: Copy> Copy for Subpass<L>[src]

impl<L: Debug> Debug for Subpass<L>[src]

impl<L> Into<(L, u32)> for Subpass<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for Subpass<L> where
    L: RefUnwindSafe

impl<L> Send for Subpass<L> where
    L: Send

impl<L> Sync for Subpass<L> where
    L: Sync

impl<L> Unpin for Subpass<L> where
    L: Unpin

impl<L> UnwindSafe for Subpass<L> where
    L: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.