code wiki / (root) / nx_gltf_writer.nx

nx_gltf_writer.nx

buildroot/runtime/nx_gltf_writer.nx

1114 B16 linesdepth 0pulls 0 transitivereach 185 importersview sourcekind librarytopic gltf
docsdependenciesstructsconstsfunctions

about

Shared checked two-pass glTF serialization; extracted from the existing render descriptor. Internal writer ABI: output pointer, capacity, position, sticky failure; null output counts bytes. Caller initializes all four words. Signed minimum is deliberately unsupported, preserving legacy behavior.

dependencies 0 imports · 4 importers

nx_gltf_writer.nx nx_cast_scene_light_candidate_t364 nx_cast_shader_src.nx nx_gltf_export.nx nx_gltf_render_descriptor_candidat

imports: none

imported by: nx_cast_scene_light_candidate_t364.nxnx_cast_shader_src.nxnx_gltf_export.nxnx_gltf_render_descriptor_candidate_t181.nx

structs

none

consts

4const GLW_I64_MAX:i64=9223372036854775807

functions

5func glw_put(w:*i64,s:*u8,n:i64)->i64
10func glw_s(w:*i64,s:*u8)->i64{return glw_put(w,s,glw_len(s))}
11func glw_n(w:*i64,n:i64)->i64
15func glw_len(s:*u8)->i64{var n:i64=0;while s[n]!=(0 as u8){n=n+1};return n}
called by 1: glw_s
16func glw_i(w:*i64,n:i64)->i64{if n==0-GLW_I64_MAX-1{return -1};if n<0{glw_s(w,"-");return glw_n(w,0-n)};return glw_n(w,n)}
called by 2: gl_parts_jsongpd_i calls 2: glw_sglw_n