#[repr(C)]pub struct ModelHistoryParams {
pub record_count: u32,
pub _pad: [u32; 3],
}Expand description
Per-dispatch parameters for the model_history compute kernel, which
snapshots this frame’s model matrices out of the bindless object buffer into
the frame’s model-history ring slot. Matches ModelHistoryParams in
model_history.slang.
Every backend binds it at the kernel’s first slot: Metal at buffer(0), Vulkan as set 0 binding 0, DirectX as root constants at b0.
Fields§
§record_count: u32Cull records to snapshot: the object buffer’s whole length.
_pad: [u32; 3]Pads the block to the 16-byte floor a constant buffer binds at.
Trait Implementations§
Source§impl Clone for ModelHistoryParams
impl Clone for ModelHistoryParams
Source§fn clone(&self) -> ModelHistoryParams
fn clone(&self) -> ModelHistoryParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelHistoryParams
impl NoUninit for ModelHistoryParams
Auto Trait Implementations§
impl Freeze for ModelHistoryParams
impl RefUnwindSafe for ModelHistoryParams
impl Send for ModelHistoryParams
impl Sync for ModelHistoryParams
impl Unpin for ModelHistoryParams
impl UnsafeUnpin for ModelHistoryParams
impl UnwindSafe for ModelHistoryParams
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