Home
last modified time | relevance | path

Searched refs:pv (Results 1 – 16 of 16) sorted by relevance

/frameworks/rs/driver/
DrsdProgram.cpp36 bool rsdProgramVertexInit(const Context *rsc, const ProgramVertex *pv, in rsdProgramVertexInit() argument
40 RsdShader *drv = new RsdShader(pv, GL_VERTEX_SHADER, shader, shaderLen, in rsdProgramVertexInit()
42 pv->mHal.drv = drv; in rsdProgramVertexInit()
60 void rsdProgramVertexSetActive(const Context *rsc, const ProgramVertex *pv) { in rsdProgramVertexSetActive() argument
63 SyncProgramConstants(rsc, pv); in rsdProgramVertexSetActive()
64 dc->gl.shaderCache->setActiveVertex((RsdShader*)pv->mHal.drv); in rsdProgramVertexSetActive()
67 void rsdProgramVertexDestroy(const Context *rsc, const ProgramVertex *pv) { in rsdProgramVertexDestroy() argument
71 if(pv->mHal.drv) { in rsdProgramVertexDestroy()
72 drv = (RsdShader*)pv->mHal.drv; in rsdProgramVertexDestroy()
74 ALOGV("Destroying vertex shader with ID %u", (uint32_t)pv); in rsdProgramVertexDestroy()
DrsdShaderCache.h40 void setActiveVertex(RsdShader *pv) { in setActiveVertex() argument
42 mVertex = pv; in setActiveVertex()
DrsdRuntimeStubs.cpp106 static void SC_BindVertexConstant(ProgramVertex *pv, uint32_t slot, Allocation *a) { in SC_BindVertexConstant() argument
108 rsrBindConstant(rsc, sc, pv, slot, a); in SC_BindVertexConstant()
131 static void SC_BindProgramVertex(ProgramVertex *pv) { in SC_BindProgramVertex() argument
133 rsrBindProgramVertex(rsc, sc, pv); in SC_BindProgramVertex()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DRenderState.java46 public RenderState(VertexShader pv, in RenderState() argument
50 mVertex = pv; in RenderState()
63 public void setProgramVertex(VertexShader pv) { in setProgramVertex() argument
64 mVertex = pv; in setProgramVertex()
88 item.pv = mVertex.getRSData().getAllocation(); in updateRSData()
Drender.rs62 const SgVertexShader *pv = (const SgVertexShader *)rsGetElementAt(renderState->pv, 0);
65 if (pv->objectConstIndex != -1) {
66 rsgBindConstant(pv->program, pv->objectConstIndex, obj->pv_const);
85 rsgBindProgramVertex(pv->program);
DRenderable.java179 VertexShader pv = mRenderState.mVertex; in updateVertexConstants() local
180 if (pv != null && pv.getObjectConstants() != null) { in updateVertexConstants()
181 vertexConstants = Allocation.createTyped(rs, pv.getObjectConstants()); in updateVertexConstants()
Dscenegraph_objects.rsh107 rs_allocation pv; // VertexShader struct
/frameworks/base/graphics/java/android/graphics/
DColor.java265 final float pv = b * (1.0f - s); in HSBtoColor() local
273 blue = pv; in HSBtoColor()
278 blue = pv; in HSBtoColor()
281 red = pv; in HSBtoColor()
286 red = pv; in HSBtoColor()
292 green = pv; in HSBtoColor()
297 green = pv; in HSBtoColor()
/frameworks/base/graphics/java/android/renderscript/
DProgramVertex.java149 ProgramVertex pv = new ProgramVertex(id, mRS); in create() local
150 initProgram(pv); in create()
151 return pv; in create()
DProgramVertexFixedFunction.java104 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS); in create() local
105 initProgram(pv); in create()
106 return pv; in create()
DRenderScript.java180 native void rsnContextBindProgramVertex(int con, int pv); in rsnContextBindProgramVertex() argument
181 synchronized void nContextBindProgramVertex(int pv) { in nContextBindProgramVertex() argument
183 rsnContextBindProgramVertex(mContext, pv); in nContextBindProgramVertex()
589 native void rsnProgramBindConstants(int con, int pv, int slot, int mID); in rsnProgramBindConstants() argument
590 synchronized void nProgramBindConstants(int pv, int slot, int mID) { in nProgramBindConstants() argument
592 rsnProgramBindConstants(mContext, pv, slot, mID); in nProgramBindConstants()
/frameworks/rs/
DrsProgramVertex.cpp197 ProgramVertex *pv = new ProgramVertex(rsc, shaderString.string(), shaderString.length(), in init() local
201 pv->bindAllocation(rsc, alloc, 0); in init()
204 mDefault.set(pv); in init()
239 ProgramVertex *pv = new ProgramVertex(rsc, shaderText, shaderLength, in rsi_ProgramVertexCreate() local
242 pv->incUserRef(); in rsi_ProgramVertexCreate()
243 return pv; in rsi_ProgramVertexCreate()
DrsScriptC_LibGL.cpp61 void rsrBindConstant(Context *rsc, Script *sc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
63 CHECK_OBJ(pv); in rsrBindConstant()
64 pv->bindAllocation(rsc, a, slot); in rsrBindConstant()
83 void rsrBindProgramVertex(Context *rsc, Script *sc, ProgramVertex *pv) { in rsrBindProgramVertex() argument
84 CHECK_OBJ_OR_NULL(pv); in rsrBindProgramVertex()
85 rsc->setProgramVertex(pv); in rsrBindProgramVertex()
Drs_hal.h187 bool (*init)(const Context *rsc, const ProgramVertex *pv,
191 void (*setActive)(const Context *rsc, const ProgramVertex *pv);
192 void (*destroy)(const Context *rsc, const ProgramVertex *pv);
DrsContext.cpp550 void Context::setProgramVertex(ProgramVertex *pv) { in setProgramVertex() argument
552 if (pv == NULL) { in setProgramVertex()
555 mVertex.set(pv); in setProgramVertex()
663 ProgramVertex *pv = static_cast<ProgramVertex *>(vpv); in rsi_ContextBindProgramVertex() local
664 rsc->setProgramVertex(pv); in rsi_ContextBindProgramVertex()
/frameworks/rs/scriptc/
Drs_graphics.rsh92 * @param pv
95 rsgBindProgramVertex(rs_program_vertex pv);
185 * @param pv program object
190 rsgBindConstant(rs_program_vertex pv, uint slot, rs_allocation c);