/development/ndk/sources/android/ndk_helper/ |
D | shader.cpp | 28 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 …]
|
D | shader.h | 36 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,
|
D | Android.mk | 6 …pp tapCamera.cpp gestureDetector.cpp perfMonitor.cpp vecmath.cpp GLContext.cpp shader.cpp gl3stub.c
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
D | GLToolbox.java | 24 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/ |
D | GLToolbox.java | 24 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/ |
D | Renderer.cpp | 39 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/ |
D | gl_code.cpp | 58 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/ |
D | GLES20TriangleRenderer.java | 156 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/ |
D | GLES20TriangleRenderer.java | 158 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/ |
D | MyGLRenderer.java | 121 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/ |
D | gles3jni.cpp | 42 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/ |
D | MyGLSurfaceView.java | 224 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/ |
D | Gles2ColoredTriangleList.java | 162 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/ |
D | TeapotRenderer.cpp | 212 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/ |
D | MoreTeapotsRenderer.cpp | 392 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/ |
D | gl2.h | 475 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/ |
D | gl3.h | 808 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…
|