Home
last modified time | relevance | path

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

/development/ndk/sources/android/ndk_helper/
Dshader.cpp28 bool shader::CompileShader( GLuint *shader, in CompileShader() argument
76 return shader::CompileShader( shader, type, v ); in CompileShader()
79 bool shader::CompileShader( GLuint *shader, in CompileShader() argument
87 *shader = glCreateShader( type ); in CompileShader()
88 …glShaderSource( *shader, 1, &source, &iSize ); //Not specifying 3rd parameter (size) could be trou… in CompileShader()
90 glCompileShader( *shader ); in CompileShader()
94 glGetShaderiv( *shader, GL_INFO_LOG_LENGTH, &logLength ); in CompileShader()
98 glGetShaderInfoLog( *shader, logLength, &logLength, log ); in CompileShader()
105 glGetShaderiv( *shader, GL_COMPILE_STATUS, &status ); in CompileShader()
108 glDeleteShader( *shader ); in CompileShader()
[all …]
Dshader.h36 namespace shader
55 bool CompileShader( GLuint *shader, const GLenum type, std::vector<uint8_t>& data );
68 bool CompileShader( GLuint *shader,
83 bool CompileShader( GLuint *shader, const GLenum type, const char *strFileName );
97 bool CompileShader( GLuint *shader,
DAndroid.mk6 …pp tapCamera.cpp gestureDetector.cpp perfMonitor.cpp vecmath.cpp GLContext.cpp shader.cpp gl3stub.c
/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/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
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()
36 return shader; in loadShader()
/development/perftests/panorama/feature_mos/src/mosaic_renderer/
DRenderer.cpp39 GLuint shader = glCreateShader(shaderType); in loadShader() local
40 if (shader) { in loadShader()
41 glShaderSource(shader, 1, &pSource, NULL); in loadShader()
42 glCompileShader(shader); in loadShader()
44 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader()
47 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader()
51 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader()
56 glDeleteShader(shader); in loadShader()
57 shader = 0; in loadShader()
61 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/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/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/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLRenderer.java121 int shader = GLES20.glCreateShader(type); in loadShader() local
124 GLES20.glShaderSource(shader, shaderCode); in loadShader()
125 GLES20.glCompileShader(shader); in loadShader()
127 return shader; in loadShader()
/development/ndk/platforms/android-18/samples/gles3jni/jni/
Dgles3jni.cpp42 GLuint shader = glCreateShader(shaderType); in createShader() local
43 if (!shader) { in createShader()
47 glShaderSource(shader, 1, &src, NULL); in createShader()
50 glCompileShader(shader); in createShader()
51 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in createShader()
54 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLogLen); in createShader()
58 glGetShaderInfoLog(shader, infoLogLen, NULL, infoLog); in createShader()
65 glDeleteShader(shader); in createShader()
69 return shader; in createShader()
/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/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DGles2ColoredTriangleList.java162 int shader = GLES20.glCreateShader(type); in loadShader() local
164 if (shader == 0) { in loadShader()
169 GLES20.glShaderSource(shader, shaderCode); in loadShader()
171 GLES20.glCompileShader(shader); in loadShader()
174 return shader; in loadShader()
/development/ndk/platforms/android-17/samples/Teapot/jni/
DTeapotRenderer.cpp212 if( !ndk_helper::shader::CompileShader( &vert_shader, GL_VERTEX_SHADER, strVsh ) ) in LoadShaders()
220 if( !ndk_helper::shader::CompileShader( &frag_shader, GL_FRAGMENT_SHADER, strFsh ) ) in LoadShaders()
240 if( !ndk_helper::shader::LinkProgram( program ) ) in LoadShaders()
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/
DMoreTeapotsRenderer.cpp392 if( !ndk_helper::shader::CompileShader( &vertShader, GL_VERTEX_SHADER, strVsh ) ) in LoadShaders()
400 if( !ndk_helper::shader::CompileShader( &fragShader, GL_FRAGMENT_SHADER, strFsh ) ) in LoadShaders()
419 if( !ndk_helper::shader::LinkProgram( program ) ) in LoadShaders()
477 if( !ndk_helper::shader::CompileShader( &vertShader, GL_VERTEX_SHADER, strVsh, shaderParams ) ) in LoadShadersES3()
485 if( !ndk_helper::shader::CompileShader( &fragShader, GL_FRAGMENT_SHADER, strFsh, in LoadShadersES3()
500 if( !ndk_helper::shader::LinkProgram( program ) ) in LoadShadersES3()
/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…
/development/ndk/platforms/android-18/include/GLES3/
Dgl3.h808 GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
827 GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
839 GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
844 GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
874 GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
875 GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* …
877 GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* l…
893 GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
905 GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* c…