Struct BindGroupManager
pub struct BindGroupManager { /* private fields */ }Expand description
Bind group manager for render resources
Implementations§
§impl BindGroupManager
impl BindGroupManager
pub fn new(device: &Device) -> BindGroupManager
pub fn new(device: &Device) -> BindGroupManager
Create a new bind group manager
pub fn update_view_projection(&self, queue: &Queue, matrix: [[f32; 4]; 4])
pub fn update_view_projection(&self, queue: &Queue, matrix: [[f32; 4]; 4])
Update view/projection matrix
pub fn update_motors(&self, queue: &Queue, quins: &[RenderQuin])
pub fn update_motors(&self, queue: &Queue, quins: &[RenderQuin])
Update motor buffer with RenderQuin data
pub fn update_epistemic_params(&self, queue: &Queue, params: EpistemicParams)
pub fn update_epistemic_params(&self, queue: &Queue, params: EpistemicParams)
Update epistemic parameters
pub fn bind_group_layout(&self) -> &BindGroupLayout
pub fn bind_group_layout(&self) -> &BindGroupLayout
Get the bind group layout
pub fn create_bind_group(&self, device: &Device, motor_index: u32) -> BindGroup
pub fn create_bind_group(&self, device: &Device, motor_index: u32) -> BindGroup
Create a bind group for rendering
Auto Trait Implementations§
impl !RefUnwindSafe for BindGroupManager
impl !UnwindSafe for BindGroupManager
impl Freeze for BindGroupManager
impl Send for BindGroupManager
impl Sync for BindGroupManager
impl Unpin for BindGroupManager
impl UnsafeUnpin for BindGroupManager
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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