pub struct Program { /* private fields */ }
Expand description
Shader Program Object
Implementations§
Source§impl Program
impl Program
Sourcepub fn link(&self) -> Result<(), String>
pub fn link(&self) -> Result<(), String>
Link this program.
It will return Ok(())
if the program is linked successfully,
otherwise it will return Err(String)
which contains the error message.
Sourcepub unsafe fn link_unchecked(&self)
pub unsafe fn link_unchecked(&self)
Link this program without checking the result.
If self.link().unwarp()
is never panic,
you can use unsafe { self.link_unchecked() }
to improve performance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
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