#glsl #gl #source #generate #macro

macro glissile

A macro for generating GLSL source code

3 releases

0.0.3 Jan 28, 2019
0.0.2 Nov 2, 2018
0.0.1 Nov 2, 2018

#201 in Rendering

MIT/Apache

6KB

Glissile

Glissile will be a macro for generating GLSL source code. Currently it just re-inserts its contents as a r#-delimited string.

Example:

extern crate glissile;
use glissile::glsl;

let frag_code = glsl! {
    precision mediump float;
    varying vec2 texCoord;

    void main() {
        gl_FragColor = vec4(texCoord, 0., 1.);
    }
};

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps