Enum nannou::ui::backend::glium::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

Use GLSL source code.

Fields of SourceCode

Source code of the vertex shader.

Source code of the optional tessellation control shader.

Source code of the optional tessellation evaluation shader.

Source code of the optional geometry shader.

Source code of the fragment shader.

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.

Whether 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).

Whether the shader uses point size.

Use a precompiled binary.

Fields of Binary

The data.

See SourceCode::outputs_srgb.

Whether the shader uses point size.

Trait Implementations

impl<'a> From<Binary> for ProgramCreationInput<'a>
[src]

Performs the conversion.

impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> Send for ProgramCreationInput<'a>

impl<'a> Sync for ProgramCreationInput<'a>