kmcallister / glassful

Rust-like syntax for OpenGL Shading Language
Apache License 2.0
171 stars 14 forks source link

Express data flow better #11

Open kmcallister opened 9 years ago

kmcallister commented 9 years ago

e.g.

const UNIFORMS: Uniforms;

fn vertex(v: Attributes) -> (vec4, Varyings) { ... }
fn fragment(v: Varyings) -> vec4 { ... }

where those struct definitions are lifted up from glium (c.f. #2)

kmcallister commented 9 years ago

Discussed on Reddit.