Searched refs:shader (Results 1 - 25 of 64) sorted by relevance

123

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetShaderInfoLog.java17 // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length,
21 int shader
H A DglShaderSource.java17 // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length )
20 int shader,
19 glShaderSource( int shader, String string ) argument
H A DglGetShaderSource.java1 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
4 int shader,
12 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
15 int shader,
21 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
24 int shader
3 glGetShaderSource( int shader, int bufsize, int[] length, int lengthOffset, byte[] source, int sourceOffset ) argument
14 glGetShaderSource( int shader, int bufsize, java.nio.IntBuffer length, byte source ) argument
H A DglGetProgramInfoLog.cpp3 /* void glGetProgramInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */
4 static jstring android_glGetProgramInfoLog(JNIEnv *_env, jobject, jint shader) { argument
6 glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
15 glGetProgramInfoLog(shader, infoLen, NULL, buf);
H A DglGetShaderInfoLog.cpp3 /* void glGetShaderInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */
4 static jstring android_glGetShaderInfoLog(JNIEnv *_env, jobject, jint shader) { argument
6 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
15 glGetShaderInfoLog(shader, infoLen, NULL, buf);
H A DglShaderSource.cpp2 /* void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint * length ) */
6 (JNIEnv *_env, jobject _this, jint shader, jstring string) {
15 glShaderSource(shader, 1, strings, 0);
5 android_glShaderSource(JNIEnv *_env, jobject _this, jint shader, jstring string) argument
H A DglGetShaderSource.cpp1 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */
4 (JNIEnv *_env, jobject _this, jint shader, jint bufsize, jintArray length_ref, jint lengthOffset, jbyteArray source_ref, jint sourceOffset) {
50 (GLuint)shader,
70 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */
73 (JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) {
85 (GLuint)shader,
95 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */
96 static jstring android_glGetShaderSource(JNIEnv *_env, jobject, jint shader) { argument
98 glGetShaderiv((GLuint)shader, GL_SHADER_SOURCE_LENGTH, &shaderLen);
107 glGetShaderSource(shader, shaderLe
3 android_glGetShaderSource__II_3II_3BI(JNIEnv *_env, jobject _this, jint shader, jint bufsize, jintArray length_ref, jint lengthOffset, jbyteArray source_ref, jint sourceOffset) argument
72 android_glGetShaderSource__IILjava_nio_IntBuffer_2B(JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) argument
[all...]
/frameworks/base/libs/hwui/
H A DProgramCache.cpp470 String8 shader(gVS_Header_Attributes);
472 shader.append(gVS_Header_Attributes_TexCoords);
476 shader.append(gVS_Header_Attributes_AAVertexShapeParameters);
478 shader.append(gVS_Header_Attributes_AALineParameters);
482 shader.append(gVS_Header_Uniforms);
484 shader.append(gVS_Header_Uniforms_TextureTransform);
487 shader.append(gVS_Header_Uniforms_HasGradient[description.gradientType]);
490 shader.append(gVS_Header_Uniforms_HasBitmap);
493 shader.append(gVS_Header_Uniforms_IsPoint);
497 shader
551 shaderOp(const ProgramDescription& description, String8& shader, const int modulateOp, const char** snippets) argument
560 String8 shader; local
783 generateBlend(String8& shader, const char* name, SkXfermode::Mode mode) argument
792 generateTextureWrap(String8& shader, GLenum wrapS, GLenum wrapT) argument
[all...]
H A DProgramCache.h65 void generateBlend(String8& shader, const char* name, SkXfermode::Mode mode);
66 void generateTextureWrap(String8& shader, GLenum wrapS, GLenum wrapT);
68 void printLongString(const String8& shader) const;
H A DProgram.cpp135 GLuint shader = glCreateShader(type); local
136 glShaderSource(shader, 1, &source, 0);
137 glCompileShader(shader);
140 glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
145 glGetShaderInfoLog(shader, sizeof(log), 0, &log[0]);
146 ALOGE("Error while compiling shader: %s", log);
147 glDeleteShader(shader);
151 return shader;
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp18 jfieldID shader; member in struct:__anon959
54 static void Shader_destructor(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* skiaShader) argument
56 SkSafeUnref(shader);
67 static void Shader_setLocalMatrix(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* skiaShader, argument
70 if (shader) {
72 shader->resetLocalMatrix();
75 shader->setLocalMatrix(*matrix);
96 static SkiaShader* BitmapShader_postConstructor(JNIEnv* env, jobject o, SkShader* shader, argument
99 SkiaShader* skiaShader = new SkiaBitmapShader(bitmap, shader,
101 NULL, (shader
133 SkShader* shader = SkGradientShader::CreateLinear(pts, local
143 LinearGradient_postCreate1(JNIEnv* env, jobject o, SkShader* shader, float x0, float y0, float x1, float y1, jintArray colorArray, jfloatArray posArray, int tileMode) argument
215 LinearGradient_postCreate2(JNIEnv* env, jobject o, SkShader* shader, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
279 SkShader* shader = SkGradientShader::CreateRadial(center, local
306 RadialGradient_postCreate1(JNIEnv* env, jobject o, SkShader* shader, float x, float y, float radius, jintArray colorArray, jfloatArray posArray, int tileMode) argument
344 RadialGradient_postCreate2(JNIEnv* env, jobject o, SkShader* shader, float x, float y, float radius, int color0, int color1, int tileMode) argument
384 SkShader* shader = SkGradientShader::CreateSweep(SkFloatToScalar(x), local
405 SweepGradient_postCreate1(JNIEnv* env, jobject o, SkShader* shader, float x, float y, jintArray colorArray, jfloatArray posArray) argument
442 SweepGradient_postCreate2(JNIEnv* env, jobject o, SkShader* shader, float x, float y, int color0, int color1) argument
478 ComposeShader_postCreate2(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* shaderA, SkiaShader* shaderB, SkPorterDuff::Mode porterDuffMode) argument
488 ComposeShader_postCreate1(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* shaderA, SkiaShader* shaderB, SkXfermode* mode) argument
[all...]
/frameworks/native/opengl/tests/gl2_jni/jni/
H A Dgl_code.cpp38 GLuint shader = glCreateShader(shaderType); local
39 if (shader) {
40 glShaderSource(shader, 1, &pSource, NULL);
41 glCompileShader(shader);
43 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
46 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
50 glGetShaderInfoLog(shader, infoLen, NULL, buf);
51 ALOGE("Could not compile shader %d:\n%s\n",
55 glDeleteShader(shader);
56 shader
[all...]
/frameworks/native/opengl/tests/gldual/jni/
H A Dgl_code.cpp38 GLuint shader = glCreateShader(shaderType); local
39 if (shader) {
40 glShaderSource(shader, 1, &pSource, NULL);
41 glCompileShader(shader);
43 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
46 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
50 glGetShaderInfoLog(shader, infoLen, NULL, buf);
51 ALOGE("Could not compile shader %d:\n%s\n",
55 glDeleteShader(shader);
56 shader
[all...]
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/
H A DGL2JavaView.java96 int shader = GLES20.glCreateShader(shaderType);
97 if (shader != 0) {
98 GLES20.glShaderSource(shader, source);
99 GLES20.glCompileShader(shader);
101 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
103 Log.e(TAG, "Could not compile shader " + shaderType + ":");
104 Log.e(TAG, GLES20.glGetShaderInfoLog(shader));
105 GLES20.glDeleteShader(shader);
106 shader = 0;
109 return shader;
[all...]
/frameworks/rs/driver/
H A DrsdProgramFragment.h25 const char* shader, size_t shaderLen,
H A DrsdProgramVertex.h24 const char* shader, size_t shaderLen,
H A DrsdProgram.cpp37 const char* shader, size_t shaderLen,
40 RsdShader *drv = new RsdShader(pv, GL_VERTEX_SHADER, shader, shaderLen,
74 ALOGV("Destroying vertex shader with ID %u", (uint32_t)pv);
84 const char* shader, size_t shaderLen,
87 RsdShader *drv = new RsdShader(pf, GL_FRAGMENT_SHADER, shader, shaderLen,
108 ALOGV("Destroying fragment shader with ID %u", (uint32_t)pf);
36 rsdProgramVertexInit(const Context *rsc, const ProgramVertex *pv, const char* shader, size_t shaderLen, const char** textureNames, size_t textureNamesCount, const size_t *textureNamesLength) argument
83 rsdProgramFragmentInit(const Context *rsc, const ProgramFragment *pf, const char* shader, size_t shaderLen, const char** textureNames, size_t textureNamesCount, const size_t *textureNamesLength) argument
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp34 GLuint shader = glCreateShader(shaderType); local
35 if (shader) {
36 glShaderSource(shader, 1, &pSource, NULL);
37 glCompileShader(shader);
39 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
42 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
46 glGetShaderInfoLog(shader, infoLen, NULL, buf);
47 ALOGE("Could not compile shader %d:\n%s\n", shaderType, buf);
50 glDeleteShader(shader);
51 shader
[all...]
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
H A DTestLatencyView.java170 int shader = GLES20.glCreateShader(shaderType);
171 if (shader != 0) {
172 GLES20.glShaderSource(shader, source);
173 GLES20.glCompileShader(shader);
175 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
177 Log.e(TAG, "Could not compile shader " + shaderType + ":");
178 Log.e(TAG, GLES20.glGetShaderInfoLog(shader));
179 GLES20.glDeleteShader(shader);
180 shader = 0;
183 return shader;
[all...]
/frameworks/native/opengl/tests/gl2_basic/
H A Dgl2_basic.cpp77 GLuint shader = glCreateShader(shaderType); local
78 if (shader) {
79 glShaderSource(shader, 1, &pSource, NULL);
80 glCompileShader(shader);
82 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
85 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
89 glGetShaderInfoLog(shader, infoLen, NULL, buf);
90 fprintf(stderr, "Could not compile shader %d:\n%s\n",
94 glDeleteShader(shader);
95 shader
[all...]
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java236 int shader = GLES20.glCreateShader(shaderType);
237 if (shader != 0) {
238 GLES20.glShaderSource(shader, source);
239 GLES20.glCompileShader(shader);
241 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
243 Log.e(TAG, "Could not compile shader " + shaderType + ":");
244 Log.e(TAG, GLES20.glGetShaderInfoLog(shader));
245 GLES20.glDeleteShader(shader);
246 shader = 0;
249 return shader;
[all...]
/frameworks/native/opengl/tests/gl2_yuvtex/
H A Dgl2_yuvtex.cpp84 GLuint shader = glCreateShader(shaderType); local
85 if (shader) {
86 glShaderSource(shader, 1, &pSource, NULL);
87 glCompileShader(shader);
89 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
92 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
96 glGetShaderInfoLog(shader, infoLen, NULL, buf);
97 fprintf(stderr, "Could not compile shader %d:\n%s\n",
105 glGetShaderInfoLog(shader, 0x1000, NULL, buf);
106 fprintf(stderr, "Could not compile shader
[all...]
/frameworks/native/opengl/tests/gl2_copyTexImage/
H A Dgl2_copyTexImage.cpp77 GLuint shader = glCreateShader(shaderType); local
78 if (shader) {
79 glShaderSource(shader, 1, &pSource, NULL);
80 glCompileShader(shader);
82 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
85 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
89 glGetShaderInfoLog(shader, infoLen, NULL, buf);
90 fprintf(stderr, "Could not compile shader %d:\n%s\n",
94 glDeleteShader(shader);
95 shader
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DNativeWindowRenderer.cpp285 GLuint shader = glCreateShader(shaderType); local
288 glShaderSource(shader, 1, &pSource, NULL);
291 glCompileShader(shader);
295 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
298 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
301 glGetShaderInfoLog(shader, infoLen, NULL, buf);
305 glDeleteShader(shader);
306 shader = 0;
308 *outShader = shader;
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
H A DGL2CameraEye.java383 int shader = GLES20.glCreateShader(shaderType);
384 if (shader != 0) {
385 GLES20.glShaderSource(shader, source);
386 GLES20.glCompileShader(shader);
388 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
390 Log.e(TAG, "Could not compile shader " + shaderType + ":");
391 Log.e(TAG, GLES20.glGetShaderInfoLog(shader));
392 GLES20.glDeleteShader(shader);
393 shader = 0;
396 return shader;
[all...]

Completed in 189 milliseconds

123