Struct vulkano::render_pass::Subpass[][src]

pub struct Subpass { /* fields omitted */ }

Represents a subpass within a RenderPass 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 Subpass[src]

pub fn from(render_pass: Arc<RenderPass>, id: u32) -> Option<Subpass>[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.

pub fn render_pass(&self) -> &Arc<RenderPass>[src]

Returns the render pass of this subpass.

pub fn index(&self) -> u32[src]

Returns the index of this subpass within the renderpass.

pub fn is_compatible_with<S>(&self, shader_interface: &S) -> bool where
    S: ShaderInterfaceDef
[src]

Returns true if this subpass is compatible with the fragment output definition.

Trait Implementations

impl Clone for Subpass[src]

fn clone(&self) -> Subpass[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Subpass[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl RefUnwindSafe for Subpass

impl Send for Subpass

impl Sync for Subpass

impl Unpin for Subpass

impl UnwindSafe for Subpass

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.