pub struct PipelineState<R: Resources, M>(/* private fields */);
Expand description
A strongly typed Pipleline State Object. See the module documentation for more information.
Implementations§
Source§impl<R: Resources, M> PipelineState<R, M>
impl<R: Resources, M> PipelineState<R, M>
Sourcepub fn new(
raw: RawPipelineState<R>,
prim: Primitive,
meta: M,
) -> PipelineState<R, M>
pub fn new( raw: RawPipelineState<R>, prim: Primitive, meta: M, ) -> PipelineState<R, M>
Create a new PSO from a raw handle and the “meta” instance.
Sourcepub fn get_handle(&self) -> &RawPipelineState<R>
pub fn get_handle(&self) -> &RawPipelineState<R>
Get a raw handle reference.
Trait Implementations§
Source§impl<R: Clone + Resources, M: Clone> Clone for PipelineState<R, M>
impl<R: Clone + Resources, M: Clone> Clone for PipelineState<R, M>
Source§fn clone(&self) -> PipelineState<R, M>
fn clone(&self) -> PipelineState<R, M>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<R: Eq + Resources, M: Eq> Eq for PipelineState<R, M>
impl<R: Resources, M> StructuralPartialEq for PipelineState<R, M>
Auto Trait Implementations§
impl<R, M> Freeze for PipelineState<R, M>where
M: Freeze,
impl<R, M> RefUnwindSafe for PipelineState<R, M>where
M: RefUnwindSafe,
<R as Resources>::PipelineStateObject: RefUnwindSafe,
<R as Resources>::Program: RefUnwindSafe,
impl<R, M> Send for PipelineState<R, M>where
M: Send,
impl<R, M> Sync for PipelineState<R, M>where
M: Sync,
impl<R, M> Unpin for PipelineState<R, M>where
M: Unpin,
impl<R, M> UnwindSafe for PipelineState<R, M>where
M: UnwindSafe,
<R as Resources>::PipelineStateObject: RefUnwindSafe,
<R as Resources>::Program: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more