Struct rin::scene::renderer::memory::VaoCache [−][src]
pub struct VaoCache<T> { /* fields omitted */ }
Implementations
impl<T> VaoCache<T>
[src]
impl<T> VaoCache<T>
[src]pub fn new() -> VaoCache<T>
[src]
pub fn vao<C, B, I>(
&mut self,
gl: &C,
vao_id: VaoId,
vertex_buffer: &B,
indices_buffer: Option<&I>,
model_buffer: Either<&SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, &SharedBuffer<(Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>, Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>)>>,
material_offsets_buffer: Option<&SharedBuffer<u32>>
) -> &mut Vao where
C: CreationContext,
B: 'static + BufferRange<T> + Clone,
T: 'static + VertexFormat,
I: 'static + BufferRangeMut<u32> + Clone,
[src]
&mut self,
gl: &C,
vao_id: VaoId,
vertex_buffer: &B,
indices_buffer: Option<&I>,
model_buffer: Either<&SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>, &SharedBuffer<(Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>, Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>)>>,
material_offsets_buffer: Option<&SharedBuffer<u32>>
) -> &mut Vao where
C: CreationContext,
B: 'static + BufferRange<T> + Clone,
T: 'static + VertexFormat,
I: 'static + BufferRangeMut<u32> + Clone,
Auto Trait Implementations
impl<T> !RefUnwindSafe for VaoCache<T>
impl<T> !Send for VaoCache<T>
impl<T> !Sync for VaoCache<T>
impl<T> Unpin for VaoCache<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for VaoCache<T>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]