#[repr(C)]pub struct SkinParams {
pub vertex_base: u32,
pub vertex_count: u32,
pub joint_count: u32,
pub target_count: u32,
}Expand description
Per-dispatch parameters for the rt_skin compute kernel, which deforms one
skinned object’s bind-pose vertices into the shared deformed buffer the RT
acceleration structure traces. Matches SkinParams in rt_skin.slang.
Metal writes it to buffer(3), Vulkan pushes it, DirectX takes it as root constants at b0.
Fields§
§vertex_base: u32First vertex of this object’s region in the shared vertex buffer.
vertex_count: u32Vertices this dispatch deforms.
joint_count: u32Palette size; joint indices are clamped below it.
target_count: u32Morph targets in the delta buffer; zero when the object has none.
Trait Implementations§
Source§impl Clone for SkinParams
impl Clone for SkinParams
Source§fn clone(&self) -> SkinParams
fn clone(&self) -> SkinParams
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 SkinParams
impl NoUninit for SkinParams
Auto Trait Implementations§
impl Freeze for SkinParams
impl RefUnwindSafe for SkinParams
impl Send for SkinParams
impl Sync for SkinParams
impl Unpin for SkinParams
impl UnsafeUnpin for SkinParams
impl UnwindSafe for SkinParams
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