pub struct GpuVertexRanges {
pub mesh_range: UVec2,
pub skeleton_range: UVec2,
}Expand description
The skeleton and mes vertex ranges, in a format that’s suitable to be sent to the GPU.
Note that there’s no need for this struct to be #[repr(C)]
because this is not the actual data that gets uploaded for GPU skinning.
Fields§
§mesh_range: UVec2The range of the vertex buffer that holds the original mesh.
skeleton_range: UVec2The range of the vertex buffer that holds the duplicate mesh data, owned by the Skeleton
Trait Implementations§
Source§impl Clone for GpuVertexRanges
impl Clone for GpuVertexRanges
Source§fn clone(&self) -> GpuVertexRanges
fn clone(&self) -> GpuVertexRanges
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuVertexRanges
impl Debug for GpuVertexRanges
impl Copy for GpuVertexRanges
Auto Trait Implementations§
impl Freeze for GpuVertexRanges
impl RefUnwindSafe for GpuVertexRanges
impl Send for GpuVertexRanges
impl Sync for GpuVertexRanges
impl Unpin for GpuVertexRanges
impl UnwindSafe for GpuVertexRanges
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