[−][src]Enum glium::program::ProgramCreationInput
Input when creating a program.
Variants
Use GLSL source code.
Fields of SourceCode
vertex_shader: &'a strSource 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 strSource 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
None, then you won't be able to use transform feedback.
outputs_srgb: boolWhether the fragment shader outputs colors in sRGB or RGB. This is false by default,
meaning that the program outputs RGB.
If this is false, then GL_FRAMEBUFFER_SRGB will be enabled when this program is used
(if it is supported).
uses_point_size: boolWhether the shader uses point size.
Use a precompiled binary.
Fields of Binary
Trait Implementations
impl<'a> From<Binary> for ProgramCreationInput<'a>[src]
fn from(binary: Binary) -> ProgramCreationInput<'a>[src]
impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a>[src]
fn from(code: SourceCode<'a>) -> ProgramCreationInput<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProgramCreationInput<'a>
impl<'a> Send for ProgramCreationInput<'a>
impl<'a> Sync for ProgramCreationInput<'a>
impl<'a> Unpin for ProgramCreationInput<'a>
impl<'a> UnwindSafe for ProgramCreationInput<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,