Struct 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.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SourceCode<'a>
impl<'a> Send for SourceCode<'a>
impl<'a> Sync for SourceCode<'a>
impl<'a> Unpin for SourceCode<'a>
impl<'a> UnwindSafe for SourceCode<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more