Trait bevy::render::render_resource::glsl::GlslStruct
[−]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
fn enumerate_fields(s: &mut String)
fn enumerate_fields(s: &mut String)
The fields contained in this struct.
Provided methods
fn glsl_definition() -> String
fn glsl_definition() -> String
Generates GLSL code that represents this struct and its fields.