Trait truck_rendimpl::ToInstance
source · 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
.
Required Associated Types§
Required Methods§
sourcefn 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
.