Struct vulkano::framebuffer::UnsafeRenderPass [] [src]

pub struct UnsafeRenderPass {
    // some fields omitted
}

Defines the layout of multiple subpasses.

Methods

impl UnsafeRenderPass
[src]

unsafe fn new<Ia, Ip, Id>(device: &Arc<Device>, attachments: Ia, passes: Ip, pass_dependencies: Id) -> Result<UnsafeRenderPassRenderPassCreationError> where Ia: ExactSizeIterator<Item=LayoutAttachmentDescription> + Clone, Ip: ExactSizeIterator<Item=LayoutPassDescription> + Clone, Id: ExactSizeIterator<Item=LayoutPassDependencyDescription>

Builds a new renderpass.

Safety

This function doesn't check whether all the restrictions in the attachments, passes and passes dependencies were enforced.

See the documentation of the structs of this module for more info about these restrictions.

Panic

  • Can panic if it detects some violations in the restrictions. Only unexpensive checks are performed. debug_assert! is used, so some restrictions are only checked in debug mode.

fn granularity(&self) -> [u32; 2]

Returns the granularity of this render pass.

If the render area of a render pass in a command buffer is a multiple of this granularity, then the performances will be optimal. Performances are always optimal for render areas that cover the whole framebuffer.

fn device(&self) -> &Arc<Device>

Returns the device that was used to create this render pass.

Trait Implementations

impl VulkanObject for UnsafeRenderPass
[src]

type Object = RenderPass

The type of the object.

fn internal_object(&self) -> RenderPass

Returns a reference to the object.

impl RenderPass for UnsafeRenderPass
[src]

fn inner(&self) -> &UnsafeRenderPass

Returns the underlying UnsafeRenderPass. Used by vulkano's internals.

impl Drop for UnsafeRenderPass
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more