Lines Matching refs:glw
53 void build(const glw::GLchar* compute_shader_code, const glw::GLchar* fragment_shader_code,
54 const glw::GLchar* geometry_shader_code, const glw::GLchar* tesselation_control_shader_code,
55 const glw::GLchar* tesselation_evaluation_shader_code, const glw::GLchar* vertex_shader_code,
56 const glw::GLchar* const* varying_names, glw::GLuint n_varying_names);
58 void compile(glw::GLuint shader_id, const glw::GLchar* shader_code) const;
62 static const glw::GLenum ARB_COMPUTE_SHADER;
66 glw::GLuint m_compute_shader_id;
67 glw::GLuint m_fragment_shader_id;
68 glw::GLuint m_geometry_shader_id;
69 glw::GLuint m_program_object_id;
70 glw::GLuint m_tesselation_control_shader_id;
71 glw::GLuint m_tesselation_evaluation_shader_id;
72 glw::GLuint m_vertex_shader_id;
126 static _variable_type getDoubleVariableType(glw::GLuint n_columns, glw::GLuint n_rows);
129 static glw::GLenum getGLDataTypeOfBaseVariableType(_variable_type type);
130 static glw::GLenum getGLDataTypeOfVariableType(_variable_type type);
132 static _variable_type getIntVariableType(glw::GLuint n_columns, glw::GLuint n_rows);
146 static _variable_type getUintVariableType(glw::GLuint n_columns, glw::GLuint n_rows);
150 static bool isGLVersionAtLeast(const glw::Functions& gl, glw::GLint required_major, glw::GLint required_minor);
155 static void replaceToken(const glw::GLchar* token, size_t& search_position, const glw::GLchar* text,
242 const char* getUniformNameForLocation(glw::GLint location);
244 bool isMatrixUniform(glw::GLint uniform_location);
258 glw::GLint m_po_bool_arr_uniform_location;
259 glw::GLint m_po_bool_uniform_location;
260 glw::GLint m_po_bvec2_arr_uniform_location;
261 glw::GLint m_po_bvec2_uniform_location;
262 glw::GLint m_po_bvec3_arr_uniform_location;
263 glw::GLint m_po_bvec3_uniform_location;
264 glw::GLint m_po_bvec4_arr_uniform_location;
265 glw::GLint m_po_bvec4_uniform_location;
266 glw::GLint m_po_dmat2_arr_uniform_location;
267 glw::GLint m_po_dmat2_uniform_location;
268 glw::GLint m_po_dmat2x3_arr_uniform_location;
269 glw::GLint m_po_dmat2x3_uniform_location;
270 glw::GLint m_po_dmat2x4_arr_uniform_location;
271 glw::GLint m_po_dmat2x4_uniform_location;
272 glw::GLint m_po_dmat3_arr_uniform_location;
273 glw::GLint m_po_dmat3_uniform_location;
274 glw::GLint m_po_dmat3x2_arr_uniform_location;
275 glw::GLint m_po_dmat3x2_uniform_location;
276 glw::GLint m_po_dmat3x4_arr_uniform_location;
277 glw::GLint m_po_dmat3x4_uniform_location;
278 glw::GLint m_po_dmat4_arr_uniform_location;
279 glw::GLint m_po_dmat4_uniform_location;
280 glw::GLint m_po_dmat4x2_arr_uniform_location;
281 glw::GLint m_po_dmat4x2_uniform_location;
282 glw::GLint m_po_dmat4x3_arr_uniform_location;
283 glw::GLint m_po_dmat4x3_uniform_location;
284 glw::GLint m_po_double_arr_uniform_location;
285 glw::GLint m_po_double_uniform_location;
286 glw::GLint m_po_dvec2_arr_uniform_location;
287 glw::GLint m_po_dvec2_uniform_location;
288 glw::GLint m_po_dvec3_arr_uniform_location;
289 glw::GLint m_po_dvec3_uniform_location;
290 glw::GLint m_po_dvec4_arr_uniform_location;
291 glw::GLint m_po_dvec4_uniform_location;
292 glw::GLint m_po_float_arr_uniform_location;
293 glw::GLint m_po_float_uniform_location;
294 glw::GLint m_po_int_arr_uniform_location;
295 glw::GLint m_po_int_uniform_location;
296 glw::GLint m_po_ivec2_arr_uniform_location;
297 glw::GLint m_po_ivec2_uniform_location;
298 glw::GLint m_po_ivec3_arr_uniform_location;
299 glw::GLint m_po_ivec3_uniform_location;
300 glw::GLint m_po_ivec4_arr_uniform_location;
301 glw::GLint m_po_ivec4_uniform_location;
302 glw::GLint m_po_sampler_uniform_location;
303 glw::GLint m_po_uint_arr_uniform_location;
304 glw::GLint m_po_uint_uniform_location;
305 glw::GLint m_po_uvec2_arr_uniform_location;
306 glw::GLint m_po_uvec2_uniform_location;
307 glw::GLint m_po_uvec3_arr_uniform_location;
308 glw::GLint m_po_uvec3_uniform_location;
309 glw::GLint m_po_uvec4_arr_uniform_location;
310 glw::GLint m_po_uvec4_uniform_location;
311 glw::GLint m_po_vec2_arr_uniform_location;
312 glw::GLint m_po_vec2_uniform_location;
313 glw::GLint m_po_vec3_arr_uniform_location;
314 glw::GLint m_po_vec3_uniform_location;
315 glw::GLint m_po_vec4_arr_uniform_location;
316 glw::GLint m_po_vec4_uniform_location;
317 glw::GLuint m_po_id;
318 glw::GLuint m_vs_id;
435 typedef glw::GLint captured_varying_type;
436 typedef void(GLW_APIENTRY* arbDispatchComputeFunc)(glw::GLuint num_groups_x, glw::GLuint num_groups_y,
437 glw::GLuint num_groups_z);
457 uniformTypeDetails(glw::GLuint n_columns, glw::GLuint n_rows);
459 glw::GLuint m_n_columns;
460 glw::GLuint m_n_rows;
461 glw::GLenum m_type;
470 glw::GLuint m_array_stride;
471 glw::GLuint m_matrix_stride;
472 glw::GLuint m_offset;
476 glw::GLenum getCapturedPrimitiveType(shaderStage shader_stage) const;
477 glw::GLenum getDrawPrimitiveType(shaderStage shader_stage) const;
478 glw::GLuint getMaxUniformComponents(shaderStage shader_stage) const;
479 glw::GLuint getMaxUniformBlockSize() const;
480 glw::GLuint getRequiredComponentsNumber(const uniformTypeDetails& uniform_type) const;
481 glw::GLuint getUniformTypeMemberSize(const uniformTypeDetails& uniform_type) const;
482 glw::GLuint getAmountUniforms(shaderStage shader_stage, const uniformTypeDetails& uniform_type) const;
483 const glw::GLchar* getShaderStageName(shaderStage shader_stage) const;
485 void inspectProgram(glw::GLuint program_id, glw::GLint n_uniforms, const uniformTypeDetails& uniform_type,
486 glw::GLint& out_buffer_size, uniformDetails& out_offsets,
487 glw::GLuint& uniform_block_index) const;
489 void prepareBoilerplateShader(const glw::GLchar* stage_specific_layout, const glw::GLchar* stage_specific_main_body,
497 void prepareTestShader(const glw::GLchar* stage_specific_layout, const glw::GLchar* uniform_definitions,
498 const glw::GLchar* in_variable_definitions, const glw::GLchar* out_variable_definitions,
499 const glw::GLchar* uniform_verification, const glw::GLchar* stage_specific_main_body,
502 void prepareTestComputeShader(const glw::GLchar* uniform_definitions, const glw::GLchar* uniform_verification,
518 void testBegin(glw::GLuint program_id, shaderStage shader_stage) const;
525 static const glw::GLuint m_n_captured_results;
526 static const glw::GLint m_result_failure;
527 static const glw::GLint m_result_success;
528 static const glw::GLuint m_texture_width;
529 static const glw::GLuint m_texture_height;
530 static const glw::GLuint m_transform_feedback_buffer_size;
532 static const glw::GLchar* m_uniform_block_name;
534 static const glw::GLenum ARB_MAX_COMPUTE_UNIFORM_COMPONENTS;
542 glw::GLuint m_framebuffer_id;
543 glw::GLuint m_texture_id;
544 glw::GLuint m_transform_feedback_buffer_id;
545 glw::GLuint m_uniform_buffer_id;
546 glw::GLuint m_vertex_array_object_id;
681 uniformDetails(glw::GLint expected_std140_offset, const glw::GLchar* name, glw::GLuint n_columns,
682 glw::GLuint n_elements, const glw::GLchar* type_name)
692 glw::GLint m_expected_std140_offset;
693 const glw::GLchar* m_name;
694 glw::GLuint m_n_columns;
695 glw::GLuint m_n_elements;
696 const glw::GLchar* m_type_name;
707 void compile(deqp::Context& context, glw::GLuint shader_id, const glw::GLchar* shader_code) const;
712 const glw::GLchar* fragment_shader_code, const glw::GLchar* geometry_shader_code,
713 const glw::GLchar* tesselation_control_shader_code,
714 const glw::GLchar* tesselation_evaluation_shader_code, const glw::GLchar* vertex_shader_code);
718 static const glw::GLint m_invalid_uniform_offset;
719 static const glw::GLint m_invalid_uniform_matrix_stride;
720 static const glw::GLint m_non_matrix_uniform_matrix_stride;
722 glw::GLuint m_fragment_shader_id;
723 glw::GLuint m_geometry_shader_id;
724 glw::GLuint m_program_object_id;
725 glw::GLuint m_tesselation_control_shader_id;
726 glw::GLuint m_tesselation_evaluation_shader_id;
727 glw::GLuint m_vertex_shader_id;
729 glw::GLint m_buffer_size;
730 glw::GLuint m_uniform_block_index;
732 std::vector<glw::GLint> m_uniform_offsets;
733 std::vector<glw::GLint> m_uniform_matrix_strides;
737 glw::GLdouble getExpectedValue(glw::GLuint type_ordinal, glw::GLuint element) const;
739 const glw::GLchar* getUniformLayoutName(uniformDataLayout uniform_data_layout) const;
761 static const glw::GLuint m_result_failure;
762 static const glw::GLuint m_result_success;
764 static const glw::GLchar* m_uniform_block_name;
765 static const glw::GLchar* m_uniform_block_instance_name;
767 static const glw::GLchar* m_varying_name_fs_out_fs_result;
768 static const glw::GLchar* m_varying_name_gs_fs_gs_result;
769 static const glw::GLchar* m_varying_name_gs_fs_tcs_result;
770 static const glw::GLchar* m_varying_name_gs_fs_tes_result;
771 static const glw::GLchar* m_varying_name_gs_fs_vs_result;
772 static const glw::GLchar* m_varying_name_tcs_tes_tcs_result;
773 static const glw::GLchar* m_varying_name_tcs_tes_vs_result;
774 static const glw::GLchar* m_varying_name_tes_gs_tcs_result;
775 static const glw::GLchar* m_varying_name_tes_gs_tes_result;
776 static const glw::GLchar* m_varying_name_tes_gs_vs_result;
777 static const glw::GLchar* m_varying_name_vs_tcs_vs_result;
780 glw::GLuint m_color_texture_id;
781 glw::GLuint m_framebuffer_id;
782 glw::GLuint m_transform_feedback_buffer_id;
783 glw::GLuint m_uniform_buffer_id;
784 glw::GLuint m_vertex_array_object_id;
787 glw::GLdouble m_base_element;
788 glw::GLdouble m_base_type_ordinal;
845 typedef std::pair<glw::GLint /* uniform location */, double* /* value(s) assigned */> uniform_value_pair;
861 glw::GLint uniform_location_double;
862 glw::GLint uniform_location_double_arr[2];
863 glw::GLint uniform_location_dvec2;
864 glw::GLint uniform_location_dvec2_arr[2];
865 glw::GLint uniform_location_dvec3;
866 glw::GLint uniform_location_dvec3_arr[2];
867 glw::GLint uniform_location_dvec4;
868 glw::GLint uniform_location_dvec4_arr[2];
874 glw::GLint expected_array_size;
876 glw::GLenum expected_type;
877 glw::GLint location;
899 glw::GLuint m_cs_id;
900 glw::GLuint m_fs_id;
901 glw::GLuint m_gs_id;
902 glw::GLuint m_po_cs_id;
903 glw::GLuint m_po_noncs_id;
904 glw::GLuint m_tc_id;
905 glw::GLuint m_te_id;
906 glw::GLuint m_vs_id;
1073 glw::GLuint m_base_value_bo_id;
1075 glw::GLint m_po_base_value_attribute_location;
1076 glw::GLint m_po_id;
1077 glw::GLuint m_vao_id;
1078 glw::GLint m_vs_id;
1079 glw::GLuint m_xfb_bo_id;
1168 glw::GLuint m_cs_id;
1169 glw::GLuint m_fs_id;
1170 glw::GLuint m_gs_id;
1171 glw::GLuint m_tc_id;
1172 glw::GLuint m_te_id;
1173 glw::GLuint m_vs_id;
1239 glw::GLint attribute_location;
1249 bool compileShader(glw::GLint shader_id, const std::string& body);
1281 glw::GLuint m_fbo_id;
1282 glw::GLint m_fs_id;
1283 glw::GLint m_gs_id;
1285 glw::GLint m_n_max_components_per_stage;
1287 glw::GLint m_po_id;
1288 glw::GLint m_tc_id;
1289 glw::GLint m_te_id;
1290 glw::GLuint m_to_id;
1294 glw::GLuint m_xfb_bo_id;
1295 glw::GLchar** m_xfb_varyings;
1296 glw::GLuint m_vao_id;
1297 glw::GLint m_vs_id;
1378 glw::GLuint m_cs_id;
1379 glw::GLuint m_fs_id;
1380 glw::GLuint m_gs_id;
1381 glw::GLuint m_tc_id;
1382 glw::GLuint m_te_id;
1383 glw::GLuint m_vs_id;
1478 glw::GLuint m_po_id;
1479 glw::GLuint m_xfb_bo_id;
1480 glw::GLuint m_vao_id;
1481 glw::GLuint m_vs_id;