Home
last modified time | relevance | path

Searched refs:accessor (Results 1 - 9 of 9) sorted by relevance

/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_object.cpp101 void ARKTS_DefineAccessors(ARKTS_Env env, ARKTS_Value jobj, ARKTS_Value jkey, ARKTS_Accessor accessor) in ARKTS_DefineAccessors() argument
109 ARKTS_ASSERT_V(accessor.setter == undefined || ARKTS_IsCallable(env, accessor.setter), "setter not callable"); in ARKTS_DefineAccessors()
110 ARKTS_ASSERT_V(accessor.getter == undefined || ARKTS_IsCallable(env, accessor.getter), "getter not callable"); in ARKTS_DefineAccessors()
111 ARKTS_ASSERT_V(accessor.getter != undefined || accessor.setter != undefined, "getter and setter is undefined"); in ARKTS_DefineAccessors()
117 auto handledGetter = accessor.getter != undefined ? BIT_CAST(accessor.getter, Local<JSValueRef>) : handledUndef; in ARKTS_DefineAccessors()
118 auto handledSetter = accessor in ARKTS_DefineAccessors()
[all...]
H A Dark_interop_napi.h134 EXPORT void ARKTS_DefineAccessors(ARKTS_Env env, ARKTS_Value jobj, ARKTS_Value jkey, ARKTS_Accessor accessor);
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_util.cpp60 vector<uint8_t> Read(Accessor const& accessor) in Read() argument
62 if (!accessor.bufferView->data) { in Read()
66 const size_t startOffset = accessor.bufferView->byteOffset + accessor.byteOffset; in Read()
67 const size_t bufferLength = accessor.bufferView->buffer->byteLength; in Read()
70 const uint8_t* src = accessor.bufferView->data + accessor.byteOffset; in Read()
72 const uint32_t componentByteSize = GetComponentByteSize(accessor.componentType); in Read()
73 const uint32_t componentCount = GetComponentsCount(accessor.type); in Read()
75 const size_t byteStride = accessor in Read()
171 LoadSparseAccessor(Accessor const& accessor, GLTFLoadDataResult& result) LoadSparseAccessor() argument
1131 LoadData(Accessor const& accessor) LoadData() argument
[all...]
H A Dgltf2_exporter.cpp286 /* StoreAccessor first stores the bufferView used by accessor, then hashes it and stores if needed. */
287 Accessor* StoreAccessor(const Accessor& accessor) in StoreAccessor() argument
290 if (accessor.bufferView) { in StoreAccessor()
291 bufferView = StoreBufferView(*accessor.bufferView, GetComponentByteSize(accessor.componentType)); in StoreAccessor()
293 auto const accessorHash = BASE_NS::Hash(bufferView, accessor.componentType, accessor.count, accessor.type, in StoreAccessor()
294 accessor.byteOffset, accessor in StoreAccessor()
577 Accessor accessor; StoreInverseBindMatrices() local
729 Accessor accessor; AnimationInput() local
760 Accessor accessor; AnimationOutput() local
1324 ExportAccessorSparse(const Data& data, const Accessor& accessor) ExportAccessorSparse() argument
[all...]
H A Dgltf2_loader.cpp503 SetError(loadResult, "Failed to read accessor.componentType");
513 SetError(loadResult, "Failed to read accessor.count");
526 SetError(loadResult, "Failed to read accessor.type");
734 auto accessor = make_unique<Accessor>();
737 accessor->componentType = static_cast<ComponentType>(*componentType);
738 accessor->count = *count;
739 accessor->type = *datatype;
740 accessor->bufferView = *bufferView;
741 accessor->byteOffset = *byteOffset;
742 accessor
[all...]
H A Dgltf2_util.h131 // Load accessor data.
132 GLTFLoadDataResult LoadData(Accessor const& accessor);
H A Dgltf2_data_structures.h246 // The number of attributes encoded in this sparse accessor.
249 // Index array of size `count` that points to those accessor attributes
254 // storing the displaced accessor attributes pointed by `indices`.
256 // number of components as the base accessor."
262 // When not defined, accessor must be initialized with zeros;
271 // 5125 (UNSIGNED_INT) is only allowed when the accessor contains indices,
272 // i.e., the accessor is only referenced by `primitive.indices`.
275 // [required] The number of attributes referenced by this accessor,
299 // accessor's `componentType`. Both min and max arrays have the same length.
304 // When accessor i
[all...]
H A Dgltf2_importer.cpp562 GLTF2::GLTFLoadDataResult loadDataResult = GLTF2::LoadData(*attribute.accessor); in LoadPrimitiveAttributeData()
637 GLTF2::GLTFLoadDataResult loadDataResult = GLTF2::LoadData(*targetAttribute.accessor); in GenerateMorphTargets()
740 info.vertexCount = pos->accessor->count; in CreatePrimitiveImportInfo()
3369 task->gather = [this, accessor = track.sampler->input, t = task.get()]() -> bool {
3370 return BuildAnimationInput(*data_, engine_.GetFileManager(), result_, *accessor, t->data.component);
3397 task->gather = [this, accessor = track.sampler->output, path = track.channel.path, t = task.get()]() -> bool {
3398 return BuildAnimationOutput(*data_, engine_.GetFileManager(), result_, *accessor, path, t->data.component);
/foundation/graphic/graphic_3d/kits/js/src/
H A DPropertyProxy.cpp127 auto* accessor = new PropCtx(this, member.c_str()); in Hook() local
128 accessors.push_back(accessor); in Hook()
144 nullptr, napi_default_jsproperty, (void*)accessor }; in Hook()

Completed in 15 milliseconds