Trait librashader_reflect::reflect::semantics::UniformMeta

source ·
pub trait UniformMeta {
    // Required methods
    fn offset(&self) -> MemberOffset;
    fn id(&self) -> &str;
}
Expand description

Metadata about a uniform variable.

Required Methods§

source

fn offset(&self) -> MemberOffset

The offset of this uniform.

source

fn id(&self) -> &str

The name of this uniform in the shader.

Implementors§