Home
last modified time | relevance | path

Searched refs:shader (Results 1 – 13 of 13) sorted by relevance

/development/samples/HelloEffects/src/com/example/android/mediafx/
DGLToolbox.java24 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
25 if (shader != 0) { in loadShader()
26 GLES20.glShaderSource(shader, source); in loadShader()
27 GLES20.glCompileShader(shader); in loadShader()
29 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
31 String info = GLES20.glGetShaderInfoLog(shader); in loadShader()
32 GLES20.glDeleteShader(shader); in loadShader()
33 shader = 0; in loadShader()
38 return shader; in loadShader()
/development/ndk/platforms/android-5/samples/hello-gl2/jni/
Dgl_code.cpp58 GLuint shader = glCreateShader(shaderType); in loadShader() local
59 if (shader) { in loadShader()
60 glShaderSource(shader, 1, &pSource, NULL); in loadShader()
61 glCompileShader(shader); in loadShader()
63 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader()
66 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader()
70 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader()
75 glDeleteShader(shader); in loadShader()
76 shader = 0; in loadShader()
80 return shader; in loadShader()
/development/tools/emulator/opengl/shared/OpenglCodecCommon/
DGLSharedGroup.cpp190 bool ProgramData::attachShader(GLuint shader) in attachShader() argument
194 if (m_shaders[i] == shader) { in attachShader()
200 m_shaders.insertAt(shader, m_shaders.size(), 1); in attachShader()
204 bool ProgramData::detachShader(GLuint shader) in detachShader() argument
208 if (m_shaders[i] == shader) { in detachShader()
309 void GLSharedGroup::attachShader(GLuint program, GLuint shader) in attachShader() argument
313 ssize_t idx = m_shaders.indexOfKey(shader); in attachShader()
315 if (programData->attachShader(shader)) { in attachShader()
321 void GLSharedGroup::detachShader(GLuint program, GLuint shader) in detachShader() argument
325 ssize_t idx = m_shaders.indexOfKey(shader); in detachShader()
[all …]
DGLSharedGroup.h88 bool attachShader(GLuint shader);
89 bool detachShader(GLuint shader);
123 void attachShader(GLuint program, GLuint shader);
124 void detachShader(GLuint program, GLuint shader);
135 bool addShaderData(GLuint shader);
137 ShaderData* getShaderData(GLuint shader);
138 void unrefShaderData(GLuint shader);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DGLES20TriangleRenderer.java158 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
159 if (shader != 0) { in loadShader()
160 GLES20.glShaderSource(shader, source); in loadShader()
161 GLES20.glCompileShader(shader); in loadShader()
163 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
166 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
167 GLES20.glDeleteShader(shader); in loadShader()
168 shader = 0; in loadShader()
171 return shader; in loadShader()
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/
DGLES20TriangleRenderer.java156 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
157 if (shader != 0) { in loadShader()
158 GLES20.glShaderSource(shader, source); in loadShader()
159 GLES20.glCompileShader(shader); in loadShader()
161 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
164 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
165 GLES20.glDeleteShader(shader); in loadShader()
166 shader = 0; in loadShader()
169 return shader; in loadShader()
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java224 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
225 if (shader != 0) { in loadShader()
226 GLES20.glShaderSource(shader, source); in loadShader()
227 GLES20.glCompileShader(shader); in loadShader()
229 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
232 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
233 GLES20.glDeleteShader(shader); in loadShader()
234 shader = 0; in loadShader()
237 return shader; in loadShader()
/development/tools/emulator/opengl/system/GLESv2_enc/
Dgl2_entry.cpp10 void glAttachShader(GLuint program, GLuint shader);
29 void glCompileShader(GLuint shader);
41 void glDeleteShader(GLuint shader);
46 void glDetachShader(GLuint program, GLuint shader);
76 void glGetShaderiv(GLuint shader, GLenum pname, GLint* params);
77 void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
79 void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
95 GLboolean glIsShader(GLuint shader);
107 void glShaderSource(GLuint shader, GLsizei count, const GLchar** string, const GLint* length);
215 void glShaderString(GLuint shader, const GLchar* string, GLsizei len);
[all …]
DGL2Encoder.cpp636 void GL2Encoder::s_glShaderSource(void *self, GLuint shader, GLsizei count, const GLchar **string, … in s_glShaderSource() argument
639 ShaderData* shaderData = ctx->m_shared->getShaderData(shader); in s_glShaderSource()
655 ctx->glShaderString(ctx, shader, str, len + 1); in s_glShaderSource()
739 GLuint shader = ctx->m_glCreateShader_enc(self, shaderType); in s_glCreateShader() local
740 if (shader != 0) { in s_glCreateShader()
741 if (!ctx->m_shared->addShaderData(shader)) { in s_glCreateShader()
742 ctx->m_glDeleteShader_enc(self, shader); in s_glCreateShader()
746 return shader; in s_glCreateShader()
749 void GL2Encoder::s_glDeleteShader(void *self, GLenum shader) in s_glDeleteShader() argument
752 ctx->m_glDeleteShader_enc(self,shader); in s_glDeleteShader()
[all …]
DGL2Encoder.h120 …static void s_glShaderSource(void *self, GLuint shader, GLsizei count, const GLchar **string, cons…
143 static void s_glDeleteShader(void *self, GLuint shader);
146 static void s_glAttachShader(void *self, GLuint program, GLuint shader);
149 static void s_glDetachShader(void *self, GLuint program, GLuint shader);
Dgl2_enc.h26 void glAttachShader_enc(void *self , GLuint program, GLuint shader);
45 void glCompileShader_enc(void *self , GLuint shader);
57 void glDeleteShader_enc(void *self , GLuint shader);
62 void glDetachShader_enc(void *self , GLuint program, GLuint shader);
92 void glGetShaderiv_enc(void *self , GLuint shader, GLenum pname, GLint* params);
93 …void glGetShaderInfoLog_enc(void *self , GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* …
95 …void glGetShaderSource_enc(void *self , GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* s…
111 GLboolean glIsShader_enc(void *self , GLuint shader);
123 …void glShaderSource_enc(void *self , GLuint shader, GLsizei count, const GLchar** string, const GL…
231 void glShaderString_enc(void *self , GLuint shader, const GLchar* string, GLsizei len);
Dgl2_enc.cpp32 void glAttachShader_enc(void *self , GLuint program, GLuint shader) in glAttachShader_enc() argument
45 memcpy(ptr, &shader, 4); ptr += 4; in glAttachShader_enc()
357 void glCompileShader_enc(void *self , GLuint shader) in glCompileShader_enc() argument
369 memcpy(ptr, &shader, 4); ptr += 4; in glCompileShader_enc()
588 void glDeleteShader_enc(void *self , GLuint shader) in glDeleteShader_enc() argument
600 memcpy(ptr, &shader, 4); ptr += 4; in glDeleteShader_enc()
667 void glDetachShader_enc(void *self , GLuint program, GLuint shader) in glDetachShader_enc() argument
680 memcpy(ptr, &shader, 4); ptr += 4; in glDetachShader_enc()
1200 void glGetShaderiv_enc(void *self , GLuint shader, GLenum pname, GLint* params) in glGetShaderiv_enc() argument
1213 memcpy(ptr, &shader, 4); ptr += 4; in glGetShaderiv_enc()
[all …]
/development/ndk/platforms/android-5/include/GLES2/
Dgl2.h475 GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
494 GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
506 GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
511 GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
541 GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
542 GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* le…
544 GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* len…
560 GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
572 GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar** st…