/external/chromium_org/third_party/angle/samples/angle/stencil_operations/ |
StencilOperations.cpp | 48 mProgram = CompileProgram(vs, fs); 49 if (!mProgram) 55 mPositionLoc = glGetAttribLocation(mProgram, "a_position"); 58 mColorLoc = glGetUniformLocation(mProgram, "u_color"); 78 glDeleteProgram(mProgram); 141 glUseProgram(mProgram); 229 GLuint mProgram;
|
/external/chromium_org/third_party/angle/tests/angle_tests/ |
IncompleteTextureTest.cpp | 47 mProgram = compileProgram(vertexShaderSource, fragmentShaderSource); 48 if (mProgram == 0) 53 mTextureUniformLocation = glGetUniformLocation(mProgram, "tex"); 58 glDeleteProgram(mProgram); 75 GLuint mProgram; 86 glUseProgram(mProgram); 97 drawQuad(mProgram, "position", 0.5f); 102 drawQuad(mProgram, "position", 0.5f); 107 drawQuad(mProgram, "position", 0.5f); 120 glUseProgram(mProgram); [all...] |
UnpackAlignmentTest.cpp | 18 mProgram = 0; 46 mProgram = compileProgram(vertexShaderSource, fragmentShaderSource); 47 if (mProgram == 0) 55 glDeleteProgram(mProgram); 125 drawQuad(mProgram, "position", 0.5f); 133 GLuint mProgram;
|
VertexAttributeTest.cpp | 16 mProgram = 0; 47 drawQuad(mProgram, "position", 0.5f); 89 mProgram = compileProgram(testVertexShaderSource, testFragmentShaderSource); 90 if (mProgram == 0) 95 mTestAttrib = glGetAttribLocation(mProgram, "test"); 96 mExpectedAttrib = glGetAttribLocation(mProgram, "expected"); 98 glUseProgram(mProgram); 109 glDeleteProgram(mProgram); 116 GLuint mProgram;
|
BlendMinMaxTest.cpp | 16 mProgram = 0; 47 glUseProgram(mProgram); 53 drawQuad(mProgram, "aPosition", 0.5f); 91 mProgram = compileProgram(testVertexShaderSource, testFragmentShaderSource); 92 if (mProgram == 0) 97 mColorLocation = glGetUniformLocation(mProgram, "color"); 99 glUseProgram(mProgram); 125 glDeleteProgram(mProgram); 132 GLuint mProgram;
|
IndexedPointsTest.cpp | 55 mProgram = compileProgram(vertexShaderSource, fragmentShaderSource); 56 if (mProgram == 0) 80 glDeleteProgram(mProgram); 94 GLint vertexLocation = glGetAttribLocation(mProgram, "position"); 100 glUseProgram(mProgram); 120 GLuint mProgram;
|
ReadPixelsTest.cpp | 51 mProgram = compileProgram(vertexShaderSrc, fragmentShaderSrc); 75 glDeleteProgram(mProgram); 81 GLuint mProgram; 263 glUseProgram(mProgram); 269 GLint positionLocation = glGetAttribLocation(mProgram, "aPosition"); 272 GLint testLocation = glGetAttribLocation(mProgram, "aTest");
|
SwizzleTest.cpp | 77 mProgram = compileProgram(vertexShaderSource, fragmentShaderSource); 78 if (mProgram == 0) 83 mTextureUniformLocation = glGetUniformLocation(mProgram, "tex"); 90 glDeleteProgram(mProgram); 134 glUseProgram(mProgram); 144 drawQuad(mProgram, "position", 0.5f); 159 drawQuad(mProgram, "position", 0.5f); 169 GLuint mProgram;
|
/frameworks/av/cmds/screenrecord/ |
Program.h | 39 mProgram(0), 83 GLuint mProgram;
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererBase.java | 31 int mProgram;
|
/development/ndk/platforms/android-18/samples/gles3jni/jni/ |
RendererES2.cpp | 54 GLuint mProgram; 76 mProgram(0), 85 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); 86 if (!mProgram) 88 mPosAttrib = glGetAttribLocation(mProgram, "pos"); 89 mColorAttrib = glGetAttribLocation(mProgram, "color"); 90 mScaleRotUniform = glGetUniformLocation(mProgram, "scaleRot"); 91 mOffsetUniform = glGetUniformLocation(mProgram, "offset"); 111 glDeleteProgram(mProgram); 129 glUseProgram(mProgram); [all...] |
RendererES3.cpp | 66 GLuint mProgram; 82 mProgram(0), 90 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); 91 if (!mProgram) 136 glDeleteProgram(mProgram); 162 glUseProgram(mProgram);
|
/external/chromium_org/third_party/angle/samples/angle/post_sub_buffer/ |
PostSubBuffer.cpp | 64 mProgram = CompileProgram(vs, fs); 65 if (!mProgram) 71 mPositionLoc = glGetAttribLocation(mProgram, "a_position"); 72 mTexcoordLoc = glGetAttribLocation(mProgram, "a_texcoord"); 75 mMVPMatrixLoc = glGetUniformLocation(mProgram, "u_mvpMatrix"); 97 glDeleteProgram(mProgram); 127 glUseProgram(mProgram); 153 GLuint mProgram;
|
/external/chromium_org/third_party/angle/samples/angle/simple_instancing/ |
SimpleInstancing.cpp | 73 mProgram = CompileProgram(vs, fs); 74 if (!mProgram) 80 mPositionLoc = glGetAttribLocation(mProgram, "a_position"); 81 mTexCoordLoc = glGetAttribLocation(mProgram, "a_texCoord"); 82 mInstancePosLoc = glGetAttribLocation(mProgram, "a_instancePos"); 85 mSamplerLoc = glGetUniformLocation(mProgram, "s_texture"); 126 glDeleteProgram(mProgram); 139 glUseProgram(mProgram); 169 GLuint mProgram;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
RedEyeFilter.java | 58 private Program mProgram; 100 mProgram = shaderProgram; 101 mProgram.setHostValue("intensity", DEFAULT_RED_INTENSITY); 120 if (mProgram == null || inputFormat.getTarget() != mTarget) { 133 mProgram.process(inputs, output); 148 if (mProgram != null) {
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
SurfaceRenderFilter.java | 65 private ShaderProgram mProgram; 112 mProgram = ShaderProgram.createIdentity(context); 113 mProgram.setSourceRect(0, 1, 1, -1); 114 mProgram.setClearsOutput(true); 115 mProgram.setClearColor(0.0f, 0.0f, 0.0f); 181 mProgram.process(gpuFrame, mScreen); 234 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { 240 mProgram.setTargetRect(0, 0, 1, 1); 245 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f, 249 mProgram.setTargetRect(0.0f, 0.5f - 0.5f * relativeAspectRatio [all...] |
SurfaceTargetFilter.java | 71 private ShaderProgram mProgram; 120 mProgram = ShaderProgram.createIdentity(context); 121 mProgram.setSourceRect(0, 1, 1, -1); 122 mProgram.setClearsOutput(true); 123 mProgram.setClearColor(0.0f, 0.0f, 0.0f); 173 mProgram.process(gpuFrame, mScreen); 202 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { 208 mProgram.setTargetRect(0, 0, 1, 1); 213 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f, 217 mProgram.setTargetRect(0.0f, 0.5f - 0.5f * relativeAspectRatio [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
SurfaceTextureTarget.java | 88 private ShaderProgram mProgram; 136 mProgram = ShaderProgram.createIdentity(context); 137 mProgram.setSourceRect(0, 1, 1, -1); 138 mProgram.setClearColor(0.0f, 0.0f, 0.0f); 241 mProgram.process(gpuFrame, mScreen); 268 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { 278 mProgram.setTargetRect(0, 0, 1, 1); 279 mProgram.setClearsOutput(false); 287 mProgram.setClearsOutput(false); 304 mProgram.setClearsOutput(true) [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
FragmentShader.java | 33 ProgramFragment mProgram; 94 mShader.mProgram = mBuilder.create(); 100 return mProgram; 151 item.program = mProgram; 162 mProgram.bindConstants(item.shaderConst, 0);
|
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/ |
Square.java | 51 private final int mProgram; 100 mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program 101 GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program 102 GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program 103 GLES20.glLinkProgram(mProgram); // create OpenGL program executables 114 GLES20.glUseProgram(mProgram); 117 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); 129 mColorHandle = GLES20.glGetUniformLocation(mProgram, "vColor"); 135 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix");
|
Triangle.java | 49 private final int mProgram; 91 mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program 92 GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program 93 GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program 94 GLES20.glLinkProgram(mProgram); // create OpenGL program executables 106 GLES20.glUseProgram(mProgram); 109 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); 121 mColorHandle = GLES20.glGetUniformLocation(mProgram, "vColor"); 127 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix");
|
/external/chromium_org/third_party/angle/samples/angle/particle_system/ |
ParticleSystem.cpp | 77 mProgram = CompileProgram(vs, fs); 78 if (!mProgram) 84 mLifetimeLoc = glGetAttribLocation(mProgram, "a_lifetime"); 85 mStartPositionLoc = glGetAttribLocation(mProgram, "a_startPosition"); 86 mEndPositionLoc = glGetAttribLocation(mProgram, "a_endPosition"); 89 mTimeLoc = glGetUniformLocation(mProgram, "u_time"); 90 mCenterPositionLoc = glGetUniformLocation(mProgram, "u_centerPosition"); 91 mColorLoc = glGetUniformLocation(mProgram, "u_color"); 92 mSamplerLoc = glGetUniformLocation(mProgram, "s_texture"); 132 glDeleteProgram(mProgram); [all...] |
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/ |
GL2JavaView.java | 67 GLES20.glUseProgram(mProgram); 84 mProgram = createProgram(mVertexShader, mFragmentShader); 85 if (mProgram == 0) { 88 mvPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); 165 private int mProgram;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/ |
MediaEncoderFilter.java | 160 private ShaderProgram mProgram; 223 mProgram.setSourceRegion(flippedRegion); 276 mProgram = ShaderProgram.createIdentity(context); 405 mProgram.process(input, mScreen);
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
EglConfigGLSurfaceView.java | 131 private int mProgram; 138 mProgram = createProgram(mVertexShader, mFragmentShader); 139 if (mProgram == 0) { 143 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); 220 GLES20.glUseProgram(mProgram);
|