pub enum ProgramCreationInput<'a> {
SourceCode {
vertex_shader: &'a str,
tessellation_control_shader: Option<&'a str>,
tessellation_evaluation_shader: Option<&'a str>,
geometry_shader: Option<&'a str>,
fragment_shader: &'a str,
transform_feedback_varyings: Option<(Vec<String>, TransformFeedbackMode)>,
uses_point_size: bool,
},
Binary {
data: Binary,
uses_point_size: bool,
},
}Input when creating a program.
Variants
SourceCode | Fields
vertex_shader | Source code of the vertex shader.
| tessellation_control_shader | Source code of the optional tessellation control shader.
| tessellation_evaluation_shader | Source code of the optional tessellation evaluation shader.
| geometry_shader | Source code of the optional geometry shader.
| fragment_shader | Source code of the fragment shader.
| transform_feedback_varyings | The list of variables and mode to use for transform feedback.
The information specified here will be passed to the OpenGL linker. If you pass
None, then you won't be able to use transform feedback.
| uses_point_size | Whether the shader uses point size.
|
|
Binary | Use a precompiled binary.
Fields
data | | uses_point_size | Whether the shader uses point size.
|
|
Trait Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).
Search functions by type signature (e.g.
vec -> usize)