Struct azul_glium::program::SourceCode
source · 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,
}
Expand description
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§
source§impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a>
impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a>
source§fn from(code: SourceCode<'a>) -> ProgramCreationInput<'a>
fn from(code: SourceCode<'a>) -> ProgramCreationInput<'a>
Converts to this type from the input type.