pub struct VectorRenderData {
pub base_buffer: Buffer,
pub vector_buffer: Buffer,
pub uniform_buffer: Buffer,
pub bind_group: BindGroup,
pub num_vectors: u32,
}Expand description
GPU resources for rendering vectors.
Fields§
§base_buffer: Buffer§vector_buffer: Buffer§uniform_buffer: Buffer§bind_group: BindGroup§num_vectors: u32Implementations§
Source§impl VectorRenderData
impl VectorRenderData
pub fn new( device: &Device, bind_group_layout: &BindGroupLayout, camera_buffer: &Buffer, bases: &[Vec3], vectors: &[Vec3], ) -> Self
Sourcepub fn update_uniforms(&self, queue: &Queue, uniforms: &VectorUniforms)
pub fn update_uniforms(&self, queue: &Queue, uniforms: &VectorUniforms)
Updates vector uniforms.
Auto Trait Implementations§
impl Freeze for VectorRenderData
impl !RefUnwindSafe for VectorRenderData
impl Send for VectorRenderData
impl Sync for VectorRenderData
impl Unpin for VectorRenderData
impl UnsafeUnpin for VectorRenderData
impl !UnwindSafe for VectorRenderData
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more