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[src]

The associated init type for PSO component.

Loading content...

Required methods

fn get_rate(init: &Self::Init) -> InstanceRate[src]

Get an actual instance rate value from the init.

Loading content...

Implementors

impl ToInstanceRate for Instanced[src]

type Init = ()

impl ToInstanceRate for NonInstanced[src]

type Init = ()

impl ToInstanceRate for InstanceRate[src]

type Init = InstanceRate

Loading content...