Searched defs:shader (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/native/opengl/tools/glgen/stubs/gles11/
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 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);
16 glGetShaderInfoLog(shader, infoLen, &outLen, buf);
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 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) {
46 (GLuint)shader,
66 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */
69 (JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) {
81 (GLuint)shader,
91 /* void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) */
92 static jstring android_glGetShaderSource(JNIEnv *_env, jobject, jint shader) { argument
94 glGetShaderiv((GLuint)shader, GL_SHADER_SOURCE_LENGTH, &shaderLen);
103 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
68 android_glGetShaderSource__IILjava_nio_IntBuffer_2B(JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) argument
[all...]
/frameworks/rs/driver/
H A DrsdProgram.cpp40 const char* shader, size_t shaderLen,
43 RsdShader *drv = new RsdShader(pv, GL_VERTEX_SHADER, shader, shaderLen,
77 ALOGV("Destroying vertex shader with ID %p", (void*)pv);
87 const char* shader, size_t shaderLen,
90 RsdShader *drv = new RsdShader(pf, GL_FRAGMENT_SHADER, shader, shaderLen,
111 ALOGV("Destroying fragment shader with ID %p", (void*)pf);
39 rsdProgramVertexInit(const Context *rsc, const ProgramVertex *pv, const char* shader, size_t shaderLen, const char** textureNames, size_t textureNamesCount, const size_t *textureNamesLength) argument
86 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/base/libs/hwui/utils/
H A DPaintUtils.h57 static bool isBlendedShader(const SkShader* shader) { argument
58 if (shader == nullptr) {
61 return !shader->isOpaque();
/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);
/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/base/libs/hwui/
H A DProgram.cpp134 GLuint shader = glCreateShader(type); local
135 glShaderSource(shader, 1, &source, nullptr);
136 glCompileShader(shader);
139 glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
141 ALOGE("Error while compiling this shader:\n===\n%s\n===", source);
145 glGetShaderInfoLog(shader, sizeof(log), nullptr, &log[0]);
150 return shader;
H A DSkiaShader.cpp83 // Gradient shader matrix helpers
120 bool tryStoreGradient(Caches& caches, const SkShader& shader, const Matrix4 modelViewMatrix, argument
129 switch (shader.asAGradient(&gradInfo)) {
147 // Do nothing. This shader is unsupported.
154 shader.getLocalMatrix(), modelViewMatrix);
156 // re-query shader to get full color / offset data
161 shader.asAGradient(&gradInfo);
200 bool tryStoreBitmap(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, argument
205 if (!shader.isABitmap(&bitmap, nullptr, xy)) {
232 // so enable custom shader logi
263 getComposeSubType(const SkShader& shader) argument
296 tryStoreCompose(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, GLuint* textureUnit, ProgramDescription* description, SkiaShaderData* outData) argument
325 store(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, GLuint* textureUnit, ProgramDescription* description, SkiaShaderData* outData) argument
[all...]
H A DGlopBuilder.cpp225 const SkShader* shader, const SkColorFilter* colorFilter) {
227 if (!shader) {
248 || PaintUtils::isBlendedShader(shader)
256 // to be implemented using shaders. Since the shader will perform
263 // blending in shader, don't enable
271 mShader = shader; // shader resolved in ::build()
316 SkShader* shader = paint->getShader(); local
321 shader = nullptr;
325 shader, pain
223 setFill(int color, float alphaScale, SkBlendMode mode, Blend::ModeOrderSwap modeUsage, const SkShader* shader, const SkColorFilter* colorFilter) argument
[all...]
/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/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/base/libs/hwui/debug/
H A DNullGlesDriver.cpp86 void NullGlesDriver::glGetShaderiv_(GLuint shader, GLenum pname, GLint *params) { argument
94 void NullGlesDriver::glGetShaderInfoLog_(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) { argument
/frameworks/base/libs/hwui/tests/unit/
H A DVectorDrawableTests.cpp412 SkShader* shader = createShader(&shaderIsDestroyed); local
414 // Setting the fill gradient increments the ref count of the shader by 1
415 path.mutateStagingProperties()->setFillGradient(shader);
417 // Resetting the fill gradient decrements the ref count of the shader by 1
420 // Expect ref count to be 1 again, i.e. nothing else to have a ref to the shader now. Unref()
422 shader->unref();
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.cpp393 void GLEnv::AttachShader(int key, ShaderProgram* shader) { argument
397 attached_shaders_[key] = shader;
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp196 fprintf(stderr, "unknown shader name: \"%s\"\n", name);
305 GLuint shader = glCreateShader(shaderType); local
306 if (shader == 0) {
311 glShaderSource(shader, 1, &src, NULL);
312 glCompileShader(shader);
315 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
318 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
322 glGetShaderInfoLog(shader, infoLen, NULL, buf);
327 glDeleteShader(shader);
330 *outShader = shader;
[all...]
/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/native/opengl/tests/gl2_basic/
H A Dgl2_basic.cpp82 GLuint shader = glCreateShader(shaderType); local
83 if (shader) {
84 glShaderSource(shader, 1, &pSource, NULL);
85 glCompileShader(shader);
87 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
90 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
94 glGetShaderInfoLog(shader, infoLen, NULL, buf);
95 fprintf(stderr, "Could not compile shader %d:\n%s\n",
99 glDeleteShader(shader);
100 shader
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp34 GLuint shader = glCreateShader(shaderType); local
35 if (shader) {
36 glShaderSource(shader, 1, &pSource, NULL);
37 glCompileShader(shader);
39 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
42 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
46 glGetShaderInfoLog(shader, infoLen, NULL, buf);
47 ALOGE("Could not compile shader %d:\n%s\n", shaderType, buf);
50 glDeleteShader(shader);
51 shader
[all...]
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp53 static void Shader_safeUnref(SkShader* shader) { argument
54 SkSafeUnref(shader);
77 SkShader* shader; local
79 shader = baseShader->makeWithLocalMatrix(*matrix).release();
81 shader = baseShader.release();
84 ThrowIAE_IfNull(env, shader);
85 return reinterpret_cast<jlong>(shader);
112 SkShader* shader; local
114 shader = baseShader->makeWithLocalMatrix(*matrix).release();
116 shader
172 SkShader* shader; local
199 SkShader* shader; local
228 SkShader* shader; local
251 SkShader* shader; local
272 SkShader* shader; local
[all...]

Completed in 380 milliseconds

12