Struct glium::program::SourceCode
[−]
[src]
pub struct SourceCode<'a> {
pub vertex_shader: &'a str,
pub tessellation_control_shader: Option<&'a str>,
pub tessellation_evaluation_shader: Option<&'a str>,
pub geometry_shader: Option<&'a str>,
pub fragment_shader: &'a str,
}Represents the source code of a program.
Fields
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.
Trait Implementations
impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a>[src]
fn from(code: SourceCode<'a>) -> ProgramCreationInput<'a>[src]
Performs the conversion.