Home
last modified time | relevance | path

Searched refs:mProgram (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/opengl/src/android/opengl/cts/
DRendererThreeShaderTest.java47 GLES20.glUseProgram(mProgram); in doOnDrawFrame()
55 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in doOnDrawFrame()
65 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
67 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated()
68 GLES20.glAttachShader(mProgram, vertexShaderTwo); in onSurfaceCreated()
70 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
71 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
73 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
DRendererOneShaderTest.java48 GLES20.glUseProgram(mProgram); in doOnDrawFrame()
56 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in doOnDrawFrame()
65 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
66 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated()
67 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
68 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
70 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
DRendererSixShaderTest.java33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
36 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
37 GLES20.glAttachShader(mProgram, shaderTwo); in onSurfaceCreated()
40 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in onSurfaceCreated()
DRendererFiveShaderTest.java35 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
38 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
39 GLES20.glAttachShader(mProgram, shaderTwo); in onSurfaceCreated()
42 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in onSurfaceCreated()
DRendererTwelveShaderTest.java36 mProgram = 0; in onSurfaceCreated()
38 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
39 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
DRendererElevenShaderTest.java35 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
37 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
38 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
DRendererTenShaderTest.java34 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
36 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
37 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
DRendererFourShaderTest.java35 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
39 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in onSurfaceCreated()
44 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
DRendererSevenShaderTest.java33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
36 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
37 GLES20.glAttachShader(mProgram, shaderTwo); in onSurfaceCreated()
DRendererNineShaderTest.java33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
37 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
DRendererEightShaderTest.java33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
36 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
DRendererOneProgramTest.java34 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
36 GLES20.glAttachShader(mProgram, mProgramTwo); in onSurfaceCreated()
DRendererTwoShaderTest.java45 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
47 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated()
DRendererBase.java31 int mProgram; field in RendererBase
/cts/tests/tests/media/src/android/media/cts/
DTextureRender.java77 private int mProgram; field in TextureRender
104 GLES20.glUseProgram(mProgram); in drawFrame()
137 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in surfaceCreated()
138 if (mProgram == 0) { in surfaceCreated()
141 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in surfaceCreated()
146 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in surfaceCreated()
152 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in surfaceCreated()
158 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in surfaceCreated()
187 GLES20.glDeleteProgram(mProgram); in changeFragmentShader()
188 mProgram = createProgram(VERTEX_SHADER, fragmentShader); in changeFragmentShader()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DCtsMediaTextureRender.java81 private int mProgram; field in CtsMediaTextureRender
108 GLES20.glUseProgram(mProgram); in drawFrame()
141 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in surfaceCreated()
142 if (mProgram == 0) { in surfaceCreated()
145 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in surfaceCreated()
150 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in surfaceCreated()
156 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in surfaceCreated()
162 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in surfaceCreated()
191 GLES20.glDeleteProgram(mProgram); in changeFragmentShader()
192 mProgram = createProgram(VERTEX_SHADER, fragmentShader); in changeFragmentShader()
[all …]
/cts/suite/cts/deviceTests/opengl/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp95 Renderer(window, offscreen), mProgram(NULL), mSceneGraph(NULL), in FullPipelineRenderer()
110 mProgram = new PerspectiveProgram(mProgramId); in setUp()
155 mSceneGraph = new ProgramNode(*mProgram); in setUp()
185 delete mProgram; in tearDown()
186 mProgram = NULL; in tearDown()
DFullPipelineRenderer.h31 Program* mProgram;
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DSurfaceTextureRenderer.java79 private int mProgram; field in SurfaceTextureRenderer
116 GLES20.glUseProgram(mProgram); in onDrawFrame()
165 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated()
166 if (mProgram == 0) { in onSurfaceCreated()
169 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated()
174 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated()
180 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
186 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated()
/cts/suite/cts/deviceTests/opengl/jni/graphics/
DProgramNode.cpp18 mProgram(program) { in ProgramNode()
30 SceneGraphNode::draw(mProgram, model, view, projection); in drawProgram()
DProgramNode.h29 Program& mProgram; variable
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java77 private int mProgram; // shader program field in PlanetsRenderer
134 mProgram = createProgram(getVertexShader(), getFragmentShader()); in onSurfaceCreated()
135 if (mProgram == 0) { in onSurfaceCreated()
139 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
140 mOffsetHandle = GLES20.glGetUniformLocation(mProgram, "uOffset"); in onSurfaceCreated()
141 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); in onSurfaceCreated()
142 mTexCoord0Handle = GLES20.glGetAttribLocation(mProgram, "vTexCoord0"); in onSurfaceCreated()
143 mTextureHandle = GLES20.glGetUniformLocation(mProgram, "sTexture"); in onSurfaceCreated()
161 GLES20.glUseProgram(mProgram); in onDrawFrame()
/cts/tests/tests/graphics/src/android/opengl/cts/
DCompressedTextureSurfaceView.java117 private int mProgram; field in CompressedTextureSurfaceView.CompressedTextureRender
169 GLES20.glUseProgram(mProgram); in renderQuad()
243 if (mProgram == 0) { in onDrawFrame()
318 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated()
319 if (mProgram == 0) { in onSurfaceCreated()
322 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated()
327 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated()
333 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
DEglConfigGLSurfaceView.java131 private int mProgram; field in EglConfigGLSurfaceView.Renderer20
138 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated()
139 if (mProgram == 0) { in onSurfaceCreated()
143 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated()
220 GLES20.glUseProgram(mProgram); in onDrawFrame()
/cts/tests/tests/hardware/src/android/hardware/cts/
DCameraGLTest.java678 GLES20.glUseProgram(mProgram); in onDrawFrame()
724 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated()
725 if (mProgram == 0) { in onSurfaceCreated()
728 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated()
733 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated()
739 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
745 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated()
751 muCRatioHandle = GLES20.glGetUniformLocation(mProgram, "uCRatio"); in onSurfaceCreated()
883 private int mProgram; field in CameraGLTest.Renderer