yocto/yocto_gl.cpp
inline void dump(const glTFBufferView* val, json& js, parse_stack& err) {
      if (!js.is_object()) js = json::object();
      dump((const glTFChildOfRootProperty*)val, js, err);
      dump_attr(val->buffer, "buffer", js, err);
      if (val->byteOffset != 0) dump_attr(val->byteOffset, "byteOffset", js, err);
      dump_attr(val->byteLength, "byteLength", js, err);
      if (val->byteStride != 0) dump_attr(val->byteStride, "byteStride", js, err);
      if (val->target != glTFBufferViewTarget::NotSet)
        dump_attr(val->target, "target", js, err);
    }
// Converts a glTFBufferView object to JSON
Converts a glTFBufferView object to JSON
Converts a glTFBufferView object to JSON
inline void dump(const glTFBufferView* val, json& js, parse_stack& err) {
      if (!js.is_object()) js = json::object();
      dump((const glTFChildOfRootProperty*)val, js, err);
      dump_attr(val->buffer, "buffer", js, err);
      if (val->byteOffset != 0) dump_attr(val->byteOffset, "byteOffset", js, err);
      dump_attr(val->byteLength, "byteLength", js, err);
      if (val->byteStride != 0) dump_attr(val->byteStride, "byteStride", js, err);
      if (val->target != glTFBufferViewTarget::NotSet)
        dump_attr(val->target, "target", js, err);
    }
inline void dump ( const glTFBufferView * val , json & js , parse_stack & err ) { if ( ! js . is_object ( ) ) js = json :: object ( ) ; dump ( ( const glTFChildOfRootProperty * ) val , js , err ) ; dump_attr ( val -> buffer , " " , js , err ) ; if ( val -> byteOffset != 0 ) dump_attr ( val -> byteOffset , " " , js , err ) ; dump_attr ( val -> byteLength , " " , js , err ) ; if ( val -> byteStride != 0 ) dump_attr ( val -> byteStride , " " , js , err ) ; if ( val -> target != glTFBufferViewTarget :: NotSet ) dump_attr ( val -> target , " " , js , err ) ; }
Converts a glTFBufferView object to JSON
Converts a glTFBufferView object to JSON