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§

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.