pub struct Program(/* private fields */);
Expand description
A loaded GPU program.
Implementations§
Source§impl Program
impl Program
Sourcepub fn vertex_data(&self, name: &[u8]) -> VertexData
pub fn vertex_data(&self, name: &[u8]) -> VertexData
Get a vertex data handle for this GPU program.
Sourcepub fn uniform(&self, name: &[u8]) -> UniformData
pub fn uniform(&self, name: &[u8]) -> UniformData
Get a uniform data handle for this GPU program.
Sourcepub fn draw_arrays(&self, topology: Topology, range: Range<u32>)
pub fn draw_arrays(&self, topology: Topology, range: Range<u32>)
Draw the elements.
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