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]
impl Subpass
[src]pub fn from(render_pass: Arc<RenderPass>, id: u32) -> Option<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]
pub fn num_color_attachments(&self) -> u32
[src]Returns the number of color attachments in this subpass.
pub fn has_depth(&self) -> bool
[src]
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]
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]
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]
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]
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]
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]
pub fn render_pass(&self) -> &Arc<RenderPass>
[src]Returns the render pass of this subpass.
pub fn is_compatible_with<S>(&self, shader_interface: &S) -> bool where
S: ShaderInterfaceDef,
[src]
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
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut 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]
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]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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