Trait gfx::pso::buffer::ToInstanceRate
[−]
[src]
pub trait ToInstanceRate { type Init; fn get_rate(init: &Self::Init) -> InstanceRate; }
Helper trait for VertexBufferCommon
to support variable instance rate.
Associated Types
type Init
The associated init type for PSO component.
Required Methods
fn get_rate(init: &Self::Init) -> InstanceRate
Get an actual instance rate value from the init.
Implementors
impl ToInstanceRate for InstanceRate type Init = InstanceRate;
impl ToInstanceRate for Instanced type Init = ();
impl ToInstanceRate for NonInstanced type Init = ();