pub struct VertexBuffer<T: VertexLayoutDescription> {
pub vertex_buffer_id: GLuint,
pub vertex_buffer_len: usize,
pub gl_context: Rc<dyn Gl>,
pub vao: VertexArrayObject,
pub vertex_buffer_type: PhantomData<T>,
pub index_buffer_id: GLuint,
pub index_buffer_len: usize,
pub index_buffer_format: IndexBufferFormat,
}
Fields§
§vertex_buffer_id: GLuint
§vertex_buffer_len: usize
§gl_context: Rc<dyn Gl>
§vao: VertexArrayObject
§vertex_buffer_type: PhantomData<T>
§index_buffer_id: GLuint
§index_buffer_len: usize
§index_buffer_format: IndexBufferFormat
Implementations§
Source§impl<T: VertexLayoutDescription> VertexBuffer<T>
impl<T: VertexLayoutDescription> VertexBuffer<T>
Trait Implementations§
Source§impl<T: VertexLayoutDescription> Debug for VertexBuffer<T>
impl<T: VertexLayoutDescription> Debug for VertexBuffer<T>
Source§impl<T: VertexLayoutDescription> Display for VertexBuffer<T>
impl<T: VertexLayoutDescription> Display for VertexBuffer<T>
Source§impl<T: VertexLayoutDescription> Drop for VertexBuffer<T>
impl<T: VertexLayoutDescription> Drop for VertexBuffer<T>
Source§impl<T: VertexLayoutDescription> Hash for VertexBuffer<T>
impl<T: VertexLayoutDescription> Hash for VertexBuffer<T>
Source§impl<T: VertexLayoutDescription> Ord for VertexBuffer<T>
impl<T: VertexLayoutDescription> Ord for VertexBuffer<T>
Source§impl<T: VertexLayoutDescription> PartialEq for VertexBuffer<T>
impl<T: VertexLayoutDescription> PartialEq for VertexBuffer<T>
Source§impl<T: VertexLayoutDescription> PartialOrd for VertexBuffer<T>
impl<T: VertexLayoutDescription> PartialOrd for VertexBuffer<T>
impl<T: VertexLayoutDescription> Eq for VertexBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for VertexBuffer<T>
impl<T> !RefUnwindSafe for VertexBuffer<T>
impl<T> !Send for VertexBuffer<T>
impl<T> !Sync for VertexBuffer<T>
impl<T> Unpin for VertexBuffer<T>where
T: Unpin,
impl<T> !UnwindSafe for VertexBuffer<T>
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