Struct rin_scene::renderer::geometry::SubmeshBuffers [−][src]
pub struct SubmeshBuffers { /* fields omitted */ }
Implementations
impl SubmeshBuffers
[src]
impl SubmeshBuffers
[src]pub fn new<T, B>(
vao_range: VaoRange,
primitive_type: PrimitiveType,
unified_material_ubo: bool,
allocator_handle: AllocatorHandle<T, B>
) -> SubmeshBuffers where
T: VertexFormat + Clone + 'static,
B: 'static + Clone + BufferExt<u8> + Cast<IndexT> + Cast<T>,
<B as Cast<IndexT>>::CastTo: 'static + BufferRangeMut<IndexT> + Clone,
<B as Cast<T>>::CastTo: 'static + BufferRangeMut<T> + WithBackend + MapRange<T> + Clone,
Allocator<B>: InternalCreation<B> + Creation<B> + Updater,
Allocator<T, B>: AllocatorFlags,
[src]
vao_range: VaoRange,
primitive_type: PrimitiveType,
unified_material_ubo: bool,
allocator_handle: AllocatorHandle<T, B>
) -> SubmeshBuffers where
T: VertexFormat + Clone + 'static,
B: 'static + Clone + BufferExt<u8> + Cast<IndexT> + Cast<T>,
<B as Cast<IndexT>>::CastTo: 'static + BufferRangeMut<IndexT> + Clone,
<B as Cast<T>>::CastTo: 'static + BufferRangeMut<T> + WithBackend + MapRange<T> + Clone,
Allocator<B>: InternalCreation<B> + Creation<B> + Updater,
Allocator<T, B>: AllocatorFlags,
pub fn vao_base_instance<C: CreationContext>(
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
material_offsets: Option<&MaterialOffsets>,
model_buffer: &SharedBuffer<(Mat4, Mat4)>,
base_instance: u32
) -> Result<Range<'_>>
[src]
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
material_offsets: Option<&MaterialOffsets>,
model_buffer: &SharedBuffer<(Mat4, Mat4)>,
base_instance: u32
) -> Result<Range<'_>>
pub fn shadow_vao_base_instance<C: CreationContext>(
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
model_buffer: &SharedBuffer<Mat4>,
material_offsets_buffer: Option<&SharedBuffer<u32>>,
base_instance: u32
) -> Result<Range<'_>>
[src]
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
model_buffer: &SharedBuffer<Mat4>,
material_offsets_buffer: Option<&SharedBuffer<u32>>,
base_instance: u32
) -> Result<Range<'_>>
pub fn has_indices(&self) -> bool
[src]
pub fn command(
&self,
allocators: &mut AllocatorsIndex,
base_instance: u32,
instance_count: u32
) -> DrawElementsIndirectCommand
[src]
&self,
allocators: &mut AllocatorsIndex,
base_instance: u32,
instance_count: u32
) -> DrawElementsIndirectCommand
pub fn full_vao<C: CreationContext>(
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
material_offsets: Option<&MaterialOffsets>,
model_buffer: &SharedBuffer<(Mat4, Mat4)>
) -> Result<&mut Vao>
[src]
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
material_offsets: Option<&MaterialOffsets>,
model_buffer: &SharedBuffer<(Mat4, Mat4)>
) -> Result<&mut Vao>
pub fn full_shadow_vao<C: CreationContext>(
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
model_buffer: &SharedBuffer<Mat4>,
material_offsets_buffer: Option<&SharedBuffer<u32>>
) -> Result<&mut Vao>
[src]
&self,
gl: &C,
allocators: &mut AllocatorsIndex,
model_buffer: &SharedBuffer<Mat4>,
material_offsets_buffer: Option<&SharedBuffer<u32>>
) -> Result<&mut Vao>
pub fn range_vao<'v>(
&self,
allocators: &mut AllocatorsIndex,
vao: &'v Vao
) -> Range<'v>
[src]
&self,
allocators: &mut AllocatorsIndex,
vao: &'v Vao
) -> Range<'v>
pub fn vao_range(&self) -> &VaoRange
[src]
pub fn primitive_type(&self) -> GLenum
[src]
pub fn has_changed(&self) -> bool
[src]
pub fn reset_has_changed(&mut self)
[src]
Trait Implementations
impl Component for SubmeshBuffers
[src]
impl Component for SubmeshBuffers
[src]type Storage = DenseOneToNVec<SubmeshBuffers>
type MutStorageCacheGuard = ()
fn type_name() -> &'static str
[src]
fn is_reference() -> bool
[src]
pub fn id() -> TypeId
[src]
pub fn references_other(
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
[src]
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
impl<'a> DebugParameter for SubmeshBuffers
[src]
impl<'a> DebugParameter for SubmeshBuffers
[src]fn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
impl OneToNComponent for SubmeshBuffers
[src]
impl OneToNComponent for SubmeshBuffers
[src]fn slice_type_name() -> &'static str
[src]
impl Send for SubmeshBuffers
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SubmeshBuffers
impl !Sync for SubmeshBuffers
impl Unpin for SubmeshBuffers
impl !UnwindSafe for SubmeshBuffers
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]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<C> ComponentSend for C where
C: Component + Send,
[src]
C: Component + Send,
impl<C> ComponentThreadLocal for C where
C: Component,
[src]
C: Component,