/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_util.cpp | 102 vector<IndexType>& indices; member 110 vector<uint16_t>& indices = geometry.indices; in GenerateCubeGeometry() local 141 indices.push_back(i); in GenerateCubeGeometry() 150 vector<uint32_t>& indices = geometry.indices; in GenerateSphereGeometry() local 201 vector<uint32_t>& indices = geometry.indices; in GenerateConeCap() local 240 vector<uint32_t>& indices = geometry.indices; in GenerateConeGeometry() local 281 indices.push_back(v0); in GenerateConeGeometry() 282 indices.push_back(v2); in GenerateConeGeometry() 283 indices.push_back(v1); in GenerateConeGeometry() 312 vector<uint32_t>& indices = geometry.indices; in GenerateTorusGeometry() local [all …]
|
H A D | mesh_util.h | 70 static void CalculateTangents(const BASE_NS::array_view<const uint8_t>& indices, in CORE3D_BEGIN_NAMESPACE() 75 static void CalculateTangents(const BASE_NS::array_view<const uint16_t>& indices, in CORE3D_BEGIN_NAMESPACE() 80 static void CalculateTangents(const BASE_NS::array_view<const uint32_t>& indices, in CORE3D_BEGIN_NAMESPACE()
|
H A D | mesh_builder.cpp | 868 const auto aa = indices[i]; in SmoothNormal() 869 const auto bb = indices[i + 1]; in SmoothNormal() 870 const auto cc = indices[i + 2]; // 2: index in SmoothNormal() 888 if (indices.buffer.empty()) { in GenerateDefaultNormals() 901 if (indices.stride == sizeof(uint16_t)) { in GenerateDefaultNormals() 903 … reinterpret_cast<const uint16_t*>(indices.buffer.data()), indices.buffer.size() / indices.stride); in GenerateDefaultNormals() 905 } else if (indices.stride == sizeof(uint32_t)) { in GenerateDefaultNormals() 907 … reinterpret_cast<const uint32_t*>(indices.buffer.data()), indices.buffer.size() / indices.stride); in GenerateDefaultNormals() 940 vector<uint8_t> indexData(indices.buffer.size()); in GenerateDefaultTangents() 942 const auto indexCountCount = indices.buffer.size() / indices.stride; in GenerateDefaultTangents() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/nnrt/ |
H A D | _one_hot_v10.md | 6 根据indices指定的位置,生成一个由one-hot向量构成的tensor。 14 - indices,n维tensor。indices中每个元素决定每个one-hot向量,on_value的位置。 24 - output,如果indices时n维tensor,则output是(n+1)维tensor。output的形状由indices和axis共同决定。 38 …量,指定插入one-hot的维度。 indices的形状是[N,C],depth的值是D,当axis=0时,output形状为[D,N,C], indices的形状是[N,C],depth的值是D… 51 …量,指定插入one-hot的维度。 indices的形状是[N,C],depth的值是D,当axis=0时,output形状为[D,N,C], indices的形状是[N,C],depth的值是D…
|
H A D | _one_hot_v20.md | 6 根据indices指定的位置,生成一个由one-hot向量构成的tensor。 14 - indices,n维tensor。indices中每个元素决定每个one-hot向量,on_value的位置。 24 - output,如果indices时n维tensor,则output是(n+1)维tensor。output的形状由indices和axis共同决定。 38 …量,指定插入one-hot的维度。 indices的形状是[N,C],depth的值是D,当axis=0时,output形状为[D,N,C], indices的形状是[N,C],depth的值是D… 51 …量,指定插入one-hot的维度。 indices的形状是[N,C],depth的值是D,当axis=0时,output形状为[D,N,C], indices的形状是[N,C],depth的值是D…
|
/ohos5.0/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/ |
H A D | type_converter.cpp | 30 #define TYPE_CONVERT_ITEMS(input, output, indices) \ argument 32 std::for_each(indices.begin(), indices.end(), [input, output](size_t i) { \ 41 std::vector<size_t> indices(inputSize); in DoCast() local 42 std::iota(indices.begin(), indices.end(), 0); in DoCast() 46 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast() 51 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast() 56 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast() 61 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast() 66 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast() 71 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/ |
H A D | SphereGraph.js | 25 indices = []; 40 const indices = []; 68 this.generateIndices(grid, indices, heightSegments, widthSegments, thetaStart, thetaEnd); 69 this.indices = indices; 73 generateIndices(grid, indices, heightSegments, widthSegments, thetaStart, thetaEnd) { argument 81 indices.push(a, b, d); 84 indices.push(b, c, d);
|
H A D | CubeShape.js | 80 this.indices.push(first, second, first + 1, second, second + 1, first + 1); 103 this.indices.push(first, second, first + 1, second, second + 1, first + 1); 126 this.indices.push(first, second, first + 1, second, second + 1, first + 1); 149 this.indices.push(first, second, first + 1, second, second + 1, first + 1); 172 this.indices.push(first, second, first + 1, second, second + 1, first + 1); 195 this.indices.push(first, second, first + 1, second, second + 1, first + 1); 205 this.indices = []; 233 this.indexBufferData = new Uint8Array(this.indices);
|
H A D | Shape.js | 89 indices = []; 164 gl.drawElements(mode, this.indices.length, gl.UNSIGNED_BYTE, 0);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_structures_common.h | 242 uvec4 indices; member 255 uvec4 indices; member 264 uvec4 indices; member 295 uvec4 indices; member 328 uvec4 indices; member 352 uvec4 indices; member 363 uvec4 indices; member 403 uvec4 indices; member 451 return (indices >> 16); in GetUnpackFlatIndicesInstanceIdx() 456 return (indices & 0xffff); in GetUnpackFlatIndicesCameraIdx() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/vertices_fuzzer/ |
H A D | vertices_fuzzer.cpp | 52 uint16_t* indices = new uint16_t[arr_size]; in VerticesFuzzTest000() local 57 indices[i] = GetObject<uint16_t>(); in VerticesFuzzTest000() 59 …(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors, arr_size, indices); in VerticesFuzzTest000() 60 …(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors, arr_size, indices); in VerticesFuzzTest000() 78 if (indices != nullptr) { in VerticesFuzzTest000() 79 delete [] indices; in VerticesFuzzTest000() 80 indices = nullptr; in VerticesFuzzTest000()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/ |
H A D | panorama_demo.js | 43 let indices; variable 52 indices = new Uint8Array(sphere.indices); 66 gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, indices, gl.STATIC_DRAW); 107 gl.drawElements(gl.TRIANGLES, indices.length, gl.UNSIGNED_BYTE, 0);
|
H A D | shadow_demo.js | 182 let indices = new Uint8Array([0, 1, 2, 0, 2, 3]); 186 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE); 192 o.numIndices = indices.length; 262 let indices = triangleIndices; 267 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE); // indexBuffer 271 o.numIndices = indices.length;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/ |
H A D | panorama2_demo.js | 46 let indices; variable 55 indices = new Uint8Array(sphere.indices); 69 gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, indices, gl.STATIC_DRAW); 110 gl.drawElements(gl.TRIANGLES, indices.length, gl.UNSIGNED_BYTE, 0);
|
H A D | shadow2_demo.js | 184 let indices = new Uint8Array([0, 1, 2, 0, 2, 3]); 188 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE); 194 o.numIndices = indices.length; 264 let indices = triangleIndices; 269 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE); // indexBuffer 273 o.numIndices = indices.length;
|
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | inner_model.cpp | 76 const std::vector<uint32_t>& indices, in ConstructNNTensorsFromLiteGraph() argument 79 if (indices.empty()) { in ConstructNNTensorsFromLiteGraph() 84 uint32_t maximumIndex = *(std::max_element(indices.begin(), indices.end())); in ConstructNNTensorsFromLiteGraph() 91 for (uint32_t i : indices) { in ConstructNNTensorsFromLiteGraph() 382 OH_NN_ReturnCode InnerModel::ValidateTensorArray(const OH_NN_UInt32Array& indices) const in ValidateTensorArray() 384 OH_NN_ReturnCode ret = Validation::ValidateArray(indices.data, indices.size); in ValidateTensorArray() 391 for (uint32_t i = 0; i < indices.size; i++) { in ValidateTensorArray() 392 if (indices.data[i] >= allTensorsSize) { in ValidateTensorArray() 393 …ValidateTensors failed, index %{public}u is out of the number of added tensors.", indices.data[i]); in ValidateTensorArray()
|
/ohos5.0/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
H A D | util.h | 93 struct indices { 94 using next = indices<Indices..., sizeof...(Indices)>; 102 using type = indices<>; 113 ReturnT do_call(FuncType& func, VecType& args, indices<I...>)
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_select_popup_menu_callback_impl.cpp | 32 void ArkWebSelectPopupMenuCallbackImpl::Continue(const ArkWebInt32Vector& indices) in Continue() argument 34 …opup_menu_callback_->Continue(ArkWebBasicVectorStructToClass<int32_t, ArkWebInt32Vector>(indices)); in Continue()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.36/ |
H A D | changelogs-arkgraphics2d.md | 11 1. texs, colors, indices入参应该允许为空,当前不允许为空限制了开发者正常使用该接口进行绘制的能力。 36 | indices | 顶点对应索引的数组指针 | 不允许为空 | 可以为空 |
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_select_popup_menu_callback_wrapper.cpp | 32 void ArkWebSelectPopupMenuCallbackWrapper::Continue(const std::vector<int32_t>& indices) in Continue() argument 34 … ArkWebInt32Vector stIndices = ArkWebBasicVectorClassToStruct<int32_t, ArkWebInt32Vector>(indices); in Continue()
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.36/ |
H A D | changelogs-arkgraphics2d.md | 11 1. The input parameters **texs**, **colors**, and **indices** of the **OH_Drawing_CanvasDrawVertice… 36 | indexCount | Number of indices. | The value must be greater than or equal to 0. | The value must … 37 | indices | Pointer to the array of indexes corresponding to the vertices. | The parameter cannot b…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_vertices.cpp | 41 int indexCount, const uint16_t indices[]) in MakeCopy() argument 74 indexCount, indices); in MakeCopy() 170 return skiaVerticesBuilder_->indices(); in Indices()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcanvas_fuzzer/ |
H A D | canvas_fuzzer.cpp | 355 uint16_t* indices = new uint16_t[indexCount]; in CanvasFuzzTest003() local 357 indices[i] = GetObject<uint16_t>(); in CanvasFuzzTest003() 360 vertexCount, pts, texs, colors, indexCount, indices, in CanvasFuzzTest003() 363 vertexCount, pts, texs, nullptr, indexCount, indices, in CanvasFuzzTest003() 366 vertexCount, pts, texs, colors, indexCount, indices, in CanvasFuzzTest003() 368 if (pts != nullptr || texs != nullptr || colors != nullptr || indices != nullptr) { in CanvasFuzzTest003() 369 delete[] pts, delete[] texs, delete[] colors, delete[] indices; in CanvasFuzzTest003() 370 pts = nullptr, texs = nullptr, colors = nullptr, indices = nullptr; in CanvasFuzzTest003()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/ |
H A D | vertices.cpp | 30 int indexCount, const uint16_t indices[]) in MakeCopy() argument 36 indexCount, indices); in MakeCopy()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | drawing__text__run_8h.md | 24 …art, int64_t length) | Obtains character indices of glyphs within a specified range of a run, wher… 25 ….md#oh_drawing_array) \*stringIndices, size_t index) | Obtains character indices of glyphs in a ru…
|