Struct vulkano::framebuffer::EmptySinglePassRenderPass
[−]
[src]
pub struct EmptySinglePassRenderPass { // some fields omitted }
Implementation of RenderPass
with no attachment at all and a single pass.
When you use a EmptySinglePassRenderPass
, the list of attachments and clear values must
be ()
.
Methods
impl EmptySinglePassRenderPass
[src]
fn raw(device: &Arc<Device>) -> Result<EmptySinglePassRenderPass, RenderPassCreationError>
See the docs of new().
fn new(device: &Arc<Device>) -> Arc<EmptySinglePassRenderPass>
Trait Implementations
impl RenderPass for EmptySinglePassRenderPass
[src]
fn inner(&self) -> &UnsafeRenderPass
Returns the underlying UnsafeRenderPass
. Used by vulkano's internals.
impl RenderPassDesc for EmptySinglePassRenderPass
[src]
type AttachmentsIter = EmptyIter<LayoutAttachmentDescription>
Iterator returned by the attachments
method.
type PassesIter = OptionIntoIter<LayoutPassDescription>
Iterator returned by the passes
method.
type DependenciesIter = EmptyIter<LayoutPassDependencyDescription>
Iterator returned by the dependencies
method.
fn attachments(&self) -> Self::AttachmentsIter
Returns an iterator that describes the list of attachments of this render pass.
fn passes(&self) -> Self::PassesIter
Returns an iterator that describes the list of passes of this render pass.
fn dependencies(&self) -> Self::DependenciesIter
Returns an iterator that describes the list of inter-pass dependencies of this render pass.
fn num_subpasses(&self) -> u32
Returns the number of subpasses within the render pass.
fn num_color_attachments(&self, subpass: u32) -> Option<u32>
Returns the number of color attachments in a subpass. Returns None
if out of range.
fn num_samples(&self, _: u32) -> Option<u32>
Returns the number of samples of the attachments of a subpass. Returns None
if out of range or if the subpass has no attachment. TODO: return an enum instead? Read more
fn has_depth_stencil_attachment(&self, subpass: u32) -> Option<(bool, bool)>
Returns a tuple whose first element is true
if there's a depth attachment, and whose second element is true
if there's a stencil attachment. Returns None
if out of range. Read more
fn has_depth(&self, subpass: u32) -> Option<bool>
Returns true if a subpass has a depth attachment or a depth-stencil attachment.
fn has_writable_depth(&self, subpass: u32) -> Option<bool>
Returns true if a subpass has a depth attachment or a depth-stencil attachment whose layout is not DepthStencilReadOnlyOptimal
. Read more
fn has_stencil(&self, subpass: u32) -> Option<bool>
Returns true if a subpass has a stencil attachment or a depth-stencil attachment.
fn has_writable_stencil(&self, subpass: u32) -> Option<bool>
Returns true if a subpass has a stencil attachment or a depth-stencil attachment whose layout is not DepthStencilReadOnlyOptimal
. Read more
impl RenderPassAttachmentsList<()> for EmptySinglePassRenderPass
[src]
type AttachmentsIter = EmptyIter<(Arc<ImageView>, Arc<Image>, ImageLayout, ImageLayout)>
A decoded A
.
fn convert_attachments_list(&self, _: ()) -> Result<Self::AttachmentsIter, FramebufferCreationError>
Decodes a A
into a list of attachments. Read more
impl RenderPassClearValues<()> for EmptySinglePassRenderPass
[src]
type ClearValuesIter = EmptyIter<ClearValue>
Iterator that produces one clear value per attachment.
fn convert_clear_values(&self, _: ()) -> Self::ClearValuesIter
Decodes a C
into a list of clear values where each element corresponds to an attachment. The size of the returned iterator must be the same as the number of attachments. Read more