Lines Matching defs:const
62 bool isGLVersionAtLeast(const glw::Functions& gl, glw::GLint required_major, glw::GLint required_minor);
92 MapOwner(const MoveMapOwner& moveOwner);
109 void InitData(glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size, const glw::GLvoid* data);
111 void InitStorage(glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size, const glw::GLvoid* data);
116 void Bind() const;
117 void BindBase(glw::GLuint index) const;
119 void BindRange(glw::GLuint index, glw::GLintptr offset, glw::GLsizeiptr size) const;
130 static void Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target);
132 static void BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index);
134 static void BindRange(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index,
137 static void Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
138 const glw::GLvoid* data);
140 static void Generate(const glw::Functions& gl, glw::GLuint& out_id);
142 static void GetNamedParameter(const glw::Functions& gl, glw::GLuint buffer, glw::GLenum pname, glw::GLint* data);
144 static void GetParameter(const glw::Functions& gl, glw::GLenum target, glw::GLenum value, glw::GLint* data);
146 static void GetSubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
149 static void* Map(const glw::Functions& gl, glw::GLenum target, glw::GLenum access);
151 static void* MapRange(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr length,
154 static void Storage(const glw::Functions& gl, glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size,
155 const glw::GLvoid* data);
157 static void SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
160 static void UnMap(const glw::Functions& gl, glw::GLenum target);
166 static const glw::GLuint m_invalid_id;
167 static const glw::GLuint m_n_targets = 13;
168 static const glw::GLenum m_targets[m_n_targets];
193 static void AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
196 static void Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id);
198 static void Generate(const glw::Functions& gl, glw::GLuint& out_id);
204 static const glw::GLuint m_invalid_id;
223 void Init(glw::GLenum stage, const std::string& source);
228 static void Compile(const glw::Functions& gl, glw::GLuint id);
230 static void Create(const glw::Functions& gl, glw::GLenum stage, glw::GLuint& out_id);
232 static void Source(const glw::Functions& gl, glw::GLuint id, const std::string& source);
238 static const glw::GLuint m_invalid_id;
257 void Init(const std::string& compute_shader, const std::string& fragment_shader, const std::string& geometry_shader,
258 const std::string& tesselation_control_shader, const std::string& tesselation_evaluation_shader,
259 const std::string& vertex_shader);
265 static void Attach(const glw::Functions& gl, glw::GLuint program_id, glw::GLuint shader_id);
267 static void Create(const glw::Functions& gl, glw::GLuint& out_id);
269 static void Link(const glw::Functions& gl, glw::GLuint id);
271 static void Use(const glw::Functions& gl, glw::GLuint id);
284 static const glw::GLuint m_invalid_id;
310 static void Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target);
312 static void CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
314 glw::GLsizei image_size, const glw::GLvoid* data);
316 static void Generate(const glw::Functions& gl, glw::GLuint& out_id);
318 static void GetData(const glw::Functions& gl, glw::GLenum target, glw::GLenum format, glw::GLenum type,
321 static void GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
324 static void Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
326 const glw::GLvoid* data);
328 static void Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
331 static void SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
333 glw::GLenum type, const glw::GLvoid* pixels);
339 static const glw::GLuint m_invalid_id;
364 static void Bind(const glw::Functions& gl, glw::GLuint id);
365 static void Generate(const glw::Functions& gl, glw::GLuint& out_id);
371 static const glw::GLuint m_invalid_id;
390 const Functions& gl = context.getRenderContext().getFunctions();
422 bool isGLVersionAtLeast(const glw::Functions& gl, glw::GLint required_major, glw::GLint required_minor)
460 const GLuint Buffer::m_invalid_id = -1;
462 const GLenum Buffer::m_targets[Buffer::m_n_targets] = {
501 void Buffer::InitData(glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size, const glw::GLvoid* data)
508 const Functions& gl = m_context.getRenderContext().getFunctions();
522 void Buffer::InitStorage(glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size, const glw::GLvoid* data)
529 const Functions& gl = m_context.getRenderContext().getFunctions();
543 const Functions& gl = m_context.getRenderContext().getFunctions();
553 void Buffer::Bind() const
555 const Functions& gl = m_context.getRenderContext().getFunctions();
564 void Buffer::BindBase(glw::GLuint index) const
566 const Functions& gl = m_context.getRenderContext().getFunctions();
577 void Buffer::BindRange(glw::GLuint index, glw::GLintptr offset, glw::GLsizeiptr size) const
579 const Functions& gl = m_context.getRenderContext().getFunctions();
592 const Functions& gl = m_context.getRenderContext().getFunctions();
608 const Functions& gl = m_context.getRenderContext().getFunctions();
640 void Buffer::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
653 void Buffer::BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index)
668 void Buffer::BindRange(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index,
683 void Buffer::Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
684 const glw::GLvoid* data)
695 void Buffer::Generate(const glw::Functions& gl, glw::GLuint& out_id)
717 void Buffer::GetNamedParameter(const glw::Functions& gl, glw::GLuint buffer, glw::GLenum pname, glw::GLint* data)
730 void Buffer::GetParameter(const glw::Functions& gl, glw::GLenum target, glw::GLenum value, glw::GLint* data)
744 void Buffer::GetSubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
759 void* Buffer::Map(const glw::Functions& gl, glw::GLenum target, glw::GLenum access)
775 void* Buffer::MapRange(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr length,
792 void Buffer::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLenum flags, glw::GLsizeiptr size,
793 const glw::GLvoid* data)
807 void Buffer::SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
819 void Buffer::UnMap(const glw::Functions& gl, glw::GLenum target)
836 Buffer::MapOwner::MapOwner(const Buffer::MoveMapOwner& moveOwner) : m_data(moveOwner.data), m_buffer(moveOwner.buffer)
866 const GLuint Framebuffer::m_invalid_id = -1;
892 const Functions& gl = m_context.getRenderContext().getFunctions();
908 void Framebuffer::AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
924 void Framebuffer::Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id)
933 void Framebuffer::Generate(const glw::Functions& gl, glw::GLuint& out_id)
949 const GLuint Program::m_invalid_id = 0;
985 void Program::Init(const std::string& compute_shader, const std::string& fragment_shader,
986 const std::string& geometry_shader, const std::string& tesselation_control_shader,
987 const std::string& tesselation_evaluation_shader, const std::string& vertex_shader)
993 const Functions& gl = m_context.getRenderContext().getFunctions();
1021 const Functions& gl = m_context.getRenderContext().getFunctions();
1045 void Program::Attach(const glw::Functions& gl, glw::GLuint program_id, glw::GLuint shader_id)
1062 void Program::Create(const glw::Functions& gl, glw::GLuint& out_id)
1064 const GLuint id = gl.createProgram();
1080 void Program::Link(const glw::Functions& gl, glw::GLuint id)
1116 void Program::Use(const glw::Functions& gl, glw::GLuint id)
1123 const GLuint Shader::m_invalid_id = 0;
1147 void Shader::Init(glw::GLenum stage, const std::string& source)
1159 const Functions& gl = m_context.getRenderContext().getFunctions();
1174 const Functions& gl = m_context.getRenderContext().getFunctions();
1186 void Shader::Compile(const glw::Functions& gl, glw::GLuint id)
1225 void Shader::Create(const glw::Functions& gl, glw::GLenum stage, glw::GLuint& out_id)
1227 const GLuint id = gl.createShader(stage);
1244 void Shader::Source(const glw::Functions& gl, glw::GLuint id, const std::string& source)
1246 const GLchar* code = source.c_str();
1257 const GLuint Texture::m_invalid_id = -1;
1283 const Functions& gl = m_context.getRenderContext().getFunctions();
1317 void Texture::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
1335 void Texture::CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
1337 glw::GLsizei image_size, const glw::GLvoid* data)
1381 void Texture::Generate(const glw::Functions& gl, glw::GLuint& out_id)
1404 void Texture::GetData(const glw::Functions& gl, glw::GLenum target, glw::GLenum format, glw::GLenum type,
1419 void Texture::GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
1439 void Texture::Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
1441 const glw::GLvoid* data)
1490 void Texture::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
1531 void Texture::SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
1533 glw::GLenum type, const glw::GLvoid* pixels)
1567 const GLuint VertexArray::m_invalid_id = -1;
1592 const Functions& gl = m_context.getRenderContext().getFunctions();
1607 void VertexArray::Bind(const glw::Functions& gl, glw::GLuint id)
1618 void VertexArray::Generate(const glw::Functions& gl, glw::GLuint& out_id)
1649 const Functions& gl = m_context.getRenderContext().getFunctions();
1668 const GLenum target = Buffer::m_targets[i];
1684 static const GLsizeiptr data_size = 32;
1712 static const GLsizeiptr data_size = 32;
1746 static const GLsizeiptr data_size = 32;
1774 static const GLsizeiptr data_size = 32;
1806 static const GLsizeiptr data_size = 32;
1872 static const GLsizeiptr data_size = 32;
1917 void ErrorsTest::verifyError(glw::GLenum expected_error, const glw::GLchar* error_message, bool& out_test_result)
1919 const Functions& gl = m_context.getRenderContext().getFunctions();
1921 const GLenum error = gl.getError();
1941 static const GLenum s_mapping_bits[] = { 0, GL_MAP_PERSISTENT_BIT, GL_MAP_COHERENT_BIT | GL_MAP_PERSISTENT_BIT };
1942 static const GLuint s_n_mapping_bits = sizeof(s_mapping_bits) / sizeof(s_mapping_bits[0]);
1962 const GLenum flag_mapping_bits = s_mapping_bits[flag_idx];
1963 const GLenum flags_with_mapping = flags | flag_mapping_bits;
1967 const GLenum access = s_mapping_bits[access_idx];
1989 static const GLsizeiptr data_size = 32;
2001 const Functions& gl = m_context.getRenderContext().getFunctions();
2007 const testCase& test_case = m_test_cases[i];
2008 const GLenum access = test_case.m_access;
2009 const GLenum flags = test_case.m_flags;
2173 static const size_t data_size = 64;
2175 const Functions& gl = m_context.getRenderContext().getFunctions();
2327 static const size_t data_size = 64;
2328 static const GLintptr mapped_region_offset = 16;
2329 static const GLsizeiptr mapped_region_size = 16;
2330 static const testCase test_cases[] = {
2337 static const size_t n_test_cases = sizeof(test_cases) / sizeof(test_cases[0]);
2339 const Functions& gl = m_context.getRenderContext().getFunctions();
2412 const Buffer::MapOwner map(buffer.MapRange(mapped_region_offset, mapped_region_size,
2425 const GLintptr offset = test_cases[i].m_offset;
2426 const GLsizeiptr size = test_cases[i].m_size;
2472 const GLintptr offset = test_cases[i].m_offset;
2473 const GLsizeiptr size = test_cases[i].m_size;
2474 const bool is_error_expected = test_cases[i].m_cross_mapped_region;
2475 const GLenum expected_error = (true == is_error_expected) ? GL_INVALID_OPERATION : GL_NO_ERROR;
2544 static const size_t data_size = 256;
2546 const Functions& gl = m_context.getRenderContext().getFunctions();
2579 const TESTED_OPERATION operation = (TESTED_OPERATION)i;
2600 const TESTED_OPERATION operation = (TESTED_OPERATION)i;
2640 const char* MapPersistentTextureTest::getOperationName(TESTED_OPERATION operation)
2642 const char* name = 0;
2673 const Functions& gl = m_context.getRenderContext().getFunctions();
2700 const Functions& gl = m_context.getRenderContext().getFunctions();
2810 static const GLuint height = 8;
2811 static const GLuint width = 8;
2812 static const size_t data_size = width * height;
2814 const Functions& gl = m_context.getRenderContext().getFunctions();
2870 const Buffer::MapOwner map(
2948 MapPersistentDispatchTest::MapPersistentDispatchTest(deqp::Context& context, const GLchar* test_name,
2949 const GLchar* test_description)
2961 static const GLchar* compute_shader = "#version 430 core\n"
2986 static const GLuint data_size = 16;
2987 static const GLuint destination_binding = 0;
2988 static const GLuint source_binding = 1;
2990 const Functions& gl = m_context.getRenderContext().getFunctions();
3053 const Buffer::MapOwner destination_map(destination.MapRange(
3057 const Buffer::MapOwner source_map(
3136 static const GLchar* compute_shader = "#version 430 core\n"
3161 static const GLuint data_size = 16;
3162 static const GLuint destination_binding = 0;
3163 static const GLuint source_binding = 1;
3165 const Functions& gl = m_context.getRenderContext().getFunctions();
3228 const Buffer::MapOwner destination_map(destination.MapRange(
3232 const Buffer::MapOwner source_map(
3326 static const GLchar* fragment_shader = "#version 440 core\n"
3347 static const GLchar* geometry_shader =
3375 " const uint atom_color_value = atomicCounter(atom_color[gl_PrimitiveIDIn]);"
3376 " //const uint atom_color_value = vs_gs_index[0];\n"
3377 " const float color = float(atom_color_value) / 255.0;\n"
3378 " //const float color = rectangles.rectangle[1].size.x;\n"
3380 " const float left = rectangles.rectangle[vs_gs_index[0]].position.x;\n"
3381 " const float bottom = rectangles.rectangle[vs_gs_index[0]].position.y;\n"
3382 " const float right = rectangles.rectangle[vs_gs_index[0]].size.x + left;\n"
3383 " const float top = rectangles.rectangle[vs_gs_index[0]].size.y + bottom;\n"
3385 " //const float left = rectangles.rectangle[0].position.x;\n"
3386 " //const float bottom = rectangles.rectangle[0].position.y;\n"
3387 " //const float right = rectangles.rectangle[0].size.x + left;\n"
3388 " //const float top = rectangles.rectangle[0].size.y + bottom;\n"
3412 static const GLchar* vertex_shader = "#version 440 core\n"
3422 static const GLuint atom_binding = 0;
3423 static const size_t atom_data_size = 4 * sizeof(GLuint);
3424 static const GLuint expected_atom_first = 2;
3425 static const GLuint expected_atom_second = 6;
3426 static const GLuint expected_pixel = 0xff000004;
3427 static const GLuint height = 16;
3428 static const GLuint n_rectangles = 2;
3429 static const GLuint pixel_size = 4 * sizeof(GLubyte);
3430 static const GLuint rectangles_binding = 0;
3431 static const size_t rectangle_size = 2 * 2 * sizeof(GLfloat); /* 2 * vec2 */
3432 static const size_t rectangles_data_size = n_rectangles * rectangle_size;
3433 static const GLuint width = 16;
3434 static const GLuint line_size = width * pixel_size;
3435 static const GLuint pixel_offset = 8 * line_size + 7 * pixel_size;
3436 static const size_t texture_data_size = height * line_size;
3438 const Functions& gl = m_context.getRenderContext().getFunctions();
3549 const bool is_gl_45 = (glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 5)));
3553 const Buffer::MapOwner atom_map(atom.MapRange(0 /* offset */, atom_data_size,
3558 const Buffer::MapOwner rectangles_map(