HomeSort by relevance Sort by last modified time
    Searched full:shader (Results 1 - 25 of 634) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/native/opengl/tools/glgen/stubs/gles11/
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
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...]
  /external/mesa3d/src/mesa/main/
shaderobj.c 18 struct gl_shader * shader = (struct gl_shader *)_hieralloc_zero(ctx, sizeof(struct gl_shader), "zr:gl_shader"); local
19 if (shader) {
20 shader->Type = type;
21 shader->Name = name;
22 shader->RefCount = 1;
24 return shader;
27 void _mesa_delete_shader(const void * ctx, struct gl_shader *shader)
29 if (!shader)
31 if (shader->RefCount > 1) {
32 shader->DeletePending = GL_TRUE
    [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/mesa3d/src/glsl/
main.cpp 49 compile_shader(const struct gl_context *ctx, struct gl_shader *shader)
52 new(shader) _mesa_glsl_parse_state(ctx, shader->Type, shader);
54 const char *source = shader->Source;
72 shader->ir = new(shader) exec_list;
74 _mesa_ast_to_hir(shader->ir, state);
78 validate_ir_tree(shader->ir);
79 _mesa_print_ir(shader->ir, state)
    [all...]
glsl_compiler.cpp 150 compile_shader(struct gl_context *ctx, struct gl_shader *shader)
153 new(shader) _mesa_glsl_parse_state(ctx, shader->Type, shader);
155 const char *source = shader->Source;
173 shader->ir = new(shader) exec_list;
175 _mesa_ast_to_hir(shader->ir, state);
179 validate_ir_tree(shader->ir);
180 _mesa_print_ir(shader->ir, state)
248 struct gl_shader *shader = hieralloc_zero(whole_program, gl_shader); local
    [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 470 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.append(gVS_Header_Varyings_HasTexture)
560 String8 shader; local
    [all...]
  /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
  /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...]
  /external/mesa3d/src/glsl/glcpp/
pp.c 67 in_directive(const char *shader, const char *ptr)
69 assert(ptr >= shader);
72 for (; ptr >= shader && *ptr != '#'; ptr--) {
76 if (ptr >= shader) {
78 for (ptr--; ptr >= shader && isblank(*ptr); ptr--);
80 if (ptr < shader || *ptr == '\n')
91 remove_line_continuations(glcpp_parser_t *ctx, const char *shader)
96 const char *search_start = shader;
102 int n = newline - shader;
118 if (in_directive(shader, backslash))
    [all...]
  /external/skia/src/gpu/gl/
GrGLSL.h 39 * Returns a string to include at the begining of a shader to declare the GLSL
52 * Returns a string to set the default fp precision for an entire shader, or
59 * variable from the fragment shader for the color. Otherwise, the shader must
62 * * The variable must be declared in the fragment shader
67 * * Do not declare the variable in the shader.
70 * shader.

Completed in 1080 milliseconds

1 2 3 4 5 6 7 8 91011>>