/external/mesa3d/src/mesa/vbo/ |
vbo_exec_draw.c | 47 GLuint count = exec->vtx.vert_count; 53 exec->vtx.prim_count, 54 exec->vtx.vertex_size); 56 for (i = 0 ; i < exec->vtx.prim_count ; i++) { 57 struct _mesa_prim *prim = &exec->vtx.prim[i]; 77 GLuint nr = exec->vtx.prim[exec->vtx.prim_count-1].count; 79 GLuint sz = exec->vtx.vertex_size; 80 GLfloat *dst = exec->vtx.copied.buffer; 81 const GLfloat *src = (exec->vtx.buffer_map + [all...] |
vbo_exec_api.c | 69 if (exec->vtx.prim_count == 0) { 70 exec->vtx.copied.nr = 0; 71 exec->vtx.vert_count = 0; 72 exec->vtx.buffer_ptr = exec->vtx.buffer_map; 75 GLuint last_begin = exec->vtx.prim[exec->vtx.prim_count-1].begin; 79 GLint i = exec->vtx.prim_count - 1; 81 exec->vtx.prim[i].count = (exec->vtx.vert_count - [all...] |
/external/mesa3d/src/mesa/tnl/ |
t_vertex.c | 40 static GLboolean match_fastpath( struct tnl_clipspace *vtx, 45 if (vtx->attr_count != fp->attr_count) 48 for (j = 0; j < vtx->attr_count; j++) 49 if (vtx->attr[j].format != fp->attr[j].format || 50 vtx->attr[j].inputsize != fp->attr[j].size || 51 vtx->attr[j].vertoffset != fp->attr[j].offset) 55 if (vtx->vertex_size != fp->vertex_size) 58 for (j = 0; j < vtx->attr_count; j++) 59 if (vtx->attr[j].inputstride != fp->attr[j].stride) 66 static GLboolean search_fastpath_emit( struct tnl_clipspace *vtx ) 112 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 158 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 173 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 198 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 206 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 218 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 249 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 265 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 274 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 293 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 366 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 376 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 384 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 399 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 433 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 448 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 467 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 490 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 541 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local [all...] |
t_vertex_generic.c | 874 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); \ 875 struct tnl_clipspace_attr *a = vtx->attr; \ 878 for (i = 0 ; i < count ; i++, v += vtx->vertex_size) { \ 935 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 941 switch (vtx->attr_count) { 943 if (vtx->attr[0].emit == insert_3f_viewport_3) { 944 if (vtx->attr[1].emit == insert_4ub_4f_bgra_4) 946 else if (vtx->attr[1].emit == insert_4ub_4f_rgba_4) 949 else if (vtx->attr[0].emit == insert_3f_3 && 950 vtx->attr[1].emit == insert_4ub_4f_rgba_4) 995 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 1018 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local 1064 struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); local [all...] |
/external/deqp/modules/gles3/functional/ |
es3fShaderIndexingTests.cpp | 223 std::ostringstream vtx; local 224 vtx << "#version 300 es\n"; 225 vtx << "in highp vec4 a_position;\n"; 226 vtx << "in highp vec4 a_coords;\n"; 228 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; 230 vtx << "uniform mediump int ui_four;\n"; 231 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; 232 vtx << "\n"; 233 vtx << "void main()\n"; 234 vtx << "{\n" 338 std::ostringstream vtx; local 444 std::ostringstream vtx; local 604 std::ostringstream vtx; local 804 std::ostringstream vtx; local [all...] |
es3fShaderLoopTests.cpp | 246 std::ostringstream vtx; local 248 std::ostringstream& op = isVertexCase ? vtx : frag; 250 vtx << "#version 300 es\n"; 253 vtx << "in highp vec4 a_position;\n"; 254 vtx << "in highp vec4 a_coords;\n"; 258 vtx << "in mediump float a_one;\n"; 262 vtx << "out mediump vec3 v_color;\n"; 267 vtx << "out mediump vec4 v_coords;\n"; 272 vtx << "out mediump float v_one;\n"; 295 vtx << "\n" 444 std::ostringstream vtx; local [all...] |
es3fShaderSwitchTests.cpp | 91 std::ostringstream vtx; local 93 std::ostringstream& op = isVertex ? vtx : frag; 95 vtx << "#version 300 es\n" 103 vtx << "out mediump vec4 v_color;\n"; 108 vtx << "out highp vec4 v_coords;\n"; 115 vtx << "\n" 138 vtx << " v_color = vec4(res, 1.0);\n"; 143 vtx << " v_coords = a_coords;\n"; 147 vtx << "}\n"; 150 return new ShaderSwitchCase(context, name, desc, isVertex, vtx.str().c_str(), frag.str().c_str() [all...] |
/external/deqp/modules/gles2/functional/ |
es2fShaderIndexingTests.cpp | 253 std::ostringstream vtx; local 254 vtx << "attribute highp vec4 a_position;\n"; 255 vtx << "attribute highp vec4 a_coords;\n"; 257 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; 259 vtx << "uniform mediump int ui_four;\n"; 260 vtx << "varying ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; 261 vtx << "\n"; 262 vtx << "void main()\n"; 263 vtx << "{\n"; 264 vtx << " gl_Position = a_position;\n" 376 std::ostringstream vtx; local 486 std::ostringstream vtx; local 650 std::ostringstream vtx; local 836 std::ostringstream vtx; local [all...] |
es2fShaderAlgorithmTests.cpp | 75 std::ostringstream vtx; local 77 std::ostringstream& op = isVertexCase ? vtx : frag; 79 vtx << "attribute highp vec4 a_position;\n"; 80 vtx << "attribute highp vec4 a_unitCoords;\n"; 84 vtx << "varying mediump vec3 v_color;\n"; 89 vtx << "varying mediump vec4 v_coords;\n"; 95 vtx << "\n"; 96 vtx << "void main()\n"; 97 vtx << "{\n"; 98 vtx << " gl_Position = a_position;\n" [all...] |
es2fShaderLoopTests.cpp | 278 std::ostringstream vtx; local 280 std::ostringstream& op = isVertexCase ? vtx : frag; 282 vtx << "attribute highp vec4 a_position;\n"; 283 vtx << "attribute highp vec4 a_coords;\n"; 286 vtx << "attribute mediump float a_one;\n"; 290 vtx << "varying mediump vec3 v_color;\n"; 295 vtx << "varying mediump vec4 v_coords;\n"; 300 vtx << "varying mediump float v_one;\n"; 323 vtx << "\n"; 324 vtx << "void main()\n" 486 std::ostringstream vtx; local [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/ |
btCapsuleShape.cpp | 48 btVector3 vtx; local 58 vtx = pos +vec*(radius) - vec * getMargin(); 59 newDot = vec.dot(vtx); 63 supVec = vtx; 70 vtx = pos +vec*(radius) - vec * getMargin(); 71 newDot = vec.dot(vtx); 75 supVec = vtx; 94 btVector3 vtx; local 99 vtx = pos +vec*(radius) - vec * getMargin(); 100 newDot = vec.dot(vtx); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderIndexingTests.cpp | 261 std::ostringstream vtx; local 262 vtx << "#version 310 es\n"; 263 vtx << "layout(location = 0) in highp vec4 a_position;\n"; 264 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; 267 vtx << "layout(std140, binding = 0) uniform something0 { mediump int ui_zero; };\n"; 268 vtx << "layout(std140, binding = 1) uniform something1 { mediump int ui_one; };\n"; 269 vtx << "layout(std140, binding = 2) uniform something2 { mediump int ui_two; };\n"; 270 vtx << "layout(std140, binding = 3) uniform something3 { mediump int ui_three; };\n"; 273 vtx << "layout(std140, binding = 4) uniform something { mediump int ui_four; };\n"; 274 vtx << "layout(location = 0) out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n" 391 std::ostringstream vtx; local 508 std::ostringstream vtx; local 679 std::ostringstream vtx; local 884 std::ostringstream vtx; local [all...] |
vktShaderRenderLoopTests.cpp | 308 std::ostringstream vtx; local 310 std::ostringstream& op = isVertexCase ? vtx : frag; 312 vtx << "#version 310 es\n"; 315 vtx << "layout(location=0) in highp vec4 a_position;\n"; 316 vtx << "layout(location=1) in highp vec4 a_coords;\n"; 320 vtx << "layout(location=3) in mediump float a_one;\n"; 324 vtx << "layout(location=0) out mediump vec3 v_color;\n"; 329 vtx << "layout(location=0) out mediump vec4 v_coords;\n"; 334 vtx << "layout(location=1) out mediump float v_one;\n"; 374 vtx << "\n" 530 std::ostringstream vtx; local [all...] |
vktShaderRenderSwitchTests.cpp | 108 std::ostringstream vtx; local 110 std::ostringstream& op = isVertex ? vtx : frag; 112 vtx << "#version 310 es\n" 120 vtx << "layout(location = 0) out mediump vec4 v_color;\n"; 125 vtx << "layout(location = 0) out highp vec4 v_coords;\n"; 132 vtx << "\n" 155 vtx << " v_color = vec4(res, 1.0);\n"; 160 vtx << " v_coords = a_coords;\n"; 164 vtx << "}\n"; 167 return de::MovePtr<ShaderSwitchCase>(new ShaderSwitchCase(testCtx, name, desc, isVertex, vtx.str(), frag.str() [all...] |
/external/opencv3/samples/cpp/ |
fitellipse.cpp | 88 Point2f vtx[4]; local 89 box.points(vtx); 91 line(cimage, vtx[j], vtx[(j+1)%4], Scalar(0,255,0), 1, LINE_AA);
|
minarea.cpp | 51 Point2f center, vtx[4]; local 54 box.points(vtx); 64 line(img, vtx[i], vtx[(i+1)%4], Scalar(0, 255, 0), 1, LINE_AA);
|
/hardware/libhardware/tests/hwc/ |
test-arrows.c | 47 static GLfloat vtx[2 * 3 * 2]; variable 82 vtx[0] = left; 83 vtx[1] = top; 84 vtx[2] = left; 85 vtx[3] = bottom; 86 vtx[4] = right; 87 vtx[5] = bottom; 89 vtx[6] = right; 90 vtx[7] = bottom; 91 vtx[8] = right [all...] |
/external/deqp/modules/gles3/performance/ |
es3pShaderControlStatementTests.cpp | 190 std::ostringstream vtx; local 192 std::ostringstream& op = isVertexCase ? vtx : frag; 194 vtx << "#version 300 es\n"; 195 vtx << "in highp vec4 a_position;\n"; // Position attribute. 196 vtx << "in mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. 197 vtx << "in mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. 204 vtx << "in mediump float a_compareValue;\n"; 211 vtx << "out mediump vec4 v_color;\n"; 216 vtx << "out mediump vec4 v_value0;\n"; 217 vtx << "out mediump vec4 v_value1;\n" 470 std::ostringstream vtx; local 702 std::ostringstream vtx; local [all...] |
/external/deqp/modules/gles2/performance/ |
es2pShaderControlStatementTests.cpp | 190 std::ostringstream vtx; local 192 std::ostringstream& op = isVertexCase ? vtx : frag; 194 vtx << "attribute highp vec4 a_position;\n"; // Position attribute. 195 vtx << "attribute mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. 196 vtx << "attribute mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. 200 vtx << "attribute mediump float a_compareValue;\n"; 207 vtx << "varying mediump vec4 v_color;\n"; 212 vtx << "varying mediump vec4 v_value0;\n"; 213 vtx << "varying mediump vec4 v_value1;\n"; 219 vtx << "varying mediump float v_compareValue;\n" 466 std::ostringstream vtx; local 694 std::ostringstream vtx; local [all...] |
/frameworks/rs/driver/ |
rsdShaderCache.cpp | 77 bool RsdShaderCache::hasArrayUniforms(RsdShader *vtx, RsdShader *frag) { 79 for (uint32_t ct=0; ct < vtx->getUniformCount(); ct++) { 116 RsdShader *vtx = mVertex; local 119 uint32_t vID = vtx->getStateBasedShaderID(rsc); 128 if ((mEntries[ct]->vtx == vID) && (mEntries[ct]->frag == fID)) { 139 ProgramEntry *e = new ProgramEntry(vtx->getAttribCount(), 140 vtx->getUniformCount(), 144 e->vtx = vID; 180 glGetAttribLocation(pgm, vtx->getAttribName(ct).c_str()); 181 e->vtxAttrs[ct].name = vtx->getAttribName(ct).c_str() [all...] |
rsdShaderCache.h | 105 uint32_t numFragUnis) : vtx(0), frag(0), program(0), vtxAttrCount(0), 138 uint32_t vtx; member in struct:RsdShaderCache::ProgramEntry 150 bool hasArrayUniforms(RsdShader *vtx, RsdShader *frag);
|
/external/opencv3/modules/imgproc/src/ |
subdivision2d.cpp | 75 CV_DbgAssert((size_t)vidx < vtx.size()); 76 *orgpt = vtx[vidx].pt; 87 CV_DbgAssert((size_t)vidx < vtx.size()); 88 *dstpt = vtx[vidx].pt; 96 CV_DbgAssert((size_t)vertex < vtx.size()); 98 *firstEdge = vtx[vertex].firstEdge; 99 return vtx[vertex].pt; 183 vtx[orgPt].firstEdge = edge; 184 vtx[dstPt].firstEdge = edge ^ 2; 258 vtx.push_back(Vertex()) [all...] |
/external/mesa3d/src/mesa/drivers/dri/r200/ |
r200_maos_arrays.c | 190 if (vfmt0 != rmesa->hw.vtx.cmd[VTX_VTXFMT_0] || 191 vfmt1 != rmesa->hw.vtx.cmd[VTX_VTXFMT_1]) { 192 R200_STATECHANGE( rmesa, vtx ); 193 rmesa->hw.vtx.cmd[VTX_VTXFMT_0] = vfmt0; 194 rmesa->hw.vtx.cmd[VTX_VTXFMT_1] = vfmt1;
|
/external/opencv3/modules/core/test/ |
test_ds.cpp | 171 CvTsSimpleSet* vtx; member in struct:CvTsSimpleGraph 177 int max_vtx_count = graph->vtx->max_count; 178 cvTsClearSimpleSet( graph->vtx ); 191 graph->vtx = cvTsCreateSimpleSet( max_vtx_count, vtx_size ); 205 cvTsReleaseSimpleSet( &(graph[0]->vtx) ); 213 return cvTsSimpleSetAdd( graph->vtx, vertex ); 219 int i, max_vtx_count = graph->vtx->max_count; 221 cvTsSimpleSetRemove( graph->vtx, index ); 236 assert( cvTsSimpleSetFind( graph->vtx, idx1 ) && 237 cvTsSimpleSetFind( graph->vtx, idx2 )) 1448 CvGraphVtx *vtx = 0, *vtx2 = 0, *vtx3 = 0; local [all...] |
/external/deqp/modules/internal/ |
ditFrameworkTests.cpp | 590 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); 591 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 592 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 600 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 601 c.vtx[1] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 602 c.vtx[2] = tcu::Vec4(+1.0f, +1.0f, 0.5f, 1.0f); 609 c.vtx[0] = tcu::Vec4(-1.0f, -1.0f, 0.5f, 1.0f); 610 c.vtx[1] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f); 611 c.vtx[2] = tcu::Vec4(+1.0f, -1.0f, 0.5f, 1.0f); 618 c.vtx[0] = tcu::Vec4(-1.0f, +1.0f, 0.5f, 1.0f) 678 tcu::Vec4 vtx[3]; member in struct:dit::__anon9911::ConstantInterpolationTest::SubCase [all...] |