logo
pub unsafe trait GlslStruct: Glsl {
    fn enumerate_fields(s: &mut String);

    fn glsl_definition() -> String { ... }
}
Expand description

Trait for types that can be represented as a struct in GLSL.

This trait should not generally be implemented by hand, but can be derived.

Required methods

The fields contained in this struct.

Provided methods

Generates GLSL code that represents this struct and its fields.

Implementors