Struct rin::scene::renderer::memory::Allocator [−][src]
pub struct Allocator<T, B> { /* fields omitted */ }
Implementations
impl<T, B> Allocator<T, B>
[src]
impl<T, B> Allocator<T, B>
[src]impl<T, B> Allocator<T, B> where
B: 'static + Clone + BufferExt<u8> + Cast<u32>,
T: 'static + Clone + VertexFormat,
Allocator<B>: InternalCreation<B>,
Allocator<B>: Creation<B>,
Allocator<B>: Updater,
<B as Cast<u32>>::CastTo: 'static,
<B as Cast<u32>>::CastTo: BufferRange<u32>,
<B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
<B as Cast<u32>>::CastTo: Clone,
Allocator<T, B>: AllocatorFlags,
[src]
impl<T, B> Allocator<T, B> where
B: 'static + Clone + BufferExt<u8> + Cast<u32>,
T: 'static + Clone + VertexFormat,
Allocator<B>: InternalCreation<B>,
Allocator<B>: Creation<B>,
Allocator<B>: Updater,
<B as Cast<u32>>::CastTo: 'static,
<B as Cast<u32>>::CastTo: BufferRange<u32>,
<B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
<B as Cast<u32>>::CastTo: Clone,
Allocator<T, B>: AllocatorFlags,
[src]pub fn vertices_static<C>(
&mut self,
gl: &C,
data: &[T]
) -> Result<BufferRef, Error> where
C: CreationContext,
[src]
&mut self,
gl: &C,
data: &[T]
) -> Result<BufferRef, Error> where
C: CreationContext,
pub fn vertices_dynamic<C>(
&mut self,
gl: &C,
data: &[T]
) -> Result<BufferRef, Error> where
C: CreationContext,
[src]
&mut self,
gl: &C,
data: &[T]
) -> Result<BufferRef, Error> where
C: CreationContext,
pub fn indices_static<C>(
&mut self,
gl: &C,
data: &[u32]
) -> Result<BufferRef, Error> where
C: CreationContext,
[src]
&mut self,
gl: &C,
data: &[u32]
) -> Result<BufferRef, Error> where
C: CreationContext,
pub fn vao<C>(
&mut self,
gl: &C,
vao_id: VaoId,
model_normal_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>>
) -> Result<&mut Vao, Error> where
C: CreationContext,
B: Cast<T>,
<B as Cast<T>>::CastTo: BufferRange<T>,
<B as Cast<T>>::CastTo: Clone,
[src]
&mut self,
gl: &C,
vao_id: VaoId,
model_normal_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>>
) -> Result<&mut Vao, Error> where
C: CreationContext,
B: Cast<T>,
<B as Cast<T>>::CastTo: BufferRange<T>,
<B as Cast<T>>::CastTo: Clone,
pub fn shadow_vao<C>(
&mut self,
gl: &C,
vao_id: VaoId,
model_buffer: &SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>,
material_offsets_buffer: Option<&SharedBuffer<u32>>
) -> Result<&mut Vao, Error> where
C: CreationContext,
B: Cast<T>,
<B as Cast<T>>::CastTo: BufferRange<T>,
<B as Cast<T>>::CastTo: Clone,
[src]
&mut self,
gl: &C,
vao_id: VaoId,
model_buffer: &SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>,
material_offsets_buffer: Option<&SharedBuffer<u32>>
) -> Result<&mut Vao, Error> where
C: CreationContext,
B: Cast<T>,
<B as Cast<T>>::CastTo: BufferRange<T>,
<B as Cast<T>>::CastTo: Clone,
pub fn submesh_vaos(
&mut self,
gl: &Renderer<'_, Screen>,
geometry: &Geometry<T>,
submeshes: Option<SliceView<'_, Submesh>>,
dynamic: bool
) -> (Vec<VaoRange, Global>, VaoRange, BufferRef, Option<BufferRef>)
[src]
&mut self,
gl: &Renderer<'_, Screen>,
geometry: &Geometry<T>,
submeshes: Option<SliceView<'_, Submesh>>,
dynamic: bool
) -> (Vec<VaoRange, Global>, VaoRange, BufferRef, Option<BufferRef>)
pub fn vao_range(&self, range: &VaoRange) -> VaoRangeInfo
[src]
pub fn command(
&self,
range: &VaoRange,
base_instance: u32,
instance_count: u32
) -> DrawElementsIndirectCommand
[src]
&self,
range: &VaoRange,
base_instance: u32,
instance_count: u32
) -> DrawElementsIndirectCommand
pub fn dynamic_vertex_buffer_range(
&self,
range: &BufferRef
) -> Range<T, <B as Cast<T>>::CastTo, <B as Cast<T>>::CastTo> where
B: Cast<T>,
[src]
&self,
range: &BufferRef
) -> Range<T, <B as Cast<T>>::CastTo, <B as Cast<T>>::CastTo> where
B: Cast<T>,
pub fn update_vertex_buffer_range<C>(
&mut self,
gl: &C,
range: &BufferRef,
data: &[T]
) -> Result<(), Error> where
C: CreationContext,
[src]
&mut self,
gl: &C,
range: &BufferRef,
data: &[T]
) -> Result<(), Error> where
C: CreationContext,
pub fn update_index_buffer_range<C>(
&mut self,
gl: &C,
range: &BufferRef,
data: &[u32]
) -> Result<(), Error> where
C: CreationContext,
[src]
&mut self,
gl: &C,
range: &BufferRef,
data: &[u32]
) -> Result<(), Error> where
C: CreationContext,
pub fn debug_draw(
&self,
gl: &Renderer<'_, Screen>,
pos: &Point<f32, U2>,
w: f32,
h: f32
)
[src]
&self,
gl: &Renderer<'_, Screen>,
pos: &Point<f32, U2>,
w: f32,
h: f32
)
pub fn vertex_buffer_range_len(&self, range: &BufferRef) -> usize
[src]
pub fn index_buffer_range_len(&self, range: &BufferRef) -> usize
[src]
Trait Implementations
impl<T> AllocatorFlags for Allocator<T, SharedBufferStorage<u8>>
[src]
impl<T> AllocatorFlags for Allocator<T, SharedBufferStorage<u8>>
[src]pub fn static_flags() -> u32
[src]
pub fn dynamic_flags() -> u32
[src]
impl<T> AllocatorFlags for Allocator<T, SharedBuffer<u8>>
[src]
impl<T> AllocatorFlags for Allocator<T, SharedBuffer<u8>>
[src]pub fn static_flags() -> u32
[src]
pub fn dynamic_flags() -> u32
[src]
Auto Trait Implementations
impl<T, B> !RefUnwindSafe for Allocator<T, B>
impl<T, B> !Send for Allocator<T, B>
impl<T, B> !Sync for Allocator<T, B>
impl<T, B> Unpin for Allocator<T, B> where
B: Unpin,
T: Unpin,
B: Unpin,
T: Unpin,
impl<T, B> !UnwindSafe for Allocator<T, B>
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]