/external/chromium_org/third_party/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/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/chromium_org/third_party/mesa/src/src/gallium/drivers/radeonsi/ |
si_state_draw.c | 40 static void si_pipe_shader_vs(struct pipe_context *ctx, struct si_pipe_shader *shader) 48 if (si_pipe_shader_create(ctx, shader)) 51 si_pm4_delete_state(rctx, vs, shader->pm4); 52 pm4 = shader->pm4 = CALLOC_STRUCT(si_pm4_state); 60 for (nparams = 0, i = 0 ; i < shader->shader.noutput; i++) { 61 if (shader->shader.output[i].name != TGSI_SEMANTIC_POSITION) 76 va = r600_resource_va(ctx->screen, (void *)shader->bo); 77 si_pm4_add_bo(pm4, shader->bo, RADEON_USAGE_READ) [all...] |
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_state_draw.c | 40 static void si_pipe_shader_vs(struct pipe_context *ctx, struct si_pipe_shader *shader) 48 if (si_pipe_shader_create(ctx, shader)) 51 si_pm4_delete_state(rctx, vs, shader->pm4); 52 pm4 = shader->pm4 = CALLOC_STRUCT(si_pm4_state); 60 for (nparams = 0, i = 0 ; i < shader->shader.noutput; i++) { 61 if (shader->shader.output[i].name != TGSI_SEMANTIC_POSITION) 76 va = r600_resource_va(ctx->screen, (void *)shader->bo); 77 si_pm4_add_bo(pm4, shader->bo, RADEON_USAGE_READ) [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/ |
Shader.cpp | 8 // Shader.cpp: Implements the gl::Shader class and its derived classes 9 // VertexShader and FragmentShader. Implements GL shader objects and related 12 #include "libGLESv2/Shader.h" 22 void *Shader::mFragmentCompiler = NULL; 23 void *Shader::mVertexCompiler = NULL; 25 Shader::Shader(ResourceManager *manager, const rx::Renderer *renderer, GLuint handle) 39 Shader::~Shader() [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/ |
vl_compositor.c | 58 struct ureg_program *shader; local 64 shader = ureg_create(TGSI_PROCESSOR_VERTEX); 65 if (!shader) 68 vpos = ureg_DECL_vs_input(shader, 0); 69 vtex = ureg_DECL_vs_input(shader, 1); 70 color = ureg_DECL_vs_input(shader, 2); 71 tmp = ureg_DECL_temporary(shader); 72 o_vpos = ureg_DECL_output(shader, TGSI_SEMANTIC_POSITION, VS_O_VPOS); 73 o_color = ureg_DECL_output(shader, TGSI_SEMANTIC_COLOR, VS_O_COLOR); 74 o_vtex = ureg_DECL_output(shader, TGSI_SEMANTIC_GENERIC, VS_O_VTEX) 130 struct ureg_program *shader; local 173 struct ureg_program *shader; local 265 struct ureg_program *shader; local 314 struct ureg_program *shader; local [all...] |
/external/mesa3d/src/gallium/auxiliary/vl/ |
vl_compositor.c | 58 struct ureg_program *shader; local 64 shader = ureg_create(TGSI_PROCESSOR_VERTEX); 65 if (!shader) 68 vpos = ureg_DECL_vs_input(shader, 0); 69 vtex = ureg_DECL_vs_input(shader, 1); 70 color = ureg_DECL_vs_input(shader, 2); 71 tmp = ureg_DECL_temporary(shader); 72 o_vpos = ureg_DECL_output(shader, TGSI_SEMANTIC_POSITION, VS_O_VPOS); 73 o_color = ureg_DECL_output(shader, TGSI_SEMANTIC_COLOR, VS_O_COLOR); 74 o_vtex = ureg_DECL_output(shader, TGSI_SEMANTIC_GENERIC, VS_O_VTEX) 130 struct ureg_program *shader; local 173 struct ureg_program *shader; local 265 struct ureg_program *shader; local 314 struct ureg_program *shader; local [all...] |
/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...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
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/chromium_org/gpu/command_buffer/service/ |
shader_manager_unittest.cc | 48 // Check we can create shader. 49 Shader* info0 = manager_.CreateShader( 51 // Check shader got created. 53 Shader* shader1 = manager_.GetShader(kClient1Id); 55 // Check we get nothing for a non-existent shader. 57 // Check we can't get the shader after we remove it. 66 // Check we can create shader. 67 Shader* shader1 = manager_.CreateShader( 69 // Check shader got created. 86 // Check we can create shader [all...] |
/external/chromium_org/third_party/mesa/src/src/glsl/glcpp/ |
pp.c | 75 in_directive(const char *shader, const char *ptr) 77 assert(ptr >= shader); 80 for (; ptr >= shader && *ptr != '#'; ptr--) { 84 if (ptr >= shader) { 86 for (ptr--; ptr >= shader && isblank(*ptr); ptr--); 88 if (ptr < shader || *ptr == '\n') 99 remove_line_continuations(glcpp_parser_t *ctx, const char *shader) 104 const char *search_start = shader; 110 int n = newline - shader; 126 if (in_directive(shader, backslash)) [all...] |
/external/mesa3d/src/glsl/glcpp/ |
pp.c | 75 in_directive(const char *shader, const char *ptr) 77 assert(ptr >= shader); 80 for (; ptr >= shader && *ptr != '#'; ptr--) { 84 if (ptr >= shader) { 86 for (ptr--; ptr >= shader && isblank(*ptr); ptr--); 88 if (ptr < shader || *ptr == '\n') 99 remove_line_continuations(glcpp_parser_t *ctx, const char *shader) 104 const char *search_start = shader; 110 int n = newline - shader; 126 if (in_directive(shader, backslash)) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_gs.h | 40 * Private version of the compiled geometry shader 71 * The vertex shader can emit any number of vertices as long as it's 72 * smaller than the GS_MAX_OUTPUT_VERTICES shader property. 74 int draw_geometry_shader_run(struct draw_geometry_shader *shader, 82 void draw_geometry_shader_prepare(struct draw_geometry_shader *shader, 85 void draw_geometry_shader_delete(struct draw_geometry_shader *shader); 87 int draw_gs_max_output_vertices(struct draw_geometry_shader *shader,
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_state_sampler.c | 69 unsigned shader, 77 assert(shader < PIPE_SHADER_TYPES); 78 assert(start + num <= Elements(llvmpipe->samplers[shader])); 81 if (start + num <= llvmpipe->num_samplers[shader] && 82 !memcmp(llvmpipe->samplers[shader] + start, samplers, 91 llvmpipe->samplers[shader][start + i] = samplers[i]; 96 unsigned j = MAX2(llvmpipe->num_samplers[shader], start + num); 97 while (j > 0 && llvmpipe->samplers[shader][j - 1] == NULL) 99 llvmpipe->num_samplers[shader] = j; 102 if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_GEOMETRY) [all...] |
lp_state_fs.c | 35 * - fragment shader 48 * the fragment shader needs typically to be done in floats, but the 100 /** Fragment shader number (for debugging) */ 212 * Generate the fragment shader, depth/stencil test, and alpha tests. 218 struct lp_fragment_shader *shader, 235 const struct tgsi_token *tokens = shader->base.tokens; 243 boolean simple_shader = (shader->info.base.file_count[TGSI_FILE_SAMPLER] == 0 && 244 shader->info.base.num_inputs < 3 && 245 shader->info.base.num_instructions < 8); 261 if (!shader->info.base.writes_z) 1307 struct lp_fragment_shader *shader; local 1462 struct lp_fragment_shader *shader = fs; local 1663 struct lp_fragment_shader *shader = lp->fs; local [all...] |
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_gs.h | 40 * Private version of the compiled geometry shader 71 * The vertex shader can emit any number of vertices as long as it's 72 * smaller than the GS_MAX_OUTPUT_VERTICES shader property. 74 int draw_geometry_shader_run(struct draw_geometry_shader *shader, 82 void draw_geometry_shader_prepare(struct draw_geometry_shader *shader, 85 void draw_geometry_shader_delete(struct draw_geometry_shader *shader); 87 int draw_gs_max_output_vertices(struct draw_geometry_shader *shader,
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_state_sampler.c | 69 unsigned shader, 77 assert(shader < PIPE_SHADER_TYPES); 78 assert(start + num <= Elements(llvmpipe->samplers[shader])); 81 if (start + num <= llvmpipe->num_samplers[shader] && 82 !memcmp(llvmpipe->samplers[shader] + start, samplers, 91 llvmpipe->samplers[shader][start + i] = samplers[i]; 96 unsigned j = MAX2(llvmpipe->num_samplers[shader], start + num); 97 while (j > 0 && llvmpipe->samplers[shader][j - 1] == NULL) 99 llvmpipe->num_samplers[shader] = j; 102 if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_GEOMETRY) [all...] |
lp_state_fs.c | 35 * - fragment shader 48 * the fragment shader needs typically to be done in floats, but the 100 /** Fragment shader number (for debugging) */ 212 * Generate the fragment shader, depth/stencil test, and alpha tests. 218 struct lp_fragment_shader *shader, 235 const struct tgsi_token *tokens = shader->base.tokens; 243 boolean simple_shader = (shader->info.base.file_count[TGSI_FILE_SAMPLER] == 0 && 244 shader->info.base.num_inputs < 3 && 245 shader->info.base.num_instructions < 8); 261 if (!shader->info.base.writes_z) 1307 struct lp_fragment_shader *shader; local 1462 struct lp_fragment_shader *shader = fs; local 1663 struct lp_fragment_shader *shader = lp->fs; local [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/shader/ |
Shader.java | 33 package com.jme3.shader;
47 public final class Shader extends NativeObject implements Savable {
52 * True if the shader is fully compiled & linked.
69 * Maps attribute name to the location of the attribute in the shader.
74 * Type of shader. The shader will control the pipeline of it's type.
94 * Shader source describes a shader object in OpenGL. Each shader source
110 throw new NullPointerException("The shader type must be specified"); 294 ShaderSource shader = new ShaderSource(type); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
sp_state_shader.c | 46 * Create a new fragment shader variant. 54 struct pipe_shader_state *stipple_fs = NULL, *curfs = &fs->shader; 59 /* get new shader that implements polygon stippling */ 80 &fs->shader); 132 state->shader.tokens = tgsi_dup_tokens(templ->tokens); 136 &state->shader); 138 FREE((void *) state->shader.tokens); 160 /* This depends on the current fragment shader and must always be 200 FREE((void *) state->shader.tokens); 216 /* copy shader tokens, the ones passed in will go away [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
shaderapi.c | 56 /** Define this to enable shader substitution (see below) */ 95 * Initialize context's shader state. 116 ctx->Shader.Flags = get_shader_flags(); 121 * Free the per-context shader-related state. 126 _mesa_reference_shader_program(ctx, &ctx->Shader.CurrentVertexProgram, NULL); 127 _mesa_reference_shader_program(ctx, &ctx->Shader.CurrentGeometryProgram, 129 _mesa_reference_shader_program(ctx, &ctx->Shader.CurrentFragmentProgram, 131 _mesa_reference_shader_program(ctx, &ctx->Shader._CurrentFragmentProgram, 133 _mesa_reference_shader_program(ctx, &ctx->Shader.ActiveProgram, NULL); 161 * Confirm that the a shader type is valid and supported by the implementatio 200 struct gl_shader *shader = _mesa_lookup_shader(ctx, name); local 614 struct gl_shader *shader = local 1290 GLcharARB *buffer, *shader; local 1672 const GLuint shader = create_shader(ctx, type); local [all...] |
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_state_shader.c | 46 * Create a new fragment shader variant. 54 struct pipe_shader_state *stipple_fs = NULL, *curfs = &fs->shader; 59 /* get new shader that implements polygon stippling */ 80 &fs->shader); 132 state->shader.tokens = tgsi_dup_tokens(templ->tokens); 136 &state->shader); 138 FREE((void *) state->shader.tokens); 160 /* This depends on the current fragment shader and must always be 200 FREE((void *) state->shader.tokens); 216 /* copy shader tokens, the ones passed in will go away [all...] |
/external/mesa3d/src/mesa/main/ |
shaderapi.c | 56 /** Define this to enable shader substitution (see below) */ 95 * Initialize context's shader state. 116 ctx->Shader.Flags = get_shader_flags(); 121 * Free the per-context shader-related state. 126 _mesa_reference_shader_program(ctx, &ctx->Shader.CurrentVertexProgram, NULL); 127 _mesa_reference_shader_program(ctx, &ctx->Shader.CurrentGeometryProgram, 129 _mesa_reference_shader_program(ctx, &ctx->Shader.CurrentFragmentProgram, 131 _mesa_reference_shader_program(ctx, &ctx->Shader._CurrentFragmentProgram, 133 _mesa_reference_shader_program(ctx, &ctx->Shader.ActiveProgram, NULL); 161 * Confirm that the a shader type is valid and supported by the implementatio 200 struct gl_shader *shader = _mesa_lookup_shader(ctx, name); local 614 struct gl_shader *shader = local 1290 GLcharARB *buffer, *shader; local 1672 const GLuint shader = create_shader(ctx, type); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
r300_fs.c | 89 struct r300_fragment_shader_code *shader) 94 compiler->OutputColor[0] = shader->info.num_outputs; 95 compiler->OutputColor[1] = shader->info.num_outputs; 96 compiler->OutputColor[2] = shader->info.num_outputs; 97 compiler->OutputColor[3] = shader->info.num_outputs; 98 compiler->OutputDepth = shader->info.num_outputs; 101 for(i = 0; i < shader->info.num_outputs; ++i) { 102 switch(shader->info.output_semantic_name[i]) { 223 struct r300_fragment_shader_code* shader, 228 struct r300_fragment_shader_code* shader) [all...] |
/external/mesa3d/src/gallium/drivers/r300/ |
r300_fs.c | 89 struct r300_fragment_shader_code *shader) 94 compiler->OutputColor[0] = shader->info.num_outputs; 95 compiler->OutputColor[1] = shader->info.num_outputs; 96 compiler->OutputColor[2] = shader->info.num_outputs; 97 compiler->OutputColor[3] = shader->info.num_outputs; 98 compiler->OutputDepth = shader->info.num_outputs; 101 for(i = 0; i < shader->info.num_outputs; ++i) { 102 switch(shader->info.output_semantic_name[i]) { 223 struct r300_fragment_shader_code* shader, 228 struct r300_fragment_shader_code* shader) [all...] |