[][src]Struct geyser::Pipeline

pub struct Pipeline<C> where
    Arc<ComputePipeline<C>>: Clone
{ /* fields omitted */ }

Contains an Arc<ComputePipeline>. This is used for sending jobs to the GPU.

Methods

impl<C: 'static> Pipeline<C>[src]

pub fn new(
    pipeline: Arc<ComputePipeline<C>>,
    device: Arc<Device>,
    queue: Arc<Queue>
) -> Self
[src]

Creates a new Pipeline.

pub fn pipeline(&self) -> Arc<ComputePipeline<C>>[src]

Returns the Arc<ComputePipeline> inside the Pipeline.

pub fn dispatch<L: 'static, R: 'static, Pc>(
    &self,
    size: [u32; 3],
    set: Arc<PersistentDescriptorSet<L, R>>,
    push_constants: Pc
) where
    L: Send + Sync,
    R: Send + Sync,
    C: Send + Sync,
    ComputePipeline<C>: ComputePipelineAbstract,
    PersistentDescriptorSet<L, R>: DescriptorSet
[src]

Creates an AutoCommandBuffer, calls AutoCommandBuffer::execute on it and waits for it to finish.

This blocks until the calculation is finished.

Trait Implementations

impl<C: Clone> Clone for Pipeline<C> where
    Arc<ComputePipeline<C>>: Clone
[src]

Auto Trait Implementations

impl<C> Send for Pipeline<C> where
    C: Send + Sync

impl<C> Sync for Pipeline<C> where
    C: Send + Sync

impl<C> Unpin for Pipeline<C>

impl<C> UnwindSafe for Pipeline<C> where
    C: RefUnwindSafe

impl<C> RefUnwindSafe for Pipeline<C> where
    C: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Content for T[src]