Lines Matching defs:const
55 static const char* EXT_texture_type_2_10_10_10_REV = "GL_EXT_texture_type_2_10_10_10_REV";
56 static const char* EXT_texture_shared_exponent = "GL_EXT_texture_shared_exponent";
57 static const char* EXT_texture_integer = "GL_EXT_texture_integer";
58 static const char* ARB_texture_rgb10_a2ui = "GL_ARB_texture_rgb10_a2ui";
59 static const char* ARB_depth_texture = "GL_ARB_depth_texture";
60 static const char* ARB_texture_float = "GL_ARB_texture_float";
61 static const char* OES_texture_float = "GL_OES_texture_float";
62 static const char* OES_texture_float_linear = "GL_OES_texture_float_linear";
63 static const char* OES_texture_half_float = "GL_OES_texture_half_float";
64 static const char* OES_texture_half_float_linear = "GL_OES_texture_half_float_linear";
65 static const char* OES_rgb8_rgba8 = "GL_OES_rgb8_rgba8";
66 static const char* OES_depth_texture = "GL_OES_depth_texture";
67 static const char* OES_depth24 = "GL_OES_depth24";
68 static const char* OES_depth32 = "GL_OES_depth32";
69 static const char* OES_packed_depth_stencil = "GL_OES_packed_depth_stencil";
70 static const char* OES_stencil1 = "GL_OES_stencil1";
71 static const char* OES_stencil4 = "GL_OES_stencil4";
72 static const char* OES_stencil8 = "GL_OES_stencil8";
73 static const char* OES_required_internalformat = "GL_OES_required_internalformat";
80 const char* requiredExtension;
81 const char* secondReqiredExtension;
89 TextureFormat(GLenum aFormat, GLenum aType, GLint aInternalFormat, const char* aRequiredExtension = DE_NULL,
90 const char* aSecondReqiredExtension = DE_NULL, GLint aMinFilter = GL_NEAREST,
106 const char* requiredExtension;
107 const char* secondReqiredExtension;
111 CopyTexImageFormat(GLenum aInternalFormat, const char* aRequiredExtension = DE_NULL,
112 const char* aSecondReqiredExtension = DE_NULL, GLint aMinFilter = GL_NEAREST,
135 const char* requiredExtension;
136 const char* secondReqiredExtension;
138 RenderbufferFormat(GLenum aFormat, RenderBufferType aType, const char* aRequiredExtension = DE_NULL,
139 const char* aSecondReqiredExtension = DE_NULL)
151 InternalformatCaseBase(deqp::Context& context, const std::string& name);
157 bool requiredExtensionsSupported(const char* extension1, const char* extension2);
159 bool generateData = true) const;
160 glu::ProgramSources prepareTexturingProgramSources(GLint internalFormat, GLenum format, GLenum type) const;
161 void renderTexturedQuad(GLuint programId) const;
162 GLenum getUnsizedFormatFromInternalFormat(GLint internalFormat) const;
163 GLenum getTypeFromInternalFormat(GLint internalFormat) const;
167 bool isSRGB, std::vector<unsigned char>& result) const;
194 InternalformatCaseBase::InternalformatCaseBase(deqp::Context& context, const std::string& name)
199 bool InternalformatCaseBase::requiredExtensionsSupported(const char* extension1, const char* extension2)
201 const glu::ContextInfo& contextInfo = m_context.getContextInfo();
222 GLint magFilter, bool generateData) const
224 const Functions& gl = m_context.getRenderContext().getFunctions();
263 GLenum type) const
390 void InternalformatCaseBase::renderTexturedQuad(GLuint programId) const
393 static const deUint16 quadIndices[] = { 0, 1, 2, 2, 1, 3 };
394 static const float position[] = { -1.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f };
395 static const float texCoord[] = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f };
396 static const glu::VertexArrayBinding vertexArrays[] = { glu::va::Float("position", 2, 4, 0, position),
403 GLenum InternalformatCaseBase::getUnsizedFormatFromInternalFormat(GLint internalFormat) const
452 GLenum InternalformatCaseBase::getTypeFromInternalFormat(GLint internalFormat) const
478 std::vector<unsigned char>& result) const
685 const int N = 9;
686 const int B = 15;
687 const int E_max = 31;
727 const unsigned int HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP = 0x38000000;
730 const unsigned int HALF_FLOAT_MAX_BIASED_EXP_AS_SINGLE_FP_EXP = 0x47800000;
732 const unsigned int FLOAT_MAX_BIASED_EXP = (0xFF << 23);
733 const unsigned int HALF_FLOAT_MAX_BIASED_EXP = (0x1F << 10);
781 Texture2DCase(deqp::Context& context, const std::string& name, const TextureFormat& textureFormat);
792 Texture2DCase::Texture2DCase(deqp::Context& context, const std::string& name, const TextureFormat& testFormat)
803 const Functions& gl = renderContext.getFunctions();
845 const TextureFormat& referenceFormat = formatIterator->second;
924 CopyTexImageCase(deqp::Context& context, const std::string& name, const CopyTexImageFormat& copyTexImageFormat);
935 CopyTexImageCase::CopyTexImageCase(deqp::Context& context, const std::string& name,
936 const CopyTexImageFormat& copyTexImageFormat)
947 const Functions& gl = renderContext.getFunctions();
953 const bool isSRGB = textureInternalFormat == GL_SRGB8 || textureInternalFormat == GL_SRGB8_ALPHA8;
1072 RenderbufferCase(deqp::Context& context, const std::string& name, const RenderbufferFormat& renderbufferFormat);
1079 GLfloat f) const;
1083 void renderColoredQuad(GLuint programId, const float* positions) const;
1084 glu::ProgramSources prepareColoringProgramSources(GLenum format, GLenum type) const;
1085 void convertUInt(const tcu::PixelBufferAccess &src, const tcu::PixelBufferAccess &dst);
1086 void convertsRGB(const tcu::PixelBufferAccess& src, const tcu::PixelBufferAccess& dst);
1087 void convertsRGBA(const tcu::PixelBufferAccess& src, const tcu::PixelBufferAccess& dst);
1088 void convertUInt_2_10_10_10_rev(const tcu::PixelBufferAccess &src, const tcu::PixelBufferAccess &dst);
1098 RenderbufferCase::RenderbufferCase(deqp::Context& context, const std::string& name,
1099 const RenderbufferFormat& renderbufferFormat)
1119 const Functions& gl = renderContext.getFunctions();
1130 static const float bigQuadPositionsSet[] = { 0, 0, 0, w, 0, 0, 0, h, 0, w, h, 0 };
1131 static const float smallQuadPositionsSet[] = { 5.0f, 5.0f, 0.5f, w / 2, 5.0f, 0.5f,
1144 const bool isSRGB = m_testFormat.format == GL_SRGB8 || m_testFormat.format == GL_SRGB8_ALPHA8;
1333 GLfloat f) const
1360 const Functions& gl = renderContext.getFunctions();
1407 const Functions& gl = m_context.getRenderContext().getFunctions();
1422 const Functions& gl = m_context.getRenderContext().getFunctions();
1436 void RenderbufferCase::renderColoredQuad(GLuint programId, const float* positions) const
1439 static const deUint16 quadIndices[] = { 0, 1, 2, 2, 1, 3 };
1440 static const float colors[] = {
1443 const glu::VertexArrayBinding vertexArrays[] = { glu::va::Float("position", 3, 4, 0, positions),
1450 glu::ProgramSources RenderbufferCase::prepareColoringProgramSources(GLenum format, GLenum type) const
1555 void InternalformatTests::append(std::vector<Data>& dataVector, const Data (&dataArray)[Size])
1852 const TextureFormat& tf = testData.texture2DFormats[i];
1873 const CopyTexImageFormat& ctif = testData.copyTexImageFormats[i];
1883 const RenderbufferFormat& rbf = testData.renderbufferFormats[i];
1890 void RenderbufferCase::convertUInt(const tcu::PixelBufferAccess &src, const tcu::PixelBufferAccess &dst)
1902 void RenderbufferCase::convertsRGB(const tcu::PixelBufferAccess& src, const tcu::PixelBufferAccess& dst)
1914 void RenderbufferCase::convertsRGBA(const tcu::PixelBufferAccess& src, const tcu::PixelBufferAccess& dst)
1926 void RenderbufferCase::convertUInt_2_10_10_10_rev(const tcu::PixelBufferAccess &src, const tcu::PixelBufferAccess &dst)