pub struct Bundle<R: Resources, Data: PipelineData<R>> {
pub slice: Slice<R>,
pub pso: PipelineState<R, Data::Meta>,
pub data: Data,
}
Expand description
Slice-PSO bundle.
Fields§
§slice: Slice<R>
Slice
pso: PipelineState<R, Data::Meta>
Pipeline state
data: Data
Pipeline data
Implementations§
source§impl<R: Resources, Data: PipelineData<R>> Bundle<R, Data>
impl<R: Resources, Data: PipelineData<R>> Bundle<R, Data>
sourcepub fn new(slice: Slice<R>, pso: PipelineState<R, Data::Meta>, data: Data) -> Self
pub fn new(slice: Slice<R>, pso: PipelineState<R, Data::Meta>, data: Data) -> Self
Create new Bundle
sourcepub fn encode<C>(&self, encoder: &mut Encoder<R, C>)where
C: CommandBuffer<R>,
pub fn encode<C>(&self, encoder: &mut Encoder<R, C>)where C: CommandBuffer<R>,
Draw bundle using encoder.