/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glGetShaderInfoLog.java | 1 // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length, 5 int shader
|
glGetShaderSource.java | 1 // 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
|
glShaderSource.java | 1 // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length ) 4 int shader,
|
glGetProgramInfoLog.cpp | 3 /* void glGetProgramInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 4 static jstring android_glGetProgramInfoLog(JNIEnv *_env, jobject, jint shader) { 6 glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 15 glGetProgramInfoLog(shader, infoLen, NULL, buf);
|
glGetShaderInfoLog.cpp | 3 /* void glGetShaderInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 4 static jstring android_glGetShaderInfoLog(JNIEnv *_env, jobject, jint shader) { 6 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 15 glGetShaderInfoLog(shader, infoLen, NULL, buf);
|
glShaderSource.cpp | 2 /* 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);
|
glGetShaderSource.cpp | 1 /* 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) { 98 glGetShaderiv((GLuint)shader, GL_SHADER_SOURCE_LENGTH, &shaderLen); 107 glGetShaderSource(shader, shaderLen, NULL, buf) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ShaderTest.java | 22 import android.graphics.Shader; 27 new Shader(); 36 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); local 39 shader.setLocalMatrix(m); 40 assertFalse(shader.getLocalMatrix(m)); 42 shader.setLocalMatrix(null); 43 assertFalse(shader.getLocalMatrix(m)) [all...] |
/sdk/emulator/opengl/host/libs/Translator/GLES_V2/ |
ProgramData.cpp | 50 GLuint shader = 0; local 53 shader = AttachedVertexShader; 56 shader = AttachedFragmentShader; 59 return shader; 62 bool ProgramData::attachShader(GLuint shader,GLenum type) { 64 AttachedVertexShader=shader; 68 AttachedFragmentShader=shader; 74 bool ProgramData::isAttached(GLuint shader) { 75 return (AttachedFragmentShader==shader || AttachedVertexShader==shader); [all...] |
/external/skia/legacy/src/animator/ |
SkDrawShader.cpp | 32 if (fPaint->shader != (SkDrawShader*) -1) 34 fPaint->shader = this; 39 void SkDrawShader::addPostlude(SkShader* shader) { 41 shader->setLocalMatrix(matrix->getMatrix()); 59 if (fPaint->shader != (SkDrawShader*) -1) 61 fPaint->shader = this; 70 // note: bitmap shader now supports independent tile modes for X and Y 76 SkShader* shader = SkShader::CreateBitmapShader(image->fBitmap, 79 SkAutoTDelete<SkShader> autoDel(shader); 80 addPostlude(shader); [all...] |
/external/skia/src/animator/ |
SkDrawShader.cpp | 32 if (fPaint->shader != (SkDrawShader*) -1) 34 fPaint->shader = this; 39 void SkDrawShader::addPostlude(SkShader* shader) { 41 shader->setLocalMatrix(matrix->getMatrix()); 59 if (fPaint->shader != (SkDrawShader*) -1) 61 fPaint->shader = this; 70 // note: bitmap shader now supports independent tile modes for X and Y 76 SkShader* shader = SkShader::CreateBitmapShader(image->fBitmap, 79 SkAutoTDelete<SkShader> autoDel(shader); 80 addPostlude(shader); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Shader.java | 20 * Shader is the based class for objects that return horizontal spans of colors 21 * during drawing. A subclass of Shader is installed in a Paint calling 22 * paint.setShader(shader). After that any object (other than a bitmap) that is 23 * drawn with that paint will get its color(s) from the shader. 25 public class Shader { 41 * replicate the edge color if the shader draws outside of its 46 * repeat the shader's image horizontally and vertically 50 * repeat the shader's image horizontally and vertically, alternating 62 * Return true if the shader has a non-identity local matrix. 63 * @param localM If not null, it is set to the shader's local matrix [all...] |
ComposeShader.java | 19 /** A subclass of shader that returns the coposition of two other shaders, combined by 22 public class ComposeShader extends Shader { 27 private final Shader mShaderA; 29 private final Shader mShaderB; 31 /** Create a new compose shader, given shaders A, B, and a combining mode. 32 When the mode is applied, it will be given the result from shader A as its 33 "dst", and the result from shader B as its "src". 34 @param shaderA The colors from this shader are seen as the "dst" by the mode 35 @param shaderB The colors from this shader are seen as the "src" by the mode 39 public ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode) [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
AttachShaderTest.java | 43 * shader count : 2 48 mActivity = getShaderActivity(Constants.SHADER, 1); 56 * Test: Attach an invalid vertex shader to the program handle 58 * shader count : 1 65 mActivity = getShaderActivity(Constants.SHADER, 2); 73 * shader count : 1 80 mActivity = getShaderActivity(Constants.SHADER, 3); 87 * Test: No shader is attached to a program, glGetAttachedShaders returns 89 * shader count : 0 96 mActivity = getShaderActivity(Constants.SHADER, 4) [all...] |
NativeAttachShaderTest.java | 44 * shader count : 2 49 mActivity = getShaderActivity(Constants.SHADER, 1); 57 * Test: Attach an invalid vertex shader to the program handle 59 * shader count : 1 65 mActivity = getShaderActivity(Constants.SHADER, 2); 73 * shader count : 1 79 mActivity = getShaderActivity(Constants.SHADER, 3); 85 * Test: No shader is attached to a program, glGetAttachedShaders returns 87 * shader count : 0 93 mActivity = getShaderActivity(Constants.SHADER, 4) [all...] |
/frameworks/base/libs/hwui/ |
ProgramCache.cpp | 426 // program for A8, unmodulated, texture w/o shader (black text/path textures) is equivalent 460 String8 shader(gVS_Header_Attributes); 462 shader.append(gVS_Header_Attributes_TexCoords); 465 shader.append(gVS_Header_Attributes_AAVertexShapeParameters); 468 shader.append(gVS_Header_Attributes_Colors); 471 shader.append(gVS_Header_Uniforms); 473 shader.append(gVS_Header_Uniforms_TextureTransform); 476 shader.append(gVS_Header_Uniforms_HasGradient); 479 shader.append(gVS_Header_Uniforms_HasBitmap); 482 shader.append(gVS_Header_Uniforms_IsPoint) 547 String8 shader; local [all...] |
/external/skia/src/gpu/gl/debug/ |
GrProgramObj.cpp | 12 void GrProgramObj::AttachShader(GrShaderObj *shader) { 13 shader->ref(); 14 fShaders.push_back(shader);
|
/external/skia/tests/ |
ShaderOpacityTest.cpp | 18 SkShader* shader = SkShader::CreateBitmapShader(bmp, local 20 REPORTER_ASSERT(reporter, shader); 21 REPORTER_ASSERT(reporter, !shader->isOpaque()); 22 shader->unref(); 28 shader = SkShader::CreateBitmapShader(bmp, 30 REPORTER_ASSERT(reporter, shader); 31 REPORTER_ASSERT(reporter, !shader->isOpaque()); 32 shader->unref(); 36 shader = SkShader::CreateBitmapShader(bmp, 38 REPORTER_ASSERT(reporter, shader); [all...] |
/cts/tests/tests/opengl/libopengltest/ |
common.cpp | 24 GLuint shader = glCreateShader(shaderType); local 25 glShaderSource(shader, 1, &pSource, NULL); 26 glCompileShader(shader); 27 return shader;
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
fragment_params.rs | 26 SgFragmentShader *shader = (SgFragmentShader *)rsGetElementAt(*v_out, 0); 28 processAllParams(shader->shaderConst, shader->shaderConstParams, camera); 29 processTextureParams(shader);
|
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
Shader.h | 7 // Shader.h: Defines the abstract gl::Shader class and its concrete derived 8 // classes VertexShader and FragmentShader. Implements GL shader objects and 43 class Shader 48 Shader(ResourceManager *manager, GLuint handle); 50 virtual ~Shader(); 75 DISALLOW_COPY_AND_ASSIGN(Shader); 85 unsigned int mRefCount; // Number of program objects this shader is attached to 86 bool mDeleteStatus; // Flag to indicate that the shader can be deleted when no longer in use 121 class VertexShader : public Shader [all...] |
Shader.cpp | 7 // Shader.cpp: Implements the gl::Shader class and its derived classes 8 // VertexShader and FragmentShader. Implements GL shader objects and related 11 #include "libGLESv2/Shader.h" 21 void *Shader::mFragmentCompiler = NULL; 22 void *Shader::mVertexCompiler = NULL; 24 Shader::Shader(ResourceManager *manager, GLuint handle) : mHandle(handle), mResourceManager(manager) 30 // Perform a one-time initialization of the shader compiler (or after being destructed by releaseCompiler) 60 Shader::~Shader( [all...] |
/external/skia/include/core/ |
SkComposeShader.h | 20 This subclass of shader returns the coposition of two other shaders, combined by 25 /** Create a new compose shader, given shaders A, B, and a combining xfermode mode. 26 When the xfermode is called, it will be given the result from shader A as its 27 "dst", and the result of from shader B as its "src". 29 @param shaderA The colors from this shader are seen as the "dst" by the xfermode 30 @param shaderB The colors from this shader are seen as the "src" by the xfermode
|
/external/skia/legacy/include/core/ |
SkComposeShader.h | 20 This subclass of shader returns the coposition of two other shaders, combined by 25 /** Create a new compose shader, given shaders A, B, and a combining xfermode mode. 26 When the xfermode is called, it will be given the result from shader A as its 27 "dst", and the result of from shader B as its "src". 29 @param shaderA The colors from this shader are seen as the "dst" by the xfermode 30 @param shaderB The colors from this shader are seen as the "src" by the xfermode
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
GLToolbox.java | 24 int shader = GLES20.glCreateShader(shaderType); local 25 if (shader != 0) { 26 GLES20.glShaderSource(shader, source); 27 GLES20.glCompileShader(shader); 29 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); 31 String info = GLES20.glGetShaderInfoLog(shader); 32 GLES20.glDeleteShader(shader); 33 shader = 0; 34 throw new RuntimeException("Could not compile shader " + 38 return shader; [all...] |