Struct mallumo_gls::pipeline::Shader
[−]
[src]
pub struct Shader { pub shader_type: ShaderType, // some fields omitted }
Fields
shader_type: ShaderType
Methods
impl Shader
[src]
fn new<T: AsRef<str>>(
shader_type: ShaderType,
sources: &[T]
) -> Result<Shader, Error>
[src]
shader_type: ShaderType,
sources: &[T]
) -> Result<Shader, Error>
fn from_files(
shader_type: ShaderType,
filepaths: &[&Path]
) -> Result<Shader, Error>
[src]
shader_type: ShaderType,
filepaths: &[&Path]
) -> Result<Shader, Error>