Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_CameraGpuCtsActivity.cpp99 if (mProgram) { in ~CameraFrameRenderer()
100 glDeleteProgram(mProgram); in ~CameraFrameRenderer()
101 mProgram = 0; in ~CameraFrameRenderer()
136 mProgram = glCreateProgram(); in initRenderer()
145 mProgram = glCreateProgram(); in initRenderer()
146 glAttachShader(mProgram, vertShader); in initRenderer()
148 glAttachShader(mProgram, fragShader); in initRenderer()
151 glLinkProgram(mProgram); in initRenderer()
153 glGetProgramiv(mProgram, GL_LINK_STATUS, &success); in initRenderer()
156 glGetProgramInfoLog(mProgram, 512, nullptr, infoLog); in initRenderer()
[all …]
/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()
DRendererElevenShaderTest.java33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
35 GLES20.glAttachShader(mProgram, vertexShader); in onSurfaceCreated()
36 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()
DCompressedTextureSurfaceView.java95 private int mProgram; field in CompressedTextureSurfaceView.CompressedTextureRender
143 GLES20.glUseProgram(mProgram); in renderQuad()
217 if (mProgram == 0) { in onDrawFrame()
292 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated()
293 if (mProgram == 0) { in onSurfaceCreated()
296 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated()
301 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated()
307 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); 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()
DRendererTwelveShaderTest.java36 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
37 GLES20.glLinkProgram(mProgram); 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()
DRendererTwoShaderTest.java45 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
47 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated()
/cts/tests/vr/src/android/vr/cts/
DRendererBasicTest.java44 int mProgram; field in RendererBasicTest
82 GLES20.glUseProgram(mProgram); in doOnDrawFrame()
90 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in doOnDrawFrame()
99 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
100 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated()
101 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
102 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
104 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
DRendererProtectedTexturesTest.java55 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated()
56 GLES20.glAttachShader(mProgram, vertexShader); in onSurfaceCreated()
57 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated()
58 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
60 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
71 int loc = GLES20.glGetUniformLocation(mProgram, "protectedTexture"); in onSurfaceCreated()
/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/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/tests/openglperf2/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()
/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/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java78 private int mProgram; // shader program field in PlanetsRenderer
136 mProgram = createProgram(getVertexShader(), getFragmentShader()); in onSurfaceCreated()
137 if (mProgram == 0) { in onSurfaceCreated()
141 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
142 mOffsetHandle = GLES20.glGetUniformLocation(mProgram, "uOffset"); in onSurfaceCreated()
143 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); in onSurfaceCreated()
144 mTexCoord0Handle = GLES20.glGetAttribLocation(mProgram, "vTexCoord0"); in onSurfaceCreated()
145 mTextureHandle = GLES20.glGetUniformLocation(mProgram, "sTexture"); in onSurfaceCreated()
164 GLES20.glUseProgram(mProgram); in onDrawFrame()
/cts/tests/openglperf2/jni/graphics/
DProgramNode.cpp18 mProgram(program) { in ProgramNode()
30 SceneGraphNode::draw(mProgram, model, view, projection); in drawProgram()
/cts/tests/camera/src/android/hardware/cts/
DCameraGLTest.java703 GLES20.glUseProgram(mProgram); in onDrawFrame()
749 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated()
750 if (mProgram == 0) { in onSurfaceCreated()
753 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated()
758 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated()
764 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
770 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated()
776 muCRatioHandle = GLES20.glGetUniformLocation(mProgram, "uCRatio"); in onSurfaceCreated()
908 private int mProgram; field in CameraGLTest.Renderer

12