pub struct UniformBuffer { /* private fields */ }Expand description
Uniform buffer manager
Implementations§
Source§impl UniformBuffer
impl UniformBuffer
Sourcepub fn update(&self, queue: &Queue, uniforms: &Uniforms)
pub fn update(&self, queue: &Queue, uniforms: &Uniforms)
Update the uniform buffer with new data
Sourcepub fn bind_group(&self) -> &BindGroup
pub fn bind_group(&self) -> &BindGroup
Get the bind group for rendering
Sourcepub fn bind_group_layout(&self) -> &BindGroupLayout
pub fn bind_group_layout(&self) -> &BindGroupLayout
Get the bind group layout
Auto Trait Implementations§
impl Freeze for UniformBuffer
impl !RefUnwindSafe for UniformBuffer
impl Send for UniformBuffer
impl Sync for UniformBuffer
impl Unpin for UniformBuffer
impl UnsafeUnpin for UniformBuffer
impl !UnwindSafe for UniformBuffer
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