Trait ContextOffset

Source
pub trait ContextOffset<H, C, D = ()>
where H: BindUniform<C, f32, D> + BindUniform<C, u32, D> + BindUniform<C, i32, D> + for<'a> BindUniform<C, &'a [f32; 4], D> + for<'a> BindUniform<C, &'a [f32; 16], D>,
{ // Required methods fn offset(&self) -> MemberOffset; fn context(&self) -> C; }
Expand description

A uniform member offset with context that needs to be resolved.

Required Methods§

Source

fn offset(&self) -> MemberOffset

Gets the MemberOffset part of the offset.

Source

fn context(&self) -> C

Gets the context part of the offset.

Implementations on Foreign Types§

Source§

impl<D, H> ContextOffset<H, Option<()>, D> for MemberOffset
where H: BindUniform<Option<()>, f32, D> + BindUniform<Option<()>, u32, D> + BindUniform<Option<()>, i32, D> + for<'a> BindUniform<Option<()>, &'a [f32; 4], D> + for<'a> BindUniform<Option<()>, &'a [f32; 16], D>,

Implementors§