Trait truck_rendimpl::ToInstance [−][src]
pub trait ToInstance<I: Instance> {
type State;
fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &I::Shaders,
desc: &Self::State
) -> I;
}Expand description
The trait for generating Instance from Self.
Associated Types
Required methods
fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &I::Shaders,
desc: &Self::State
) -> I
fn to_instance(
&self,
handler: &DeviceHandler,
shaders: &I::Shaders,
desc: &Self::State
) -> I
Creates Instance from self.