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

1234

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetShaderInfoLog.java1 // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length,
5 int shader
H A DglShaderSource.java1 // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length )
4 int shader,
3 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 )
16 int shader,
22 // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
25 int shader
3 glGetShaderSource( int shader, int bufsize, int[] length, int lengthOffset, byte[] source, int sourceOffset ) argument
15 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 DglGetProgramPipelineInfoLog.cpp3 /* void glGetProgramPipelineInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */
4 static jstring android_glGetProgramPipelineInfoLog(JNIEnv *_env, jobject, jint shader) { argument
6 glGetProgramPipelineiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
15 glGetProgramPipelineInfoLog(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.cpp431 // program for A8, unmodulated, texture w/o shader (black text/path textures) is equivalent
465 String8 shader(gVS_Header_Attributes);
467 shader.append(gVS_Header_Attributes_TexCoords);
470 shader.append(gVS_Header_Attributes_VertexAlphaParameters);
473 shader.append(gVS_Header_Attributes_Colors);
476 shader.append(gVS_Header_Uniforms);
478 shader.append(gVS_Header_Uniforms_TextureTransform);
481 shader.append(gVS_Header_Uniforms_HasGradient);
484 shader.append(gVS_Header_Uniforms_HasBitmap);
487 shader
542 shaderOp(const ProgramDescription& description, String8& shader, const int modulateOp, const char** snippets) argument
551 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 DSkiaShader.h39 * Type of Skia shader in use.
51 static SkiaShaderType getType(const SkShader& shader);
53 const Extensions& extensions, const SkShader& shader);
55 GLuint* textureUnit, const Extensions& extensions, const SkShader& shader);
61 const Extensions& extensions, const SkShader& shader) {
62 // This shader is unsupported. Skip it.
65 GLuint* textureUnit, const Extensions& extensions, const SkShader& shader) {
66 // This shader is unsupported. Skip it.
71 * A shader that draws a layer.
76 const Extensions& extensions, const SkShader& shader);
60 describe(Caches* caches, ProgramDescription& description, const Extensions& extensions, const SkShader& shader) argument
64 setupProgram(Caches* caches, const mat4& modelViewMatrix, GLuint* textureUnit, const Extensions& extensions, const SkShader& shader) argument
[all...]
H A DProgramCache.h54 void generateBlend(String8& shader, const char* name, SkXfermode::Mode mode);
55 void generateTextureWrap(String8& shader, GLenum wrapS, GLenum wrapT);
57 void printLongString(const String8& shader) const;
H A DSkiaShader.cpp87 SkiaShaderType SkiaShader::getType(const SkShader& shader) { argument
88 // First check for a gradient shader.
89 switch (shader.asAGradient(NULL)) {
91 // Not a gradient shader. Fall through to check for other types.
102 // The shader is not a gradient. Check for a bitmap shader.
103 if (shader.asABitmap(NULL, NULL, NULL) == SkShader::kDefault_BitmapType) {
109 if (shader.asACompose(&rec)) {
121 if (shader.asACustomShader(NULL)) {
129 const Extensions& extensions, const SkShader& shader);
150 describe(Caches* caches, ProgramDescription& description, const Extensions& extensions, const SkShader& shader) argument
155 setupProgram(Caches* caches, const mat4& modelViewMatrix, GLuint* textureUnit, const Extensions& extensions, const SkShader& shader) argument
165 describe(Caches*, ProgramDescription& description, const Extensions&, const SkShader& shader) argument
170 setupProgram(Caches* caches, const mat4& modelViewMatrix, GLuint* textureUnit, const Extensions&, const SkShader& shader) argument
253 describe(Caches* caches, ProgramDescription& description, const Extensions& extensions, const SkShader& shader) argument
263 setupProgram(Caches* caches, const mat4& modelViewMatrix, GLuint* textureUnit, const Extensions& extensions, const SkShader& shader) argument
341 describe(Caches*, ProgramDescription& description, const Extensions& extensions, const SkShader& shader) argument
366 setupProgram(Caches* caches, const mat4& modelViewMatrix, GLuint* textureUnit, const Extensions&, const SkShader& shader) argument
437 describe(Caches* caches, ProgramDescription& description, const Extensions& extensions, const SkShader& shader) argument
454 setupProgram(Caches* caches, const mat4& modelViewMatrix, GLuint* textureUnit, const Extensions& extensions, const SkShader& shader) argument
[all...]
H A DProgram.cpp137 GLuint shader = glCreateShader(type); local
138 glShaderSource(shader, 1, &source, 0);
139 glCompileShader(shader);
142 glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
144 ALOGE("Error while compiling this shader:\n===\n%s\n===", source);
148 glGetShaderInfoLog(shader, sizeof(log), 0, &log[0]);
153 return shader;
/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/services/surfaceflinger/RenderEngine/
H A DProgram.cpp98 GLuint shader = glCreateShader(type); local
99 glShaderSource(shader, 1, &source, 0);
100 glCompileShader(shader);
102 glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
107 glGetShaderInfoLog(shader, sizeof(log), 0, log);
108 ALOGE("Error while compiling shader: \n%s\n%s", source, log);
109 glDeleteShader(shader);
112 return shader;
116 GLuint shader = GL_FRAGMENT_SHADER ? mFragmentShader : mVertexShader; local
118 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGT
[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/base/core/jni/android/graphics/
H A DShader.cpp18 jfieldID shader; member in struct:__anon786
55 SkShader* shader = reinterpret_cast<SkShader*>(shaderHandle); local
56 SkSafeUnref(shader);
61 SkShader* shader = reinterpret_cast<SkShader*>(shaderHandle); local
63 if (shader) {
65 shader->setLocalMatrix(*matrix);
67 shader->resetLocalMatrix();
69 shader->setGenerationID(shader->getGenerationID() + 1);
107 SkShader* shader local
151 SkShader* shader = SkGradientShader::CreateRadial(center, radius, local
190 SkShader* shader = SkGradientShader::CreateSweep(x, y, local
216 SkShader* shader = new SkComposeShader(shaderA, shaderB, mode); local
228 SkShader* shader = new SkComposeShader(shaderA, shaderB, mode); local
[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 %p", (void*)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 %p", (void*)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/libs/gui/tests/
H A DGLTest.cpp254 GLuint shader = glCreateShader(shaderType); local
256 if (shader) {
257 glShaderSource(shader, 1, &pSource, NULL);
259 glCompileShader(shader);
262 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
266 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
271 glGetShaderInfoLog(shader, infoLen, NULL, buf);
279 glGetShaderInfoLog(shader, 0x1000, NULL, buf);
285 glDeleteShader(shader);
286 shader
[all...]
/frameworks/av/cmds/screenrecord/
H A DProgram.cpp38 // Simple vertex shader. Texture coord calc includes matrix for GLConsumer
51 // Trivial fragment shader for external texture.
61 // Trivial fragment shader for mundane texture.
139 GLuint shader = glCreateShader(shaderType); local
140 if (shader == 0) {
145 glShaderSource(shader, 1, &src, NULL);
146 glCompileShader(shader);
149 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
151 ALOGE("Compile of shader type %d failed", shaderType);
153 glGetShaderiv(shader, GL_INFO_LOG_LENGT
[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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DViewFilter.java131 protected void setupShader(ImageShader shader, Rect frameRect, Rect outputRect) { argument
132 shader.setTargetRect(getTargetRect(frameRect, outputRect));
133 shader.setClearsOutput(true);
134 shader.setClearColor(mClearColor);
136 shader.setSourceRect(0f, 1f, 1f, -1f);

Completed in 371 milliseconds

1234