Lines Matching refs:shaders_configuration
82 …} shaders_configuration[] = { { GL_COMPUTE_SHADER, cs_body, 0 }, { GL_FRAGMENT_SHADER, fs_body, … in buildProgram() local
86 …onst glw::GLuint n_shaders_configuration = sizeof(shaders_configuration) / sizeof(shaders_configur… in buildProgram()
97 if (shaders_configuration[n_shader_index].body != DE_NULL) in buildProgram()
100 …shaders_configuration[n_shader_index].id = gl.createShader(shaders_configuration[n_shader_index].t… in buildProgram()
104 const glw::GLuint so_id = shaders_configuration[n_shader_index].id; in buildProgram()
107 gl.shaderSource(shaders_configuration[n_shader_index].id, 1, /* count */ in buildProgram()
108 &shaders_configuration[n_shader_index].body, DE_NULL); /* length */ in buildProgram()
135 << "Shader type: " << shaders_configuration[n_shader_index].type << "\n" in buildProgram()
139 << shaders_configuration[n_shader_index].body << "\n" in buildProgram()
197 if (shaders_configuration[n_shader_index].body != DE_NULL) in buildProgram()
200 << shaders_configuration[n_shader_index].type << " follows:\n" in buildProgram()
201 << shaders_configuration[n_shader_index].body << "\n" in buildProgram()
213 const glw::GLuint so_id = shaders_configuration[n_shader_index].id; in buildProgram()
219 shaders_configuration[n_shader_index].id = 0; in buildProgram()
233 const glw::GLuint so_id = shaders_configuration[n_shader_index].id; in buildProgram()
239 shaders_configuration[n_shader_index].id = 0; in buildProgram()
1301 } shaders_configuration[] = { { in buildPO() local
1317 …onst glw::GLuint n_shaders_configuration = sizeof(shaders_configuration) / sizeof(shaders_configur… in buildPO()
1322 if (shaders_configuration[n_shader_index].use) in buildPO()
1329 std::string& shader_source = shaders_configuration[n_shader_index].body; in buildPO()
1332 shader_source = shaders_configuration[n_shader_index].shader_template; in buildPO()
1338 switch (shaders_configuration[n_shader_index].type) in buildPO()
1342 shader_body_string_fs = &shaders_configuration[n_shader_index].body; in buildPO()
1391 shader_body_string_gs = &shaders_configuration[n_shader_index].body; in buildPO()
1438 shader_body_string_tc = &shaders_configuration[n_shader_index].body; in buildPO()
1485 shader_body_string_te = &shaders_configuration[n_shader_index].body; in buildPO()
1554 shader_body_string_vs = &shaders_configuration[n_shader_index].body; in buildPO()
1585 if (shaders_configuration[n_shader_index].type == GL_FRAGMENT_SHADER) in buildPO()
1594 else if (shaders_configuration[n_shader_index].type == GL_TESS_CONTROL_SHADER) in buildPO()
1618 if (shaders_configuration[n_shader_index].type == GL_FRAGMENT_SHADER) in buildPO()
1627 else if (shaders_configuration[n_shader_index].type == GL_TESS_CONTROL_SHADER) in buildPO()