Lines Matching defs:const

46 const GLuint Buffer::m_invalid_id = -1;
48 const GLenum Buffer::m_targets[Buffer::m_n_targets] = {
68 Buffer::Buffer(const glw::Functions& gl) : m_id(m_invalid_id), m_gl(gl), m_target(GL_ARRAY_BUFFER)
87 void Buffer::InitData(glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size, const glw::GLvoid* data)
114 void Buffer::Bind() const
123 void Buffer::BindBase(glw::GLuint index) const
134 void Buffer::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
147 void Buffer::BindBase(const glw::Functions& gl, glw::GLuint id, glw::GLenum target, glw::GLuint index)
161 void Buffer::Data(const glw::Functions& gl, glw::GLenum target, glw::GLenum usage, glw::GLsizeiptr size,
162 const glw::GLvoid* data)
173 void Buffer::Generate(const glw::Functions& gl, glw::GLuint& out_id)
196 void Buffer::SubData(const glw::Functions& gl, glw::GLenum target, glw::GLintptr offset, glw::GLsizeiptr size,
204 const GLuint Framebuffer::m_invalid_id = -1;
210 Framebuffer::Framebuffer(const glw::Functions& gl) : m_id(m_invalid_id), m_gl(gl)
245 void Framebuffer::AttachTexture(const glw::Functions& gl, glw::GLenum target, glw::GLenum attachment,
261 void Framebuffer::Bind(const glw::Functions& gl, glw::GLenum target, glw::GLuint id)
270 void Framebuffer::Generate(const glw::Functions& gl, glw::GLuint& out_id)
286 const GLuint Program::m_invalid_id = 0;
292 Program::Program(const glw::Functions& gl)
322 void Program::Init(const std::string& compute_shader, const std::string& fragment_shader,
323 const std::string& geometry_shader, const std::string& tesselation_control_shader,
324 const std::string& tesselation_evaluation_shader, const std::string& vertex_shader)
374 void Program::Use() const
385 void Program::Attach(const glw::Functions& gl, glw::GLuint program_id, glw::GLuint shader_id)
402 void Program::Create(const glw::Functions& gl, glw::GLuint& out_id)
404 const GLuint id = gl.createProgram();
420 void Program::Link(const glw::Functions& gl, glw::GLuint id)
456 void Program::Use(const glw::Functions& gl, glw::GLuint id)
463 const GLuint Shader::m_invalid_id = 0;
469 Shader::Shader(const glw::Functions& gl) : m_id(m_invalid_id), m_gl(gl)
487 void Shader::Init(glw::GLenum stage, const std::string& source)
521 void Shader::Compile(const glw::Functions& gl, glw::GLuint id)
560 void Shader::Create(const glw::Functions& gl, glw::GLenum stage, glw::GLuint& out_id)
562 const GLuint id = gl.createShader(stage);
579 void Shader::Source(const glw::Functions& gl, glw::GLuint id, const std::string& source)
581 const GLchar* code = source.c_str();
588 const GLuint Texture::m_invalid_id = -1;
594 Texture::Texture(const glw::Functions& gl) : m_id(m_invalid_id), m_gl(gl)
625 void Texture::Bind(const glw::Functions& gl, glw::GLuint id, glw::GLenum target)
643 void Texture::CompressedImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level,
645 glw::GLsizei image_size, const glw::GLvoid* data)
689 void Texture::Generate(const glw::Functions& gl, glw::GLuint& out_id)
712 void Texture::GetData(const glw::Functions& gl, glw::GLint level, glw::GLenum target, glw::GLenum format,
730 void Texture::GetData(const glw::Functions& gl, glw::GLuint id, glw::GLint level, glw::GLuint width, glw::GLuint height,
755 void Texture::GetLevelParameter(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum pname,
775 void Texture::Image(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLenum internal_format,
777 const glw::GLvoid* data)
826 void Texture::Storage(const glw::Functions& gl, glw::GLenum target, glw::GLsizei levels, glw::GLenum internal_format,
871 void Texture::SubImage(const glw::Functions& gl, glw::GLenum target, glw::GLint level, glw::GLint x, glw::GLint y,
873 glw::GLenum type, const glw::GLvoid* pixels)
907 const GLuint VertexArray::m_invalid_id = -1;
913 VertexArray::VertexArray(const glw::Functions& gl) : m_id(m_invalid_id), m_gl(gl)
945 void VertexArray::Bind(const glw::Functions& gl, glw::GLuint id)
956 void VertexArray::Generate(const glw::Functions& gl, glw::GLuint& out_id)
1003 RobustnessBase::RobustnessBase(tcu::TestContext& testCtx, const char* name, const char* description,
1014 const glu::ContextInfo& contextInfo = context.getContextInfo();
1039 const tcu::CommandLine& commandLine = m_testCtx.getCommandLine();
1072 static const GLuint invalid_elements[] = {
1076 static const GLuint valid_elements[] = {
1080 static const GLfloat vertices[] = {
1092 static const GLuint height = 8;
1093 static const GLuint n_vertices = 24;
1094 static const GLuint width = 8;
1097 const Functions& gl = robustContext->getFunctions();
1154 const GLuint invalid_elements_offsets[] = {
1160 const GLuint invalid_buffers_count = DE_LENGTH_OF_ARRAY(invalid_elements_offsets);
1161 const GLuint item_count = DE_LENGTH_OF_ARRAY(invalid_elements);
1202 const char* source = "${VERSION}\n"
1217 const char* source = "${VERSION}\n"
1231 void VertexBufferObjectsTest::cleanTexture(const Functions& gl, glw::GLuint texture_id)
1233 static const GLuint height = 8;
1234 static const GLuint width = 8;
1257 bool VertexBufferObjectsTest::verifyInvalidResults(const Functions& gl, glw::GLuint texture_id)
1271 bool VertexBufferObjectsTest::verifyValidResults(const Functions& gl, glw::GLuint texture_id)
1282 bool VertexBufferObjectsTest::verifyResults(const Functions& gl, glw::GLuint texture_id)
1284 static const GLuint height = 8;
1285 static const GLuint width = 8;
1322 TexelFetchTest::TexelFetchTest(tcu::TestContext& testCtx, const char* name, const char* description,
1340 static const GLuint height = 16;
1341 static const GLuint width = 16;
1344 const Functions& gl = robustContext->getFunctions();
1543 std::string TexelFetchTest::getFragmentShader(const glu::ContextType&, bool is_case_valid, GLuint fetch_offset)
1545 const GLchar* source = "${VERSION}\n"
1598 static const GLchar* source = "${VERSION}\n"
1632 static const GLchar* source = "${VERSION}\n"
1645 const glw::GLchar* TexelFetchTest::getTestCaseName() const
1647 const GLchar* name = "";
1678 void TexelFetchTest::prepareTexture(const Functions& gl, bool is_source, glw::GLuint texture_id)
1681 static const GLuint image_height = 16;
1682 static const GLuint image_width = 16;
1757 static const GLuint n_components = 2;
1771 static const GLuint n_components = 4;
1799 static const GLchar* source =
1807 " const ivec2 point = ivec2(gl_WorkGroupID.x, gl_WorkGroupID.y);\n"
1808 " const uint index = gl_WorkGroupID.y * 16U + gl_WorkGroupID.x;\n"
1857 bool TexelFetchTest::verifyInvalidResults(const Functions& gl, glw::GLuint texture_id)
1859 static const GLuint height = 16;
1860 static const GLuint width = 16;
1861 static const GLuint n_pixels = height * width;
1871 static const GLuint n_channels = 4;
1886 const GLubyte expected_red = 0;
1887 const GLubyte drawn_red = pixels[i * n_channels];
1902 static const GLuint n_channels = 4;
1917 const GLbyte expected_red = 0;
1918 const GLbyte expected_green = 0;
1919 const GLbyte drawn_red = pixels[i * n_channels + 0];
1920 const GLbyte drawn_green = pixels[i * n_channels + 1];
1935 static const GLuint n_channels = 4;
1940 const GLuint idx = i * n_channels;
1941 const GLfloat value = static_cast<GLfloat>(i) / n_pixels;
1958 const GLfloat expected_red = 0.0f;
1959 const GLfloat expected_green = 0.0f;
1960 const GLfloat expected_blue = 0.0f;
1961 const GLfloat expected_alpha_0 =
1963 const GLfloat expected_alpha_1 = 1.0f;
1964 const GLfloat drawn_red = pixels[i * n_channels + 0];
1965 const GLfloat drawn_green = pixels[i * n_channels + 1];
1966 const GLfloat drawn_blue = pixels[i * n_channels + 2];
1967 const GLfloat drawn_alpha = pixels[i * n_channels + 3];
1969 const GLfloat precision = 0.0009765625; /* (1.f / 1024.f) */
1989 static const GLuint n_channels = 4;
2004 const GLuint expected_red = 0;
2005 const GLuint drawn_red = pixels[i * n_channels];
2020 static const GLuint n_channels = 4;
2023 static const GLchar* source =
2033 " const ivec2 point = ivec2(gl_WorkGroupID.x, gl_WorkGroupID.y);\n"
2035 " const uvec4 color_0 = imageLoad(uni_source_image, point, 0);\n"
2036 " const uvec4 color_1 = imageLoad(uni_source_image, point, 1);\n"
2037 " const uvec4 color_2 = imageLoad(uni_source_image, point, 2);\n"
2038 " const uvec4 color_3 = imageLoad(uni_source_image, point, 3);\n"
2089 const GLuint expected_red = 1;
2090 const GLuint drawn_red = pixels[i * n_channels];
2113 bool TexelFetchTest::verifyValidResults(const Functions& gl, glw::GLuint texture_id)
2115 static const GLuint height = 16;
2116 static const GLuint width = 16;
2117 static const GLuint n_pixels = height * width;
2123 static const GLuint n_channels = 4;
2138 const GLubyte expected_red = static_cast<GLubyte>(i);
2139 const GLubyte drawn_red = pixels[i * n_channels];
2154 static const GLuint n_channels = 4;
2169 const GLbyte expected_red = static_cast<GLubyte>((i % 16) - 8);
2170 const GLbyte expected_green = static_cast<GLubyte>((i / 16) - 8);
2171 const GLbyte drawn_red = pixels[i * n_channels + 0];
2172 const GLbyte drawn_green = pixels[i * n_channels + 1];
2187 static const GLuint n_channels = 4;
2194 const GLuint idx = i * n_channels;
2195 const GLfloat value = static_cast<GLfloat>(i) / n_pixels;
2210 const GLfloat expected_red = (GLfloat)(i % 16) / 16.0f;
2211 const GLfloat expected_green = (GLfloat)(i / 16) / 16.0f;
2212 const GLfloat expected_blue = (GLfloat)i / 256.0f;
2213 const GLfloat expected_alpha = 1.0f;
2214 const GLuint idx = i * n_channels;
2215 const GLfloat drawn_red = pixels[idx + 0];
2216 const GLfloat drawn_green = pixels[idx + 1];
2217 const GLfloat drawn_blue = pixels[idx + 2];
2218 const GLfloat drawn_alpha = pixels[idx + 3];
2235 static const GLuint n_channels = 4;
2249 const GLuint expected_red = i;
2250 const GLuint drawn_red = pixels[i * n_channels];
2265 static const GLuint n_channels = 4;
2268 static const GLchar* source =
2278 " const ivec2 point = ivec2(gl_WorkGroupID.x, gl_WorkGroupID.y);\n"
2279 " const uint index = gl_WorkGroupID.y * 16U + gl_WorkGroupID.x;\n"
2281 " const uvec4 color_0 = imageLoad(uni_source_image, point, 0);\n"
2282 " const uvec4 color_1 = imageLoad(uni_source_image, point, 1);\n"
2283 " const uvec4 color_2 = imageLoad(uni_source_image, point, 2);\n"
2284 " const uvec4 color_3 = imageLoad(uni_source_image, point, 3);\n"
2339 const GLuint expected_red = 1;
2340 const GLuint drawn_red = pixels[i * n_channels];
2379 static const GLuint height = 16;
2380 static const GLuint width = 16;
2383 const Functions& gl = robustContext->getFunctions();
2390 const FetchingOffset fetching_offsets[] = {
2453 const FetchingOffset& fo = fetching_offsets[i];
2454 const std::string& cs = getComputeShader(SOURCE_INVALID, fo.coord_offset, fo.sample_offset);
2496 const FetchingOffset& fo = fetching_offsets[i];
2497 const std::string& cs = getComputeShader(DESTINATION_INVALID, fo.coord_offset, fo.sample_offset);
2547 static const GLchar* source =
2563 static const GLchar* copy_multisampled =
2573 static const GLchar* copy_regular = " ${TYPE} color = imageLoad(uni_source_image, point_source);\n"
2630 const GLchar* copy = (m_test_case == R32UI_MULTISAMPLE) ? copy_multisampled : copy_regular;
2641 void ImageLoadStoreTest::setTextures(const Functions& gl, glw::GLuint id_destination, glw::GLuint id_source)
2691 bool ImageLoadStoreTest::verifyInvalidResults(const Functions& gl, glw::GLuint texture_id)
2693 static const GLuint height = 16;
2694 static const GLuint width = 16;
2695 static const GLuint n_pixels = height * width;
2708 static const GLuint n_channels = 1;
2723 const GLubyte expected_red = 0;
2724 const GLubyte drawn_red = pixels[i];
2739 static const GLuint n_channels = 2;
2754 const GLbyte expected_red = 0;
2755 const GLbyte expected_green = 0;
2756 const GLbyte drawn_red = pixels[i * n_channels + 0];
2757 const GLbyte drawn_green = pixels[i * n_channels + 1];
2772 static const GLuint n_channels = 4;
2795 const GLfloat expected_red = 0.0f;
2796 const GLfloat expected_green = 0.0f;
2797 const GLfloat expected_blue = 0.0f;
2798 const GLfloat expected_alpha = 0.0f;
2799 const GLuint idx = i * n_channels;
2800 const GLfloat drawn_red = pixels[idx + 0];
2801 const GLfloat drawn_green = pixels[idx + 1];
2802 const GLfloat drawn_blue = pixels[idx + 2];
2803 const GLfloat drawn_alpha = pixels[idx + 3];
2820 static const GLuint n_channels = 1;
2835 const GLuint expected_red = 0;
2836 const GLuint drawn_red = pixels[i];
2851 static const GLuint n_channels = 1;
2854 static const GLchar* cs = "${VERSION}\n"
2863 " const ivec2 point = ivec2(gl_WorkGroupID.x, gl_WorkGroupID.y);\n"
2865 " const uvec4 color_0 = imageLoad(uni_source_image, point, 0);\n"
2866 " const uvec4 color_1 = imageLoad(uni_source_image, point, 1);\n"
2867 " const uvec4 color_2 = imageLoad(uni_source_image, point, 2);\n"
2868 " const uvec4 color_3 = imageLoad(uni_source_image, point, 3);\n"
2918 const GLuint expected_red = 1;
2919 const GLuint drawn_red = pixels[i];
2942 bool ImageLoadStoreTest::verifyValidResults(const glw::Functions& gl, glw::GLuint texture_id)
2944 static const GLuint height = 16;
2945 static const GLuint width = 16;
2946 static const GLuint n_pixels = height * width;
2955 static const GLuint n_channels = 1;
2970 const GLubyte expected_red = static_cast<GLubyte>(i);
2971 const GLubyte drawn_red = pixels[i];
2986 static const GLuint n_channels = 2;
3001 const GLbyte expected_red = static_cast<GLubyte>((i % 16) - 8);
3002 const GLbyte expected_green = static_cast<GLubyte>((i / 16) - 8);
3003 const GLbyte drawn_red = pixels[i * n_channels + 0];
3004 const GLbyte drawn_green = pixels[i * n_channels + 1];
3019 static const GLuint n_channels = 4;
3041 const GLfloat expected_red = (GLfloat)(i % 16) / 16.0f;
3042 const GLfloat expected_green = (GLfloat)(i / 16) / 16.0f;
3043 const GLfloat expected_blue = (GLfloat)i / 256.0f;
3044 const GLfloat expected_alpha = 1.0f;
3045 const GLuint idx = i * n_channels;
3046 const GLfloat drawn_red = pixels[idx + 0];
3047 const GLfloat drawn_green = pixels[idx + 1];
3048 const GLfloat drawn_blue = pixels[idx + 2];
3049 const GLfloat drawn_alpha = pixels[idx + 3];
3066 static const GLuint n_channels = 4;
3081 const GLuint expected_red = i;
3082 const GLuint drawn_red = pixels[i * n_channels];
3097 static const GLuint n_channels = 1;
3100 static const GLchar* cs =
3110 " const ivec2 point = ivec2(gl_WorkGroupID.x, gl_WorkGroupID.y);\n"
3111 " const uint index = gl_WorkGroupID.y * 16 + gl_WorkGroupID.x;\n"
3113 " const uvec4 color_0 = imageLoad(uni_source_image, point, 0);\n"
3114 " const uvec4 color_1 = imageLoad(uni_source_image, point, 1);\n"
3115 " const uvec4 color_2 = imageLoad(uni_source_image, point, 2);\n"
3116 " const uvec4 color_3 = imageLoad(uni_source_image, point, 3);\n"
3166 const GLuint expected_red = 1;
3167 const GLuint drawn_red = pixels[i];
3185 const GLfloat StorageBufferTest::m_destination_data[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
3186 const GLfloat StorageBufferTest::m_source_data[4] = { 2.0f, 3.0f, 4.0f, 5.0f };
3213 const Functions& gl = robustContext->getFunctions();
3244 const std::string& cs = getComputeShader(test_offsets[i]);
3292 static const GLchar* source = "${VERSION}\n"
3342 static const GLfloat expected_data_valid[4] = { 2.0f, 3.0f, 4.0f, 5.0f };
3343 static const GLfloat expected_data_invalid_source[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
3344 static const GLfloat expected_data_invalid_destination[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
3350 /* Prepare expected data const for proper case*/
3351 const GLchar* name = 0;
3353 const GLfloat* expected_data = 0;
3477 static const GLfloat destination_data[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
3479 static const GLfloat source_data[16] = {
3491 const Functions& gl = robustContext->getFunctions();
3515 const std::string& cs = getComputeShader(test_offsets[i]);
3563 static const GLchar* source = "${VERSION}\n"
3603 static const GLfloat expected_data_valid[4] = { 2.0f, 3.0f, 4.0f, 5.0f };
3604 static const GLfloat expected_data_invalid_source[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
3608 /* Prepare expected data const for proper case*/
3609 const GLfloat* expected_data = 0;
3610 const GLchar* name = 0;