Struct geng_shader::Library
source · pub struct Library { /* private fields */ }
Implementations§
source§impl Library
impl Library
pub fn empty(ugli: &Ugli) -> Self
pub fn new( ugli: &Ugli, antialias: bool, prefix: Option<(String, String)> ) -> Self
pub fn add(&mut self, file_name: &str, source: &str)
pub fn process( &self, shader_type: ShaderType, source: &str ) -> Result<String, Error>
pub fn compile(&self, source: &str) -> Result<Program, Error>
Auto Trait Implementations§
impl RefUnwindSafe for Library
impl !Send for Library
impl !Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more