Struct gfx::pso::bundle::Bundle[][src]

pub struct Bundle<R: Resources, Data: PipelineData<R>> {
    pub slice: Slice<R>,
    pub pso: PipelineState<R, Data::Meta>,
    pub data: Data,
}

Slice-PSO bundle.

Fields

slice: Slice<R>

Slice

pso: PipelineState<R, Data::Meta>

Pipeline state

data: Data

Pipeline data

Implementations

impl<R: Resources, Data: PipelineData<R>> Bundle<R, Data>[src]

pub fn new(
    slice: Slice<R>,
    pso: PipelineState<R, Data::Meta>,
    data: Data
) -> Self
[src]

Create new Bundle

pub fn encode<C>(&self, encoder: &mut Encoder<R, C>) where
    C: CommandBuffer<R>, 
[src]

Draw bundle using encoder.

Auto Trait Implementations

impl<R, Data> !RefUnwindSafe for Bundle<R, Data>

impl<R, Data> Send for Bundle<R, Data> where
    Data: Send,
    <Data as PipelineData<R>>::Meta: Send

impl<R, Data> Sync for Bundle<R, Data> where
    Data: Sync,
    <Data as PipelineData<R>>::Meta: Sync

impl<R, Data> Unpin for Bundle<R, Data> where
    Data: Unpin,
    <Data as PipelineData<R>>::Meta: Unpin

impl<R, Data> !UnwindSafe for Bundle<R, Data>

Blanket Implementations

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

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

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

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

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

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.