code wiki / (root) / nx_gltf_pose_math_t316.nx

nx_gltf_pose_math_t316.nx

buildroot/runtime/nx_gltf_pose_math_t316.nx

3959 B90 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind librarytopic gltf
docsdependenciesstructsconstsfunctions

about

WASM-safe arithmetic extracted byte-for-byte from existing glTF pose and FBX bind owners. Format parsing and file allocators remain in their owners; this adapter calls only caller-scratch math.

dependencies 1 imports · 1 importers

nx_vecmath.nx nx_gltf_pose_math_t316.nx nx_gltf_pose_packet_t316.nx

imports: nx_vecmath.nx

imported by: nx_gltf_pose_packet_t316.nx

structs

none

consts

4const GLD_I64_MAX:i64=9223372036854775807
5const VM_Q30:i64=1073741824
6const VM_Q30_BITS:i64=30
36const FBB_WORD: i64 = 8
37const FBB_MATRIX_WORDS: i64 = 16
38const FBB_Q: i64 = 1048576
39const FBB_I64_MAX: i64 = 9223372036854775807
40const FBB_BAD: i64 = 0 - 10
41const FBB_CONFLICT: i64 = 0 - 12
42const FBB_RANGE: i64 = 0 - 13

functions

7func vm_q_norm_q30(a:*i64,out:*i64,tolerance:i64)->i64
called by 1: vm_q_slerp_q30 calls 2: vm_isqrtvm_abs
14func vm_q_slerp_q30(a:*i64,b:*i64,t:i64,tolerance:i64,out:*i64,scratch:*i64)->i64
called by 1: gpa_frame calls 2: vm_q_norm_q30vm_isqrt
43func fbb_compose_into(a:*i64,b:*i64,out:*i64,tmp:*i64,tmp_words:i64)->i64
90func gld_identity(out:*i64)->i64 {var i:i64=0;while i<16{out[i]=0;i=i+1};out[0]=FBB_Q;out[5]=FBB_Q;out[10]=FBB_Q;out[15]=FBB_Q;return 0}