/third_party/skia/third_party/externals/angle2/util/ |
H A D | geometry_utils.cpp | 47 result->indices.clear(); in CreateSphereGeometry() 48 result->indices.reserve(indexCount); in CreateSphereGeometry() 53 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry() 54 result->indices.push_back(static_cast<unsigned short>((i + 1) * (sliceCount + 1) + j)); in CreateSphereGeometry() 55 result->indices.push_back( in CreateSphereGeometry() 58 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry() 59 result->indices.push_back( in CreateSphereGeometry() 61 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry() 146 result->indices.resize(36); in GenerateCubeGeometry() 147 result->indices[ in GenerateCubeGeometry() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_intrinsics.py | 46 indices, flags, sysval, bit_sizes): 56 - indices: list of constant indicies 66 assert isinstance(indices, list) 67 if indices: 68 assert isinstance(indices[0], Index) 85 self.num_indices = len(indices) 86 self.indices = indices 118 def intrinsic(name, src_comp=[], dest_comp=-1, indices=[], 122 indices, flag 370 indices=[MEMORY_SCOPE]) global() variable 566 indices=[CALL_IDX, STACK_SIZE]) global() variable 676 indices=[DESC_SET, BINDING, DESC_TYPE], global() variable 1112 indices=[WRITE_MASK, ACCESS, ALIGN_MUL, ALIGN_OFFSET]) global() variable 1399 indices=[ALIGN_MUL, ALIGN_OFFSET], global() variable [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | utilities_unittest.cpp | 16 // Test parsing valid single array indices 19 std::vector<unsigned int> indices; in TEST() local 20 EXPECT_EQ("foo", gl::ParseResourceName("foo[123]", &indices)); in TEST() 21 ASSERT_EQ(1u, indices.size()); in TEST() 22 EXPECT_EQ(123u, indices[0]); in TEST() 24 EXPECT_EQ("bar", gl::ParseResourceName("bar[0]", &indices)); in TEST() 25 ASSERT_EQ(1u, indices.size()); in TEST() 26 EXPECT_EQ(0u, indices[0]); in TEST() 32 std::vector<unsigned int> indices; in TEST() local 33 EXPECT_EQ("foo", gl::ParseResourceName("foo[-1]", &indices)); in TEST() 41 std::vector<unsigned int> indices; TEST() local 55 std::vector<unsigned int> indices; TEST() local 67 std::vector<unsigned int> indices; TEST() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_slice.py | 1 # tests for slice objects; in particular the indices method. 24 "slice indices must be integers or " 29 Reference implementation for the slice.indices method. 63 # Class providing an __index__ method. Used for testing slice.indices. 145 actual = slice.indices(length) 155 actual = range(*slice.indices(length)) 160 self.assertEqual(slice(None ).indices(10), (0, 10, 1)) 161 self.assertEqual(slice(None, None, 2).indices(10), (0, 10, 2)) 162 self.assertEqual(slice(1, None, 2).indices(10), (1, 10, 2)) 163 self.assertEqual(slice(None, None, -1).indices(1 [all...] |
/third_party/node/deps/base64/base64/lib/arch/neon32/ |
H A D | enc_translate.c | 14 uint8x16x4_t indices, mask, delta, out; in enc_translate() local 24 // Create LUT indices from input: in enc_translate() 26 indices.val[0] = vqsubq_u8(in.val[0], offset); in enc_translate() 27 indices.val[1] = vqsubq_u8(in.val[1], offset); in enc_translate() 28 indices.val[2] = vqsubq_u8(in.val[2], offset); in enc_translate() 29 indices.val[3] = vqsubq_u8(in.val[3], offset); in enc_translate() 37 // Subtract -1, so add 1 to indices for range #[1..4], All indices are in enc_translate() 39 indices.val[0] = vsubq_u8(indices in enc_translate() [all...] |
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_prim_vbuf.c | 160 sp_vbuf_draw_elements(struct vbuf_render *vbr, const ushort *indices, uint nr) in sp_vbuf_draw_elements() argument 174 get_vert(vertex_buffer, indices[i-0], stride) ); in sp_vbuf_draw_elements() 181 get_vert(vertex_buffer, indices[i-1], stride), in sp_vbuf_draw_elements() 182 get_vert(vertex_buffer, indices[i-0], stride) ); in sp_vbuf_draw_elements() 189 get_vert(vertex_buffer, indices[i-1], stride), in sp_vbuf_draw_elements() 190 get_vert(vertex_buffer, indices[i-0], stride) ); in sp_vbuf_draw_elements() 197 get_vert(vertex_buffer, indices[i-1], stride), in sp_vbuf_draw_elements() 198 get_vert(vertex_buffer, indices[i-0], stride) ); in sp_vbuf_draw_elements() 202 get_vert(vertex_buffer, indices[nr-1], stride), in sp_vbuf_draw_elements() 203 get_vert(vertex_buffer, indices[ in sp_vbuf_draw_elements() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | LineLoopTest.cpp | 148 static const GLubyte indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P() local 149 runTest(GL_UNSIGNED_BYTE, 0, indices + 1); in TEST_P() 157 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P() local 158 runTest(GL_UNSIGNED_SHORT, 0, indices + 1); in TEST_P() 171 static const GLuint indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P() local 172 runTest(GL_UNSIGNED_INT, 0, indices + 1); in TEST_P() 180 static const GLubyte indices[] = {0, 7, 6, 9, 8, 0}; in TEST_P() local 184 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW); in TEST_P() 194 static const GLushort indices[] in TEST_P() local 213 static const GLuint indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 231 static const GLubyte indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 258 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 290 static const GLuint indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 487 runTest(GLenum indexType, const void *indices, GLuint indicesSize, GLuint firstIndex, bool useBuffersAsUboFirst) runTest() argument 599 static const GLubyte indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 614 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 633 static const GLubyte indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local 652 static const GLushort indices[] = {0, 7, 6, 9, 8, 0}; TEST_P() local [all...] |
H A D | BuiltinVariableTest.cpp | 80 void runTest(GLuint drawMode, const std::vector<GLint> &indices, int count) in runTest() argument 87 glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(GLint) * indices.size(), indices.data(), in runTest() 177 std::vector<GLint> indices; in TEST_P() local 178 indices.push_back(0); in TEST_P() 179 indices.push_back(1); in TEST_P() 180 indices.push_back(3); in TEST_P() 181 indices.push_back(2); in TEST_P() 182 runTest(GL_TRIANGLE_FAN, indices, 4); in TEST_P() 188 std::vector<GLint> indices; in TEST_P() local [all...] |
/third_party/python/Lib/idlelib/ |
H A D | parenmatch.py | 78 indices = (HyperParser(self.editwin, "insert") 80 self.finish_paren_event(indices) 92 indices = hp.get_surrounding_brackets(_openers[closer], True) 93 self.finish_paren_event(indices) 96 def finish_paren_event(self, indices): 97 if indices is None and self.BELL: 101 # self.create_tag(indices) 102 self.tagfuncs.get(self.STYLE, self.create_tag_expression)(self, indices) 120 def create_tag_opener(self, indices): 122 self.text.tag_add("paren", indices[ [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_setup_vbuf.c | 165 lp_setup_draw_elements(struct vbuf_render *vbr, const ushort *indices, uint nr) in lp_setup_draw_elements() argument 185 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements() 192 get_vert(vertex_buffer, indices[i-1], stride), in lp_setup_draw_elements() 193 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements() 200 get_vert(vertex_buffer, indices[i-1], stride), in lp_setup_draw_elements() 201 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements() 208 get_vert(vertex_buffer, indices[i-1], stride), in lp_setup_draw_elements() 209 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements() 213 get_vert(vertex_buffer, indices[nr-1], stride), in lp_setup_draw_elements() 214 get_vert(vertex_buffer, indices[ in lp_setup_draw_elements() [all...] |
H A D | lp_tex_sample.c | 122 LLVMValueRef indices[4]; in lp_llvm_texture_member() local 127 indices[0] = lp_build_const_int32(gallivm, 0); in lp_llvm_texture_member() 129 indices[1] = lp_build_const_int32(gallivm, LP_JIT_CTX_TEXTURES); in lp_llvm_texture_member() 131 indices[2] = lp_build_const_int32(gallivm, texture_unit); in lp_llvm_texture_member() 133 indices[2] = LLVMBuildAdd(gallivm->builder, indices[2], in lp_llvm_texture_member() 137 indices[2], in lp_llvm_texture_member() 140 indices[2] = LLVMBuildSelect(gallivm->builder, cond, indices[2], in lp_llvm_texture_member() 145 indices[ in lp_llvm_texture_member() 212 LLVMValueRef indices[4]; lp_llvm_sampler_member() local 274 LLVMValueRef indices[4]; lp_llvm_image_member() local [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | glthread_draw.c | 64 const GLvoid **indices) in upload_indices() 71 _mesa_glthread_upload(ctx, *indices, index_size * count, in upload_indices() 74 *indices = (const GLvoid*)(intptr_t)upload_offset; in upload_indices() 82 const GLsizei *count, const GLvoid *const *indices, in upload_multi_indices() 101 memcpy(upload_ptr + offset, indices[i], size); in upload_multi_indices() 575 const GLvoid *indices; member 592 const GLvoid *indices = cmd->indices; in _mesa_unmarshal_DrawElementsInstancedARB() local 598 (mode, count, type, indices, in _mesa_unmarshal_DrawElementsInstancedARB() 613 const GLvoid *indices; member 63 upload_indices(struct gl_context *ctx, unsigned count, unsigned index_size, const GLvoid **indices) upload_indices() argument 80 upload_multi_indices(struct gl_context *ctx, unsigned total_count, unsigned index_size, unsigned draw_count, const GLsizei *count, const GLvoid *const *indices, const GLvoid **out_indices) upload_multi_indices() argument 624 const GLvoid *indices = cmd->indices; _mesa_unmarshal_DrawRangeElementsBaseVertex() local 636 draw_elements_async(struct gl_context *ctx, GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count, GLint basevertex, GLuint baseinstance, bool index_bounds_valid, GLuint min_index, GLuint max_index) draw_elements_async() argument 681 const GLvoid *indices; global() member 699 const GLvoid *indices = cmd->indices; _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance() local 743 draw_elements_async_user(struct gl_context *ctx, GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count, GLint basevertex, GLuint baseinstance, bool index_bounds_valid, GLuint min_index, GLuint max_index, struct gl_buffer_object *index_buffer, unsigned user_buffer_mask, const struct glthread_attrib_binding *buffers) draw_elements_async_user() argument 775 draw_elements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count, GLint basevertex, GLuint baseinstance, bool index_bounds_valid, GLuint min_index, GLuint max_index, bool compiled_into_dlist) draw_elements() argument 908 const GLvoid *const *indices = (const GLvoid *const *)variable_data; _mesa_unmarshal_MultiDrawElementsBaseVertex() local 949 multi_draw_elements_async(struct gl_context *ctx, GLenum mode, const GLsizei *count, GLenum type, const GLvoid *const *indices, GLsizei draw_count, const GLsizei *basevertex, struct gl_buffer_object *index_buffer, unsigned user_buffer_mask, const struct glthread_attrib_binding *buffers) multi_draw_elements_async() argument 996 _mesa_marshal_MultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid *const *indices, GLsizei draw_count, const GLsizei *basevertex) _mesa_marshal_MultiDrawElementsBaseVertex() argument 1168 _mesa_marshal_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) _mesa_marshal_DrawElements() argument 1175 _mesa_marshal_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) _mesa_marshal_DrawRangeElements() argument 1183 _mesa_marshal_DrawElementsInstancedARB(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count) _mesa_marshal_DrawElementsInstancedARB() argument 1190 _mesa_marshal_DrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex) _mesa_marshal_DrawElementsBaseVertex() argument 1197 _mesa_marshal_DrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex) _mesa_marshal_DrawRangeElementsBaseVertex() argument 1205 _mesa_marshal_DrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count, GLint basevertex) _mesa_marshal_DrawElementsInstancedBaseVertex() argument 1213 _mesa_marshal_DrawElementsInstancedBaseInstance(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count, GLuint baseinstance) _mesa_marshal_DrawElementsInstancedBaseInstance() argument 1221 _mesa_marshal_DrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instance_count, GLint basevertex, GLuint baseinstance) _mesa_marshal_DrawElementsInstancedBaseVertexBaseInstance() argument 1230 _mesa_marshal_MultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid *const *indices, GLsizei draw_count) _mesa_marshal_MultiDrawElementsEXT() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkVertState.cpp | 23 const uint16_t* indices = state->fIndices; in TrianglesX() local 28 state->f0 = indices[index + 0]; in TrianglesX() 29 state->f1 = indices[index + 1]; in TrianglesX() 30 state->f2 = indices[index + 2]; in TrianglesX() 53 const uint16_t* indices = state->fIndices; in TriangleStripX() local 58 state->f2 = indices[index + 2]; in TriangleStripX() 60 state->f0 = indices[index + 1]; in TriangleStripX() 61 state->f1 = indices[index + 0]; in TriangleStripX() 63 state->f0 = indices[index + 0]; in TriangleStripX() 64 state->f1 = indices[inde in TriangleStripX() 83 const uint16_t* indices = state->fIndices; TriangleFanX() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_llvm_sample.c | 112 LLVMValueRef indices[4]; in draw_llvm_texture_member() local 119 indices[0] = lp_build_const_int32(gallivm, 0); in draw_llvm_texture_member() 121 indices[1] = lp_build_const_int32(gallivm, DRAW_JIT_CTX_TEXTURES); in draw_llvm_texture_member() 123 indices[2] = lp_build_const_int32(gallivm, texture_unit); in draw_llvm_texture_member() 125 indices[2] = LLVMBuildAdd(gallivm->builder, indices[2], texture_unit_offset, ""); in draw_llvm_texture_member() 126 LLVMValueRef cond = LLVMBuildICmp(gallivm->builder, LLVMIntULT, indices[2], lp_build_const_int32(gallivm, PIPE_MAX_SHADER_SAMPLER_VIEWS), ""); in draw_llvm_texture_member() 127 indices[2] = LLVMBuildSelect(gallivm->builder, cond, indices[2], lp_build_const_int32(gallivm, texture_unit), ""); in draw_llvm_texture_member() 130 indices[ in draw_llvm_texture_member() 163 LLVMValueRef indices[4]; draw_llvm_sampler_member() local 209 LLVMValueRef indices[4]; draw_llvm_image_member() local [all...] |
H A D | draw_prim_assembler.c | 111 unsigned *indices, unsigned num_indices) in copy_verts() 119 unsigned idx = indices[i]; in copy_verts() 157 unsigned indices[1]; in prim_point() local 162 indices[0] = idx; in prim_point() 165 copy_verts(asmblr, indices, 1); in prim_point() 172 unsigned indices[2]; in prim_line() local 178 indices[0] = i0; in prim_line() 179 indices[1] = i1; in prim_line() 182 copy_verts(asmblr, indices, 2); in prim_line() 189 unsigned indices[ in prim_tri() local 110 copy_verts(struct draw_assembler *asmblr, unsigned *indices, unsigned num_indices) copy_verts() argument 209 unsigned indices[4]; prim_quad() local [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fNegativeVertexArrayApiTests.cpp | 537 GLbyte indices[1] = {0}; in draw_elements() local 547 ctx.glDrawElements(-1, 1, GL_UNSIGNED_BYTE, indices); in draw_elements() 552 ctx.glDrawElements(GL_POINTS, 1, -1, indices); in draw_elements() 554 ctx.glDrawElements(GL_POINTS, 1, GL_FLOAT, indices); in draw_elements() 559 ctx.glDrawElements(GL_POINTS, -1, GL_UNSIGNED_BYTE, indices); in draw_elements() 567 ctx.glDrawElements(GL_POINTS, 1, GL_UNSIGNED_BYTE, indices); in draw_elements() 591 ctx.glDrawElements(GL_POINTS, 1, GL_UNSIGNED_BYTE, indices); in draw_elements() 595 ctx.glDrawElements(GL_POINTS, 1, GL_UNSIGNED_BYTE, indices); in draw_elements() 612 GLbyte indices[1] = {0}; in draw_elements_invalid_program() local 616 ctx.glDrawElements(-1, 1, GL_UNSIGNED_BYTE, indices); in draw_elements_invalid_program() 651 GLbyte indices[1] = {0}; draw_elements_incomplete_primitive() local 733 GLuint indices[1] = {0}; draw_elements_base_vertex() local 768 GLuint indices[1] = {0}; draw_elements_base_vertex_primitive_mode_mismatch() local 902 GLbyte indices[1] = {0}; draw_elements_instanced() local 981 GLbyte indices[1] = {0}; draw_elements_instanced_invalid_program() local 1025 GLbyte indices[1] = {0}; draw_elements_instanced_incomplete_primitive() local 1106 GLbyte indices[1] = {0}; draw_elements_instanced_base_vertex() local 1152 GLuint indices[1] = {0}; draw_elements_instanced_base_vertex_primitive_mode_mismatch() local 1174 GLbyte indices[1] = {0}; draw_range_elements() local 1255 GLbyte indices[1] = {0}; draw_range_elements_invalid_program() local 1299 GLbyte indices[1] = {0}; draw_range_elements_incomplete_primitive() local 1380 GLbyte indices[1] = {0}; draw_range_elements_base_vertex() local 1429 GLuint indices[1] = {0}; draw_range_elements_base_vertex_primitive_mode_mismatch() local [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gles31/ |
H A D | es31cProgramInterfaceQueryTests.cpp | 181 std::map<std::string, GLuint>& indices, const std::string& name, in VerifyGetProgramResourceIndex() 192 std::map<std::string, GLuint>::iterator it = indices.begin(); in VerifyGetProgramResourceIndex() 193 while (it != indices.end()) in VerifyGetProgramResourceIndex() 204 indices[name] = res; in VerifyGetProgramResourceIndex() 700 std::map<std::string, GLuint> indices; in Run() local 701 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "a", error); in Run() 702 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "b", error); in Run() 703 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "c", error); in Run() 704 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "d", error); in Run() 705 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, " in Run() 180 VerifyGetProgramResourceIndex(GLuint program, GLenum programInterface, std::map<std::string, GLuint>& indices, const std::string& name, long& error) VerifyGetProgramResourceIndex() argument 796 std::map<std::string, GLuint> indices; Run() local 868 std::map<std::string, GLuint> indices; Run() local 963 std::map<std::string, GLuint> indices; Run() local 1047 std::map<std::string, GLuint> indices; Run() local 1171 std::map<std::string, GLuint> indices; Run() local 1639 std::map<std::string, GLuint> indices; Run() local 1732 std::map<std::string, GLuint> indices; Run() local 2656 std::map<std::string, GLuint> indices; Run() local 3383 std::map<std::string, GLuint> indices; Run() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | CompactCharArray.java | 29 * array contains the indices of Unicode characters to the value array. 69 indices = new char[INDEXCOUNT]; in CompactCharArray() 75 indices[i] = (char)(i<<BLOCKSHIFT); in CompactCharArray() 85 * @param indexArray the indices of the compact array. 103 indices = indexArray; in CompactCharArray() 111 * @param indexArray the RLE-encoded indices of the compact array. 137 int ix = (indices[index >> BLOCKSHIFT] & 0xFFFF) in elementAt() 205 for (int i = 0; i < indices.length; ++i, iBlockStart += BLOCKCOUNT) { in compact() 206 indices[i] = 0xFFFF; in compact() 212 indices[ in compact() 428 private char indices[]; global() field in CompactCharArray [all...] |
H A D | CompactByteArray.java | 27 * array contains the indices of Unicode characters to the value array. 68 indices = new char[INDEXCOUNT]; in CompactByteArray() 74 indices[i] = (char)(i<<BLOCKSHIFT); in CompactByteArray() 84 * @param indexArray the indices of the compact array. 102 indices = indexArray; in CompactByteArray() 110 * @param indexArray the RLE-encoded indices of the compact array. 136 return (values[(indices[index >> BLOCKSHIFT] & 0xFFFF) in elementAt() 201 for (int i = 0; i < indices.length; ++i, iBlockStart += BLOCKCOUNT) { in compact() 202 indices[i] = 0xFFFF; in compact() 208 indices[ in compact() 401 private char indices[]; global() field in CompactByteArray [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | CompactCharArray.java | 71 indices = new char[INDEXCOUNT]; in CompactCharArray() 77 indices[i] = (char)(i<<BLOCKSHIFT); in CompactCharArray() 105 indices = indexArray; in CompactCharArray() 139 int ix = (indices[index >> BLOCKSHIFT] & 0xFFFF) in elementAt() 207 for (int i = 0; i < indices.length; ++i, iBlockStart += BLOCKCOUNT) { in compact() 208 indices[i] = 0xFFFF; in compact() 214 indices[i] = iUntouched; in compact() 222 indices[i] = indices[j]; in compact() 225 if (indices[ in compact() 430 private char indices[]; global() field in CompactCharArray [all...] |
H A D | CompactByteArray.java | 70 indices = new char[INDEXCOUNT]; in CompactByteArray() 76 indices[i] = (char)(i<<BLOCKSHIFT); in CompactByteArray() 104 indices = indexArray; in CompactByteArray() 138 return (values[(indices[index >> BLOCKSHIFT] & 0xFFFF) in elementAt() 203 for (int i = 0; i < indices.length; ++i, iBlockStart += BLOCKCOUNT) { in compact() 204 indices[i] = 0xFFFF; in compact() 210 indices[i] = iUntouched; in compact() 219 indices[i] = (char)jBlockStart; in compact() 223 if (indices[i] == 0xFFFF) { in compact() 227 indices[ in compact() 403 private char indices[]; global() field in CompactByteArray [all...] |
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_struct.c | 51 LLVMValueRef indices[2]; in lp_build_struct_get_ptr() local 56 indices[0] = lp_build_const_int32(gallivm, 0); in lp_build_struct_get_ptr() 57 indices[1] = lp_build_const_int32(gallivm, member); in lp_build_struct_get_ptr() 58 member_ptr = LLVMBuildGEP(gallivm->builder, ptr, indices, ARRAY_SIZE(indices), ""); in lp_build_struct_get_ptr() 86 LLVMValueRef indices[2]; in lp_build_struct_get_ptr2() local 91 indices[0] = lp_build_const_int32(gallivm, 0); in lp_build_struct_get_ptr2() 92 indices[1] = lp_build_const_int32(gallivm, member); in lp_build_struct_get_ptr2() 93 member_ptr = LLVMBuildGEP2(gallivm->builder, ptr_type, ptr, indices, ARRAY_SIZE(indices), ""); in lp_build_struct_get_ptr2() 120 LLVMValueRef indices[2]; lp_build_array_get_ptr() local [all...] |
/third_party/skia/third_party/externals/angle2/samples/torus_lighting/ |
H A D | torus.h | 20 std::vector<GLushort> indices; in GenerateTorus() local 30 indices.push_back(a); in GenerateTorus() 31 indices.push_back(c); in GenerateTorus() 32 indices.push_back(b); in GenerateTorus() 34 indices.push_back(b); in GenerateTorus() 35 indices.push_back(c); in GenerateTorus() 36 indices.push_back(d); in GenerateTorus() 39 *indexCount = static_cast<GLsizei>(indices.size()); in GenerateTorus() 84 glBufferData(GL_ELEMENT_ARRAY_BUFFER, indices.size() * sizeof(GLushort), indices in GenerateTorus() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cProgramInterfaceQueryTests.cpp | 233 std::map<std::string, GLuint>& indices, const std::string& name, in VerifyGetProgramResourceIndex() 244 std::map<std::string, GLuint>::iterator it = indices.begin(); in VerifyGetProgramResourceIndex() 245 while (it != indices.end()) in VerifyGetProgramResourceIndex() 256 indices[name] = res; in VerifyGetProgramResourceIndex() 595 std::map<std::string, GLuint> indices; in Run() local 596 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "a", error); in Run() 597 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "b", error); in Run() 598 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "c[0]", error); in Run() 599 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, "d", error); in Run() 600 VerifyGetProgramResourceIndex(program, GL_PROGRAM_INPUT, indices, " in Run() 232 VerifyGetProgramResourceIndex(GLuint program, GLenum programInterface, std::map<std::string, GLuint>& indices, const std::string& name, long& error) VerifyGetProgramResourceIndex() argument 709 std::map<std::string, GLuint> indices; Run() local 854 std::map<std::string, GLuint> indices; Run() local 923 std::map<std::string, GLuint> indices; Run() local 1009 std::map<std::string, GLuint> indices; Run() local 1119 std::map<std::string, GLuint> indices; Run() local 1286 std::map<std::string, GLuint> indices; Run() local 1417 std::map<std::string, GLuint> indices; Run() local 1868 std::map<std::string, GLuint> indices; Run() local 3348 std::map<std::string, GLuint> indices; Run() local 3503 std::map<std::string, GLuint> indices; Run() local [all...] |
/third_party/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_prim_vbuf.c | 79 size_t vbo_index; /**< index offset to be added to all indices */ 82 size_t vbo_max_index; /**< index offset to be added to all indices */ 436 mesa_loge("i915: Failed to allocate space for %d indices in fresh " in draw_arrays_fallback() 497 * Used for normal and fallback emitting of indices 501 draw_generate_indices(struct vbuf_render *render, const ushort *indices, in draw_generate_indices() argument 512 OUT_BATCH((o + indices[i]) | (o + indices[i + 1]) << 16); in draw_generate_indices() 515 OUT_BATCH((o + indices[i])); in draw_generate_indices() 521 OUT_BATCH((o + indices[i - 1]) | (o + indices[ in draw_generate_indices() 567 i915_vbuf_render_draw_elements(struct vbuf_render *render, const ushort *indices, uint32_t nr_indices) i915_vbuf_render_draw_elements() argument [all...] |