Struct rin::scene::renderer::geometry::SubmeshBuffers[][src]

pub struct SubmeshBuffers { /* fields omitted */ }

Implementations

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
    B: 'static + Clone + BufferExt<u8> + Cast<u32> + Cast<T>,
    T: VertexFormat + Clone + 'static,
    <B as Cast<u32>>::CastTo: 'static,
    <B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
    <B as Cast<u32>>::CastTo: Clone,
    <B as Cast<T>>::CastTo: 'static,
    <B as Cast<T>>::CastTo: BufferRangeMut<T>,
    <B as Cast<T>>::CastTo: WithBackend,
    <B as Cast<T>>::CastTo: MapRange<T>,
    <B as Cast<T>>::CastTo: Clone,
    Allocator<B>: InternalCreation<B>,
    Allocator<B>: Creation<B>,
    Allocator<B>: Updater,
    Allocator<T, B>: AllocatorFlags
[src]

pub fn vao_base_instance<C>(
    &self,
    gl: &C,
    allocators: &mut AllocatorsIndex,
    material_offsets: Option<&MaterialOffsets>,
    model_buffer: &SharedBuffer<(Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>, Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>)>,
    base_instance: u32
) -> Result<Range<'_>, Error> where
    C: CreationContext
[src]

pub fn shadow_vao_base_instance<C>(
    &self,
    gl: &C,
    allocators: &mut AllocatorsIndex,
    model_buffer: &SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>,
    material_offsets_buffer: Option<&SharedBuffer<u32>>,
    base_instance: u32
) -> Result<Range<'_>, Error> where
    C: CreationContext
[src]

pub fn has_indices(&self) -> bool[src]

pub fn command(
    &self,
    allocators: &mut AllocatorsIndex,
    base_instance: u32,
    instance_count: u32
) -> DrawElementsIndirectCommand
[src]

pub fn full_vao<C>(
    &self,
    gl: &C,
    allocators: &mut AllocatorsIndex,
    material_offsets: Option<&MaterialOffsets>,
    model_buffer: &SharedBuffer<(Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>, Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>)>
) -> Result<&mut Vao, Error> where
    C: CreationContext
[src]

pub fn full_shadow_vao<C>(
    &self,
    gl: &C,
    allocators: &mut AllocatorsIndex,
    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
[src]

pub fn range_vao(
    &self,
    allocators: &mut AllocatorsIndex,
    vao: &'v Vao
) -> Range<'v>
[src]

pub fn vao_range(&self) -> &VaoRange[src]

pub fn primitive_type(&self) -> u32[src]

pub fn has_changed(&self) -> bool[src]

pub fn reset_has_changed(&mut self)[src]

Trait Implementations

impl Component for SubmeshBuffers[src]

type Storage = _DenseOneToNVec<SubmeshBuffers, Group>

type MutStorageCacheGuard = ()

impl Debug for SubmeshBuffers[src]

impl<'a> DebugParameter for SubmeshBuffers[src]

impl OneToNComponent for SubmeshBuffers[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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<C> ComponentSend for C where
    C: Component + Send
[src]

impl<C> ComponentThreadLocal for C where
    C: Component
[src]