pub struct Init<'a> {
pub vbuf: <VertexBuffer<Vertex> as DataLink<'a>>::Init,
pub inst_buf: <InstanceBuffer<Instance> as DataLink<'a>>::Init,
pub cb_globals: <ConstantBuffer<Globals> as DataLink<'a>>::Init,
pub target: <DepthTarget<ShadowFormat> as DataLink<'a>>::Init,
}Fields§
§vbuf: <VertexBuffer<Vertex> as DataLink<'a>>::Init§inst_buf: <InstanceBuffer<Instance> as DataLink<'a>>::Init§cb_globals: <ConstantBuffer<Globals> as DataLink<'a>>::Init§target: <DepthTarget<ShadowFormat> as DataLink<'a>>::InitTrait Implementations§
Source§impl<'a> PipelineInit for Init<'a>
impl<'a> PipelineInit for Init<'a>
Source§fn link_to<'s>(
&self,
desc: &mut Descriptor,
info: &'s ProgramInfo,
) -> Result<Self::Meta, InitError<&'s str>>
fn link_to<'s>( &self, desc: &mut Descriptor, info: &'s ProgramInfo, ) -> Result<Self::Meta, InitError<&'s str>>
Attempt to map a PSO descriptor to a give shader program,
represented by
ProgramInfo. Returns an instance of the
“meta” struct upon successful mapping.impl<'a> StructuralPartialEq for Init<'a>
Auto Trait Implementations§
impl<'a> Freeze for Init<'a>
impl<'a> RefUnwindSafe for Init<'a>
impl<'a> Send for Init<'a>
impl<'a> Sync for Init<'a>
impl<'a> Unpin for Init<'a>
impl<'a> UnwindSafe for Init<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more