Struct mallumo_gls::pipeline::Shader
[−]
[src]
pub struct Shader { pub shader_type: ShaderType, // some fields omitted }
Fields
shader_type: ShaderType
Methods
impl Shader
[src]
pub fn new<T: AsRef<str>>(
shader_type: ShaderType,
sources: &[T]
) -> Result<Shader, Error>
[src]
shader_type: ShaderType,
sources: &[T]
) -> Result<Shader, Error>
pub fn from_files(
shader_type: ShaderType,
filepaths: &[&Path]
) -> Result<Shader, Error>
[src]
shader_type: ShaderType,
filepaths: &[&Path]
) -> Result<Shader, Error>
pub fn from_file(
shader_type: ShaderType,
filepath: &Path
) -> Result<Shader, Error>
[src]
shader_type: ShaderType,
filepath: &Path
) -> Result<Shader, Error>
pub fn get_id(&self) -> ShaderId
[src]
Trait Implementations
impl Debug for Shader
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more