pub trait PipelineInit {
type Meta;
// Required method
fn link_to<'s>(
&self,
_: &mut Descriptor,
_: &'s ProgramInfo,
) -> Result<Self::Meta, InitError<&'s str>>;
}Expand description
A service trait implemented by the “init” structure of PSO.
Required Associated Types§
Required Methods§
Sourcefn link_to<'s>(
&self,
_: &mut Descriptor,
_: &'s ProgramInfo,
) -> Result<Self::Meta, InitError<&'s str>>
fn link_to<'s>( &self, _: &mut Descriptor, _: &'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.