/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/ |
Renderer.cpp | 39 GLuint shader = glCreateShader(shaderType); local 40 if (shader) { 41 glShaderSource(shader, 1, &pSource, NULL); 42 glCompileShader(shader); 44 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); 47 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 51 glGetShaderInfoLog(shader, infoLen, NULL, buf); 52 LOGE("Could not compile shader %d:\n%s\n", 56 glDeleteShader(shader); 57 shader = 0 [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/material/ |
Technique.java | 36 import com.jme3.shader.*; 53 private Shader shader; field in class:Technique 90 * Returns the shader currently used by this technique instance. 95 * @return the shader currently used by this technique instance. 97 public Shader getShader() { 98 return shader; 119 if (shader != null) { 132 if (shader != null) { 136 shader.removeUniform(paramName) [all...] |
/frameworks/base/core/jni/android/graphics/ |
Shader.cpp | 18 jfieldID shader; member in struct:__anon30023 54 static void Shader_destructor(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* skiaShader) 56 SkSafeUnref(shader); 67 static void Shader_setLocalMatrix(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* skiaShader, 70 if (shader) { 72 shader->resetLocalMatrix(); 75 shader->setLocalMatrix(*matrix); 96 static SkiaShader* BitmapShader_postConstructor(JNIEnv* env, jobject o, SkShader* shader, 99 SkiaShader* skiaShader = new SkiaBitmapShader(bitmap, shader, 101 NULL, (shader->getFlags() & SkShader::kOpaqueAlpha_Flag) == 0) 133 SkShader* shader = SkGradientShader::CreateLinear(pts, local 279 SkShader* shader = SkGradientShader::CreateRadial(center, local 384 SkShader* shader = SkGradientShader::CreateSweep(SkFloatToScalar(x), local [all...] |
/external/chromium_org/third_party/angle/src/third_party/compiler/ |
README.angle | 9 Implements clamping of array indexing expressions during shader translation.
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/res/raw/ |
shader2v.glsl | 5 // This is where actual shader code begins
|
shadercubev.glsl | 3 // This is where actual shader code begins
|
/frameworks/base/tests/RenderScriptTests/PerfTest/res/raw/ |
shader2v.glsl | 5 // This is where actual shader code begins
|
/external/chromium_org/gpu/command_buffer/service/ |
program_cache.h | 20 class Shader; 54 Shader* shader_a, 56 Shader* shader_b, 65 const Shader* shader_a, 67 const Shader* shader_b, 85 // called by implementing class after a shader was successfully cached 89 void ComputeShaderHash(const std::string& shader,
|
gles2_cmd_copy_texture_chromium.cc | 18 #define SHADER(src) { false, SHADER0(src), } 56 SHADER( 65 SHADER( 72 SHADER( 79 SHADER( 87 SHADER( 96 SHADER( 104 SHADER( 253 for (int shader = 0; shader < kNumShaders; ++shader) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
r300_fs.h | 38 /* Whether the shader was replaced by a dummy one due to a shader 66 /* Currently-bound fragment shader. */ 67 struct r300_fragment_shader_code* shader; member in struct:r300_fragment_shader 77 /* Return TRUE if the shader was switched and should be re-emitted. */ 84 return (fs->shader->code.writes_depth) ? TRUE : FALSE; 91 return (fs->shader->write_all) ? TRUE : FALSE;
|
/external/mesa3d/src/gallium/drivers/r300/ |
r300_fs.h | 38 /* Whether the shader was replaced by a dummy one due to a shader 66 /* Currently-bound fragment shader. */ 67 struct r300_fragment_shader_code* shader; member in struct:r300_fragment_shader 77 /* Return TRUE if the shader was switched and should be re-emitted. */ 84 return (fs->shader->code.writes_depth) ? TRUE : FALSE; 91 return (fs->shader->write_all) ? TRUE : FALSE;
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
ResourceModifiers.java | 28 import android.graphics.Shader; 63 mRepeatShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, 64 Shader.TileMode.REPEAT); 66 mTranslatedShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, 67 Shader.TileMode.REPEAT); 73 mScaledShader = new BitmapShader(mBitmap, Shader.TileMode.MIRROR, 74 Shader.TileMode.MIRROR); 80 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 88 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); 91 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 25 import android.graphics.Shader; 48 colors, positions, Shader.TileMode.CLAMP); 58 colors, positions, Shader.TileMode.CLAMP); 68 colors, positions, Shader.TileMode.CLAMP); 77 colors, null, Shader.TileMode.CLAMP); 85 colors, null, Shader.TileMode.REPEAT); 93 colors, null, Shader.TileMode.MIRROR); 101 colors, null, Shader.TileMode.CLAMP); 109 colors, null, Shader.TileMode.CLAMP); 117 colors, null, Shader.TileMode.CLAMP) [all...] |
/external/chromium_org/mojo/apps/js/ |
main.js | 56 var shader = gl.createShader(gl.VERTEX_SHADER); 57 console.log("shader is: ", String(shader)); 58 gl.shaderSource(shader, VERTEX_SHADER_SOURCE); 59 gl.compileShader(shader);
|
/frameworks/base/graphics/java/android/graphics/ |
BitmapShader.java | 20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or 23 public class BitmapShader extends Shader { 35 * Call this to create a new shader that will draw with a bitmap. 37 * @param bitmap The bitmap to use inside the shader 54 protected Shader copy() {
|
/cts/tests/tests/opengl/libopengltest/ |
gl2_jni_libone.cpp | 55 LOGI("Attach Shader Error : %d\n", data.mShaderError); 56 LOGI("Shader Count : %d\n", data.mShaderCount); 61 LOGI("Attach Shader Error : %d\n", data.mShaderError); 65 LOGI("Attach Shader Error : %d\n", data.mShaderError); 69 LOGI("Attach Shader Error : %d\n", data.mShaderError); 70 LOGI("Shader Count : %d\n", data.mShaderCount); 75 LOGI("Attach Shader Error : %d\n", data.mShaderError); 79 LOGI("Attach Shader Error : %d\n", data.mShaderError); 83 LOGI("Attach Shader Error : %d\n", data.mShaderError); 87 LOGI("Attach Shader Error : %d\n", data.mShaderError) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/custom/ |
CustomFilterCompiledProgram.cpp | 80 Platform3DObject shader = m_context->createShader(shaderType); local 81 m_context->shaderSource(shader, shaderString); 82 m_context->compileShader(shader); 85 m_context->getShaderiv(shader, GL_COMPILE_STATUS, &compiled); 87 // FIXME: This is an invalid shader. Throw some errors. 89 m_context->deleteShader(shader); 93 return shader; 106 // FIXME: Invalid vertex/fragment shader combination. Throw some errors here. 129 // symbol css_u_texture to the shader code, which references the texture of the element.
|
/frameworks/base/docs/html/training/graphics/opengl/ |
draw.jd | 71 <li><em>Vertex Shader</em> - OpenGL ES graphics code for rendering the vertices of a shape.</li> 72 <li><em>Fragment Shader</em> - OpenGL ES code for rendering the face of a shape with colors or 78 <p>You need at least one vertex shader to draw a shape and one fragment shader to color that shape. 103 // create a vertex shader type (GLES20.GL_VERTEX_SHADER) 104 // or a fragment shader type (GLES20.GL_FRAGMENT_SHADER) 105 int shader = GLES20.glCreateShader(type); 107 // add the source code to the shader and compile it 108 GLES20.glShaderSource(shader, shaderCode); 109 GLES20.glCompileShader(shader); [all...] |
/external/chromium_org/cc/output/ |
program_binding.cc | 80 unsigned shader = context->CreateShader(type); local 81 if (!shader) 87 shader, 1, 90 context->CompileShader(shader); 93 context->GetShaderiv(shader, GL_COMPILE_STATUS, &compiled); 97 return shader;
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
tgsi_scan.h | 37 * Shader summary info 66 boolean reads_position; /**< does fragment shader read position? */ 67 boolean reads_z; /**< does fragment shader read depth? */ 68 boolean writes_z; /**< does fragment shader write Z value? */ 69 boolean writes_stencil; /**< does fragment shader write stencil value? */ 70 boolean writes_edgeflag; /**< vertex shader outputs edgeflag */
|
/external/chromium_org/third_party/skia/src/core/ |
SkFilterShader.cpp | 15 SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) { 16 fShader = shader; 17 shader->ref(); 44 // if the filter doesn't support 16bit, clear the matching bit in the shader 48 // if the filter might change alpha, clear the opaque flag in the shader 93 str->append("Shader: ");
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_scan.h | 37 * Shader summary info 66 boolean reads_position; /**< does fragment shader read position? */ 67 boolean reads_z; /**< does fragment shader read depth? */ 68 boolean writes_z; /**< does fragment shader write Z value? */ 69 boolean writes_stencil; /**< does fragment shader write stencil value? */ 70 boolean writes_edgeflag; /**< vertex shader outputs edgeflag */
|
/external/skia/src/core/ |
SkFilterShader.cpp | 15 SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) { 16 fShader = shader; 17 shader->ref(); 44 // if the filter doesn't support 16bit, clear the matching bit in the shader 48 // if the filter might change alpha, clear the opaque flag in the shader 93 str->append("Shader: ");
|
/external/chromium_org/third_party/skia/include/effects/ |
SkGradientShader.h | 31 /** Returns a shader that generates a linear gradient between the two 34 CreateLinear returns a shader with a reference count of 1. 35 The caller should decrement the shader's reference count when done with the shader. 54 /** Returns a shader that generates a radial gradient given the center and radius. 56 CreateRadial returns a shader with a reference count of 1. 57 The caller should decrement the shader's reference count when done with the shader. 77 /** Returns a shader that generates a radial gradient given the start position, start radius, end position and end radius. 79 CreateTwoPointRadial returns a shader with a reference count of 1 [all...] |
/external/skia/include/effects/ |
SkGradientShader.h | 31 /** Returns a shader that generates a linear gradient between the two 34 CreateLinear returns a shader with a reference count of 1. 35 The caller should decrement the shader's reference count when done with the shader. 54 /** Returns a shader that generates a radial gradient given the center and radius. 56 CreateRadial returns a shader with a reference count of 1. 57 The caller should decrement the shader's reference count when done with the shader. 77 /** Returns a shader that generates a radial gradient given the start position, start radius, end position and end radius. 79 CreateTwoPointRadial returns a shader with a reference count of 1 [all...] |