Skip to main content

Module gpu_skin

Module gpu_skin 

Source
Expand description

GPU Dual-Quaternion Skinning Palette & Reference Kernel (re-exported from etalon-render).

Structs§

GpuJointMotorPair
64-byte GPU storage record per joint storing both current-frame and previous-frame skinning PGA Motors ($M_{\text{skin}, j} = M_{\text{world}, j} \circ M_{\text{inv_bind}, j}$).
GpuSkinnedVertex
24-byte static vertex skinning attribute (JOINTS_0 + WEIGHTS_0) uploaded once per mesh.

Constants§

MAX_GPU_RIG_JOINTS
Maximum joints supported per GPU skeletal rig palette (128 joints = 8 KiB per instance).
MAX_GPU_SKELETON_INSTANCES
Maximum concurrent skeletal instances resident in a single GPU storage buffer.

Functions§

evaluate_skinning_motor_palette_zero_heap
Evaluates the GPU skinning Motor palette in a single zero-heap pass (HotZeroHeap).
gpu_shader_skin_vertex_reference
Deterministic software reference implementation of the WGSL vertex shader PGA Motor dual-quaternion skinning kernel (HotZeroHeap).
hemisphere_align_motor
Aligns candidate to the same $S^3$ double-cover hemisphere as reference.
skin_vertices_gpu_reference_into
Batch helper that skins a slice of vertices via gpu_shader_skin_vertex_reference into caller-supplied output slices (HotZeroHeap).