Home
last modified time | relevance | path

Searched refs:vtx (Results 1 – 18 of 18) sorted by relevance

/frameworks/rs/driver/
DrsdPath.cpp53 DrvPathStatic(const Allocation *vtx, const Allocation *loops);
73 const Allocation *vtx, const Allocation *loops) { in rsdPathInitStatic() argument
77 DrvPathStatic *dps = new DrvPathStatic(vtx, loops); in rsdPathInitStatic()
112 DrvPathStatic::DrvPathStatic(const Allocation *vtx, const Allocation *loops) { in DrvPathStatic() argument
113 mSegmentCount = vtx->getType()->getDimX() / 3; in DrvPathStatic()
140 float vtx[12]; in draw() local
153 attribs[0].set(GL_FLOAT, 2, 8, false, (uint32_t)vtx, "ATTRIB_position"); in draw()
162 vtx[0] = s->x1; in draw()
163 vtx[1] = s->y1; in draw()
164 vtx[2] = s->xc; in draw()
[all …]
DrsdShaderCache.cpp70 bool RsdShaderCache::hasArrayUniforms(RsdShader *vtx, RsdShader *frag) { in hasArrayUniforms() argument
72 for (uint32_t ct=0; ct < vtx->getUniformCount(); ct++) { in hasArrayUniforms()
109 RsdShader *vtx = mVertex; in link() local
112 uint32_t vID = vtx->getStateBasedShaderID(rsc); in link()
121 if ((mEntries[ct]->vtx == vID) && (mEntries[ct]->frag == fID)) { in link()
132 ProgramEntry *e = new ProgramEntry(vtx->getAttribCount(), in link()
133 vtx->getUniformCount(), in link()
137 e->vtx = vID; in link()
172 e->vtxAttrs[ct].slot = glGetAttribLocation(pgm, vtx->getAttribName(ct)); in link()
173 e->vtxAttrs[ct].name = vtx->getAttribName(ct).string(); in link()
[all …]
DrsdShaderCache.h100 uint32_t numFragUnis) : vtx(0), frag(0), program(0), vtxAttrCount(0), in ProgramEntry()
133 uint32_t vtx; member
145 bool hasArrayUniforms(RsdShader *vtx, RsdShader *frag);
DrsdGL.cpp549 float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4}; in rsdGLDrawQuadTexCoords() local
553 attribs[0].set(GL_FLOAT, 3, 12, false, (uint32_t)vtx, "ATTRIB_position"); in rsdGLDrawQuadTexCoords()
DrsdRuntimeStubs.cpp252 float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4}; in SC_DrawQuadTexCoords() local
256 attribs[0].set(GL_FLOAT, 3, 12, false, (uint32_t)vtx, "ATTRIB_position"); in SC_DrawQuadTexCoords()
/frameworks/base/graphics/java/android/renderscript/
DPath.java44 Path(int id, RenderScript rs, Primitive p, Allocation vtx, Allocation loop, float q) { in Path() argument
46 mVertexBuffer = vtx; in Path()
69 … public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createStaticPath() argument
70 int id = rs.nPathCreate(p.mID, false, vtx.getID(rs), 0, quality); in createStaticPath()
75 …public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx, A… in createStaticPath() argument
79 …public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createDynamicPath() argument
83 … createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { in createDynamicPath() argument
DMesh.java352 int[] vtx = new int[mVertexTypeCount]; in create() local
369 vtx[ct] = alloc.getID(mRS); in create()
388 int id = mRS.nMeshCreate(vtx, idx, prim); in create()
508 int[] vtx = new int[mVertexTypeCount]; in create() local
519 vtx[ct] = entry.a.getID(mRS); in create()
532 int id = mRS.nMeshCreate(vtx, idx, prim); in create()
DRenderScript.java657 native int rsnMeshCreate(int con, int[] vtx, int[] idx, int[] prim); in rsnMeshCreate() argument
658 synchronized int nMeshCreate(int[] vtx, int[] idx, int[] prim) { in nMeshCreate() argument
660 return rsnMeshCreate(mContext, vtx, idx, prim); in nMeshCreate()
683 native int rsnPathCreate(int con, int prim, boolean isStatic, int vtx, int loop, float q); in rsnPathCreate() argument
684 synchronized int nPathCreate(int prim, boolean isStatic, int vtx, int loop, float q) { in nPathCreate() argument
686 return rsnPathCreate(mContext, prim, isStatic, vtx, loop, q); in nPathCreate()
/frameworks/rs/
DrsPath.cpp28 Allocation *vtx, Allocation *loops, float quality) in Path() argument
36 rsc->mHal.funcs.path.initStatic(rsc, this, vtx, loops); in Path()
74 RsAllocation vtx, RsAllocation loops, float quality) { in rsi_PathCreate() argument
75 return new Path(rsc, pp, isStatic, (Allocation *)vtx, (Allocation *)loops, quality); in rsi_PathCreate()
DrsPath.h41 Path(Context *, RsPathPrimitive pp, bool isStatic, Allocation *vtx, Allocation *loop, float q);
DrsMesh.cpp273 RsAllocation * vtx, size_t vtxCount, in rsi_MeshCreate() argument
281 sm->setVertexBuffer((Allocation*)vtx[i], i); in rsi_MeshCreate()
Drs_hal.h250 …bool (*initStatic)(const Context *rsc, const Path *m, const Allocation *vtx, const Allocation *loo…
Drs.spec470 param RsAllocation *vtx
/frameworks/base/services/java/com/android/server/power/
DElectronBeam.java341 private static void setVStretchQuad(FloatBuffer vtx, float dw, float dh, float a) { in setVStretchQuad() argument
346 setQuad(vtx, x, y, w, h); in setVStretchQuad()
349 private static void setHStretchQuad(FloatBuffer vtx, float dw, float dh, float a) { in setHStretchQuad() argument
354 setQuad(vtx, x, y, w, h); in setHStretchQuad()
357 private static void setQuad(FloatBuffer vtx, float x, float y, float w, float h) { in setQuad() argument
361 vtx.put(0, x); in setQuad()
362 vtx.put(1, y); in setQuad()
363 vtx.put(2, x); in setQuad()
364 vtx.put(3, y + h); in setQuad()
365 vtx.put(4, x + w); in setQuad()
[all …]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
Dui_test.rs238 Particle_t *vtx = Particles;
241 vtx->position.x = vtx->position.x + gSpeed[i];
242 vtx++;
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp159 static const float vtx[] = { in setupVA() local
185 glVertexAttribPointer(A_POS, 2, GL_FLOAT, false, 8, vtx); in setupVA()
/frameworks/support/renderscript/v8/rs_support/
Drs_hal.h249 …bool (*initStatic)(const Context *rsc, const Path *m, const Allocation *vtx, const Allocation *loo…
/frameworks/native/opengl/libagl/
Dprimitives.cpp393 vertex_t* const vtx[3] = { v0, v1, v2 }; in fetch_texcoord_impl() local
401 vertex_t* const v = vtx[j]; in fetch_texcoord_impl()