Home | History | Annotate | Download | only in functional

Lines Matching refs:glu

48 using glu::ShaderProgram;
67 using glu::TextureTestUtil::TextureType;
68 using glu::TextureTestUtil::TEXTURETYPE_2D;
69 using glu::TextureTestUtil::TEXTURETYPE_2D_ARRAY;
70 using glu::TextureTestUtil::TEXTURETYPE_CUBE;
133 static tcu::TextureLevel getPixels (const glu::RenderContext& renderCtx, const IVec2& size, const tcu::TextureFormat& colorBufferFormat)
144 glu::readPixels(renderCtx, 0, 0, result.getAccess());
157 glu::readPixels(renderCtx, 0, 0, readResult.getAccess());
837 static inline glu::DataType getSamplerType (TextureType textureType, const tcu::TextureFormat& format)
843 case TEXTURETYPE_2D: return glu::TYPE_SAMPLER_2D_SHADOW;
844 case TEXTURETYPE_2D_ARRAY: return glu::TYPE_SAMPLER_2D_ARRAY_SHADOW;
845 case TEXTURETYPE_CUBE: return glu::TYPE_SAMPLER_CUBE_SHADOW;
846 default: DE_ASSERT(false); return glu::TYPE_LAST;
853 case TEXTURETYPE_2D: return glu::getSampler2DType(format);
854 case TEXTURETYPE_2D_ARRAY: return glu::getSampler2DArrayType(format);
855 case TEXTURETYPE_CUBE: return glu::getSamplerCubeType(format);
856 default: DE_ASSERT(false); return glu::TYPE_LAST;
861 static inline glu::DataType getSamplerGatherResultType (glu::DataType samplerType)
865 case glu::TYPE_SAMPLER_2D_SHADOW:
866 case glu::TYPE_SAMPLER_2D_ARRAY_SHADOW:
867 case glu::TYPE_SAMPLER_CUBE_SHADOW:
868 case glu::TYPE_SAMPLER_2D:
869 case glu::TYPE_SAMPLER_2D_ARRAY:
870 case glu::TYPE_SAMPLER_CUBE:
871 return glu::TYPE_FLOAT_VEC4;
873 case glu::TYPE_INT_SAMPLER_2D:
874 case glu::TYPE_INT_SAMPLER_2D_ARRAY:
875 case glu::TYPE_INT_SAMPLER_CUBE:
876 return glu::TYPE_INT_VEC4;
878 case glu::TYPE_UINT_SAMPLER_2D:
879 case glu::TYPE_UINT_SAMPLER_2D_ARRAY:
880 case glu::TYPE_UINT_SAMPLER_CUBE:
881 return glu::TYPE_UINT_VEC4;
885 return glu::TYPE_LAST;
1002 static glu::VertexSource genVertexShaderSource (bool requireGpuShader5, int numTexCoordComponents, bool useNormalizedCoordInput);
1003 static glu::FragmentSource genFragmentShaderSource (bool requireGpuShader5, int numTexCoordComponents, glu::DataType samplerType, const string& funcCall, bool useNormalizedCoordInput, bool usePixCoord);
1005 static glu::ProgramSources genProgramSources (GatherType, TextureType, const tcu::TextureFormat&, const GatherArgs&, const string& refZExpr, const IVec2& offsetRange);
1010 MovePtr<glu::Renderbuffer> m_colorBuffer;
1011 MovePtr<glu::Framebuffer> m_fbo;
1058 DE_ASSERT(glu::isGLInternalColorFormatFilterable(glu::getInternalFormat(m_colorBufferFormat)) ||
1090 glu::VertexSource TextureGatherCase::genVertexShaderSource (bool requireGpuShader5, int numTexCoordComponents, bool useNormalizedCoordInput)
1094 return glu::VertexSource("#version 310 es\n"
1112 glu::FragmentSource TextureGatherCase::genFragmentShaderSource (bool requireGpuShader5,
1114 glu::DataType samplerType,
1119 DE_ASSERT(glu::isDataTypeSampler(samplerType));
1125 return glu::FragmentSource("#version 310 es\n"
1128 "layout (location = 0) out mediump " + glu::getDataTypeName(getSamplerGatherResultType(samplerType)) + " o_color;\n"
1133 "uniform highp " + string(glu::getDataTypeName(samplerType)) + " u_sampler;\n"
1212 glu::ProgramSources TextureGatherCase::genProgramSources (GatherType gatherType,
1223 const glu::DataType samplerType = getSamplerType(textureType, textureFormat);
1227 return glu::ProgramSources() << genVertexShaderSource(requireGpuShader5(gatherType), numDims, isDynamicOffset || isShadow)
1234 const glu::RenderContext& renderCtx = m_context.getRenderContext();
1254 m_colorBuffer = MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx));
1256 gl.renderbufferStorage(GL_RENDERBUFFER, glu::getInternalFormat(m_colorBufferFormat), RENDER_SIZE.x(), RENDER_SIZE.y());
1259 m_fbo = MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx));
1265 << glu::getTextureFormatName(glu::getInternalFormat(m_colorBufferFormat))
1276 gl.texParameteri(texTypeGL, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(m_wrapS));
1277 gl.texParameteri(texTypeGL, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(m_wrapT));
1278 gl.texParameteri(texTypeGL, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(m_minFilter));
1279 gl.texParameteri(texTypeGL, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(m_magFilter));
1287 gl.texParameteri(texTypeGL, GL_TEXTURE_COMPARE_FUNC, glu::getGLCompareFunc(m_shadowCompareMode));
1311 << glu::getTextureWrapModeName(glu::getGLWrapMode(m_wrapS)) << " and "
1312 << glu::getTextureWrapModeName(glu::getGLWrapMode(m_wrapT)) << ", respectively" << TestLog::EndMessage
1314 << glu::getTextureFilterName(glu::getGLFilterMode(m_minFilter)) << " and "
1315 << glu::getTextureFilterName(glu::getGLFilterMode(m_magFilter)) << ", respectively "
1323 log << TestLog::Message << "Using texture compare func " << glu::getCompareFuncName(glu::getGLCompareFunc(m_shadowCompareMode)) << TestLog::EndMessage;
1329 m_fbo = MovePtr<glu::Framebuffer>(DE_NULL);
1330 m_colorBuffer = MovePtr<glu::Renderbuffer>(DE_NULL);
1337 const glu::RenderContext& renderCtx = m_context.getRenderContext();
1385 vector<glu::VertexArrayBinding> attrBindings;
1386 attrBindings.push_back(glu::va::Float("a_position", 2, 4, 0, &position[0]));
1387 attrBindings.push_back(glu::va::Float("a_texCoord", (int)texCoord.size()/4, 4, 0, &texCoord[0]));
1389 attrBindings.push_back(glu::va::Float("a_normalizedCoord", 2, 4, 0, &normalizedCoord[0]));
1423 glu::draw(renderCtx, m_program->getProgram(), (int)attrBindings.size(), &attrBindings[0],
1424 glu
1480 const IVec4 colorBits = tcu::max(glu::TextureTestUtil::getBitsVec(pixelFormat) - 1, tcu::IVec4(0));
1514 lookupPrec.colorMask = glu::TextureTestUtil::getCompareMask(pixelFormat);
1523 lookupPrec.colorMask = glu::TextureTestUtil::getCompareMask(pixelFormat);
1651 MovePtr<glu::Texture2D> m_texture;
1659 glu::TextureTestUtil::computeQuadTexCoord2D(res, Vec2(-0.3f, -0.4f), Vec2(1.5f, 1.6f));
1671 const glu::RenderContext& renderCtx = m_context.getRenderContext();
1675 m_texture = MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, glu::getInternalFormat(m_textureFormat), m_textureSize.x(), m_textureSize.y()));
1747 MovePtr<glu::Texture2DArray> m_texture;
1755 glu::TextureTestUtil::computeQuadTexCoord2DArray(res, m_iterations[iterationNdx].layerNdx, Vec2(-0.3f, -0.4f), Vec2(1.5f, 1.6f));
1798 const glu::RenderContext& renderCtx = m_context.getRenderContext();
1802 m_texture = MovePtr<glu::Texture2DArray>(new glu::Texture2DArray(renderCtx, glu::getInternalFormat(m_textureFormat), m_textureSize.x(), m_textureSize.y(), m_textureSize.z()));
1879 MovePtr<glu::TextureCube> m_texture;
1890 glu::TextureTestUtil::computeQuadTexCoordCube(res, m_iterations[iterationNdx].face, minC, maxC);
1934 const glu::RenderContext& renderCtx = m_context.getRenderContext();
1938 m_texture = MovePtr<glu::TextureCube>(new glu::TextureCube(renderCtx, glu::getInternalFormat(m_textureFormat), m_textureSize));