Enum glium::program::ProgramCreationInput
[−]
[src]
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)>,
outputs_srgb: bool,
uses_point_size: bool,
},
Binary {
data: Binary,
outputs_srgb: bool,
uses_point_size: bool,
},
}Input when creating a program.
Variants
SourceCodeUse GLSL source code.
Fields of SourceCode
vertex_shader: &'a str | Source code of the vertex shader. |
tessellation_control_shader: Option<&'a str> | Source code of the optional tessellation control shader. |
tessellation_evaluation_shader: Option<&'a str> | Source code of the optional tessellation evaluation shader. |
geometry_shader: Option<&'a str> | Source code of the optional geometry shader. |
fragment_shader: &'a str | Source code of the fragment shader. |
transform_feedback_varyings: Option<(Vec<String>, TransformFeedbackMode)> | 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
|
outputs_srgb: bool | Whether the fragment shader outputs colors in If this is false, then |
uses_point_size: bool | Whether the shader uses point size. |
BinaryUse a precompiled binary.
Fields of Binary
data: Binary | The data. |
outputs_srgb: bool | See |
uses_point_size: bool | Whether the shader uses point size. |
Trait Implementations
impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a>[src]
fn from(code: SourceCode<'a>) -> ProgramCreationInput<'a>[src]
Performs the conversion.
impl<'a> From<Binary> for ProgramCreationInput<'a>[src]
fn from(binary: Binary) -> ProgramCreationInput<'a>[src]
Performs the conversion.