Struct gfx::pso::buffer::Global [] [src]

pub struct Global<T: ToUniform>(_, _);

Global (uniform) constant component. Describes a free-standing value passed into the shader, which is not enclosed into any constant buffer. Deprecated in DX10 and higher. - init: &str = name of the constant - data: T = value

Trait Implementations

impl<'a, T: ToUniform> DataLink<'a> for Global<T>

type Init = &'a str

fn new() -> Self

fn is_active(&self) -> bool

impl<R: Resources, T: ToUniform> DataBind<R> for Global<T>

type Data = T

fn bind_to(&self, out: &mut RawDataSet<R>, data: &Self::Data, _: &mut Manager<R>)