Searched refs:program (Results 1 - 25 of 54) sorted by relevance

123

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetProgramInfoLog.java17 // C function void glGetProgramInfoLog( GLuint program, GLsizei maxLength, GLsizei * length,
21 int program
H A DglGetActiveAttrib.java1 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
4 int program,
17 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
20 int program,
29 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
32 int program,
40 // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
43 int program,
3 glGetActiveAttrib( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
19 glGetActiveAttrib( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
31 glGetActiveAttrib( int program, int index, int[] size, int sizeOffset, int[] type, int typeOffset ) argument
42 glGetActiveAttrib( int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type ) argument
H A DglGetActiveUniform.java1 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
4 int program,
17 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
20 int program,
28 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
31 int program,
39 // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
42 int program,
3 glGetActiveUniform( int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset ) argument
19 glGetActiveUniform( int program, int index, int bufsize, java.nio.IntBuffer length, java.nio.IntBuffer size, java.nio.IntBuffer type, byte name ) argument
30 glGetActiveUniform( int program, int index, int[] size, int sizeOffset, int[] type, int typeOffset ) argument
41 glGetActiveUniform( int program, int index, java.nio.IntBuffer size, java.nio.IntBuffer type ) argument
H A DglGetActiveAttrib.cpp1 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */
4 (JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint lengthOffset, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset, jbyteArray name_ref, jint nameOffset) {
90 (GLuint)program,
121 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */
124 (JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject size_buf, jobject type_buf, jbyte name) {
154 (GLuint)program,
173 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */
176 (JNIEnv *_env, jobject _this, jint program, jint index, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset) {
190 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len);
235 (GLuint)program,
3 android_glGetActiveAttrib__III_3II_3II_3II_3BI(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint lengthOffset, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset, jbyteArray name_ref, jint nameOffset) argument
123 android_glGetActiveAttrib__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject size_buf, jobject type_buf, jbyte name) argument
175 android_glGetActiveAttrib1(JNIEnv *_env, jobject _this, jint program, jint index, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset) argument
270 android_glGetActiveAttrib2(JNIEnv *_env, jobject _this, jint program, jint index, jobject size_buf, jobject type_buf) argument
[all...]
H A DglGetActiveUniform.cpp1 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */
4 (JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint lengthOffset, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset, jbyteArray name_ref, jint nameOffset) {
90 (GLuint)program,
121 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */
124 (JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject size_buf, jobject type_buf, jbyte name) {
154 (GLuint)program,
173 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */
176 (JNIEnv *_env, jobject _this, jint program, jint index, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset) {
192 glGetProgramiv((GLuint)program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &len);
238 (GLuint)program,
3 android_glGetActiveUniform__III_3II_3II_3II_3BI(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint lengthOffset, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset, jbyteArray name_ref, jint nameOffset) argument
123 android_glGetActiveUniform__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject size_buf, jobject type_buf, jbyte name) argument
175 android_glGetActiveUniform1(JNIEnv *_env, jobject _this, jint program, jint index, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset) argument
273 android_glGetActiveUniform2(JNIEnv *_env, jobject _this, jint program, jint index, jobject size_buf, jobject type_buf) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_program.cpp39 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
40 return ToJBool(program && program->CallInit());
46 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
47 return ToJBool(program && lib_name && program->OpenLibrary(ToCppString(env, lib_name)));
53 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
54 return ToJBool(program && func_name && program->BindInitFunction(ToCppString(env, func_name)));
60 NativeProgram* program local
69 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
78 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
85 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
94 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
101 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
113 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
122 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
134 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
180 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
185 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); local
[all...]
H A Djni_shader_program.cpp71 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
72 return program ? ToJBool(program->CompileAndLink()) : JNI_FALSE;
79 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
83 return ToJBool(program && program->SetUniformValue(c_key, c_value));
93 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
95 return program ? ToJObject(env, program->GetUniformValue(c_key)) : JNI_NULL;
102 ShaderProgram* program local
139 ShaderProgram* program = gl_env_ptr ? ShaderProgram::CreateIdentity(gl_env_ptr) : NULL; local
153 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
171 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
182 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
193 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
205 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
218 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
229 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
241 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
252 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
261 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
271 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
304 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); local
[all...]
/frameworks/base/libs/hwui/
H A DDither.cpp73 void Dither::setupProgram(Program* program, GLuint* textureUnit) { argument
80 glUniform1i(program->getUniform("ditherSampler"), textureSlot);
81 glUniform1f(program->getUniform("ditherSize"), ditherSize);
82 glUniform1f(program->getUniform("ditherSizeSquared"), ditherSize * ditherSize);
H A DSkiaColorFilter.cpp59 void SkiaColorMatrixFilter::setupProgram(Program* program) { argument
60 glUniformMatrix4fv(program->getUniform("colorMatrix"), 1, GL_FALSE, &mMatrix[0]);
61 glUniform4fv(program->getUniform("colorMatrixVector"), 1, mVector);
86 void SkiaLightingFilter::setupProgram(Program* program) { argument
87 glUniform4f(program->getUniform("lightingMul"), mMulR, mMulG, mMulB, 1.0f);
88 glUniform4f(program->getUniform("lightingAdd"), mAddR, mAddG, mAddB, 0.0f);
112 void SkiaBlendFilter::setupProgram(Program* program) { argument
113 glUniform4f(program->getUniform("colorBlend"), mR, mG, mB, mA);
H A DDither.h35 void setupProgram(Program* program, GLuint* textureUnit);
H A DSkiaColorFilter.h54 virtual void setupProgram(Program* program) = 0;
88 void setupProgram(Program* program);
103 void setupProgram(Program* program);
118 void setupProgram(Program* program);
H A DGammaFontRenderer.h41 virtual void setupProgram(ProgramDescription& description, Program* program) const = 0;
87 void setupProgram(ProgramDescription& description, Program* program) const;
134 void setupProgram(ProgramDescription& description, Program* program) const {
171 void setupProgram(ProgramDescription& description, Program* program) const {
H A DSkiaShader.cpp85 void SkiaShader::setupProgram(Program* program, const mat4& modelView, const Snapshot& snapshot, argument
140 void SkiaBitmapShader::setupProgram(Program* program, const mat4& modelView, argument
160 glUniform1i(program->getUniform("bitmapSampler"), textureSlot);
161 glUniformMatrix4fv(program->getUniform("textureTransform"), 1,
163 glUniform2f(program->getUniform("textureDimension"), 1.0f / width, 1.0f / height);
226 void SkiaLinearGradientShader::setupProgram(Program* program, const mat4& modelView, argument
236 glUniform1i(program->getUniform("gradientSampler"), textureSlot);
238 bindUniformColor(program->getUniform("startColor"), mColors[0]);
239 bindUniformColor(program->getUniform("endColor"), mColors[1]);
242 Caches::getInstance().dither.setupProgram(program, textureUni
346 setupProgram(Program* program, const mat4& modelView, const Snapshot& snapshot, GLuint* textureUnit) argument
412 setupProgram(Program* program, const mat4& modelView, const Snapshot& snapshot, GLuint* textureUnit) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DProgramVariable.java28 public ProgramVariable(Program program, String varName) { argument
29 mProgram = program;
43 throw new RuntimeException("Attempting to set program variable '" + mVarName
44 + "' but the program is null!");
51 throw new RuntimeException("Attempting to get program variable '" + mVarName
52 + "' but the program is null!");
H A DProgramPort.java49 Program program = (Program)fieldValue;
50 program.setHostValue(mVarName, mValue);
55 "Access to program field '" + mField.getName() + "' was denied!");
/frameworks/native/opengl/tests/gl2_jni/jni/
H A Dgl_code.cpp74 GLuint program = glCreateProgram(); local
75 if (program) {
76 glAttachShader(program, vertexShader);
78 glAttachShader(program, pixelShader);
80 glLinkProgram(program);
82 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
85 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength);
89 glGetProgramInfoLog(program, bufLength, NULL, buf);
90 ALOGE("Could not link program:\n%s\n", buf);
94 glDeleteProgram(program);
[all...]
/frameworks/native/opengl/tests/gldual/jni/
H A Dgl_code.cpp74 GLuint program = glCreateProgram(); local
75 if (program) {
76 glAttachShader(program, vertexShader);
78 glAttachShader(program, pixelShader);
80 glLinkProgram(program);
82 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
85 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength);
89 glGetProgramInfoLog(program, bufLength, NULL, buf);
90 ALOGE("Could not link program:\n%s\n", buf);
94 glDeleteProgram(program);
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp76 GLuint program = glCreateProgram(); local
77 if (program) {
78 glAttachShader(program, vertexShader);
80 glAttachShader(program, pixelShader);
83 glBindAttribLocation(program, A_POS, "a_pos");
84 glBindAttribLocation(program, A_COLOR, "a_color");
85 glBindAttribLocation(program, A_TEX0, "a_tex0");
86 glBindAttribLocation(program, A_TEX1, "a_tex1");
87 glLinkProgram(program);
89 glGetProgramiv(program, GL_LINK_STATU
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DToGrayFilter.java83 ShaderProgram program = new ShaderProgram(context, mColorToGray4Shader);
84 program.setMaximumTileSize(mTileSize);
86 program.setSourceRect(0.0f, 1.0f, 1.0f, -1.0f);
87 return program;
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/
H A DGL2JavaView.java123 int program = GLES20.glCreateProgram();
124 if (program != 0) {
125 GLES20.glAttachShader(program, vertexShader);
127 GLES20.glAttachShader(program, pixelShader);
129 GLES20.glLinkProgram(program);
131 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
133 Log.e(TAG, "Could not link program: ");
134 Log.e(TAG, GLES20.glGetProgramInfoLog(program));
135 GLES20.glDeleteProgram(program);
136 program
[all...]
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
H A DTestLatencyView.java197 int program = GLES20.glCreateProgram();
198 if (program != 0) {
199 GLES20.glAttachShader(program, vertexShader);
201 GLES20.glAttachShader(program, pixelShader);
203 GLES20.glLinkProgram(program);
205 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
207 Log.e(TAG, "Could not link program: ");
208 Log.e(TAG, GLES20.glGetProgramInfoLog(program));
209 GLES20.glDeleteProgram(program);
210 program
[all...]
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES20.spec2 void glAttachShader ( GLuint program, GLuint shader )
3 void glBindAttribLocation ( GLuint program, GLuint index, const char *name )
31 void glDeleteProgram ( GLuint program )
38 void glDetachShader ( GLuint program, GLuint shader )
56 void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
57 void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
58 void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
59 int glGetAttribLocation ( GLuint program, const char *name )
66 void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
67 void glGetProgramInfoLog ( GLuint program, GLsize
[all...]
/frameworks/native/opengl/tests/gl2_basic/
H A Dgl2_basic.cpp113 GLuint program = glCreateProgram(); local
114 if (program) {
115 glAttachShader(program, vertexShader);
117 glAttachShader(program, pixelShader);
119 glLinkProgram(program);
121 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
124 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength);
128 glGetProgramInfoLog(program, bufLength, NULL, buf);
129 fprintf(stderr, "Could not link program:\n%s\n", buf);
133 glDeleteProgram(program);
[all...]
/frameworks/native/opengl/include/GLES2/
H A Dgl2ext.h716 GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
717 GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
719 typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
720 typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
1044 GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
1045 GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
1049 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
1050 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
1057 GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
1058 GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
[all...]
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java262 int program = GLES20.glCreateProgram();
263 if (program != 0) {
264 GLES20.glAttachShader(program, vertexShader);
266 GLES20.glAttachShader(program, pixelShader);
268 GLES20.glLinkProgram(program);
270 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
272 Log.e(TAG, "Could not link program: ");
273 Log.e(TAG, GLES20.glGetProgramInfoLog(program));
274 GLES20.glDeleteProgram(program);
275 program
[all...]

Completed in 297 milliseconds

123