pub struct Program { /* private fields */ }
Implementations§
Source§impl Program
impl Program
pub fn draw_arrays<T: Item, U: Uniforms>( &self, primitive_type: PrimitiveType, uniforms: &U, attributes: &ItemsBuffer<T>, )
pub fn draw_instances<T: Item, I: Item, U: Uniforms>( &self, primitive_type: PrimitiveType, uniforms: &U, attributes: &ItemsBuffer<T>, instances: &ItemsBuffer<I>, )
pub fn draw_element_arrays<T: Item, U: Uniforms>( &self, primitive_type: PrimitiveType, uniforms: &U, attributes: &ItemsBuffer<T>, elements: &ElementsBuffer, )
pub fn draw_element_instances<T: Item, I: Item, U: Uniforms>( &self, primitive_type: PrimitiveType, uniforms: &U, attributes: &ItemsBuffer<T>, elements: &ElementsBuffer, instances: &ItemsBuffer<I>, )
pub fn vertex_source(&self) -> &String
pub fn fragment_source(&self) -> &String
Trait Implementations§
impl Eq for Program
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