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

/packages/services/Car/evs/app/
H A Dshader.cpp16 #include "shader.h"
22 // Given shader source, load and compile it
24 // Create the shader object
25 GLuint shader = glCreateShader (type); local
26 if (shader == 0) {
30 // Load and compile the shader
31 glShaderSource(shader, 1, &shaderSrc, nullptr);
32 glCompileShader(shader);
36 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
38 printf("Error compiling %s shader fo
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/
H A DRenderer.cpp39 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
[all...]
/packages/services/Car/evs/sampleDriver/
H A DGlWrapper.cpp101 // Given shader source, load and compile it
103 // Create the shader object
104 GLuint shader = glCreateShader (type); local
105 if (shader == 0) {
109 // Load and compile the shader
110 glShaderSource(shader, 1, &shaderSrc, nullptr);
111 glCompileShader(shader);
115 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
117 ALOGE("Error compiling shader\n");
120 glGetShaderiv(shader, GL_INFO_LOG_LENGT
[all...]

Completed in 1229 milliseconds