Lines Matching refs:glu
56 using glu::RenderContext;
81 using namespace glu::TextureTestUtil;
278 static inline int getGLTextureMaxSize (glu::CallLogWrapper glLog, TextureType texType)
383 glu::ContextType contextType = renderContext.getType();
384 return glu::contextSupports(contextType, glu::ApiType::es(3, 2)) ||
385 glu::contextSupports(contextType, glu::ApiType::core(4, 5));
388 static inline void checkTextureTypeExtensions (const glu::ContextInfo& contextInfo, TextureType type, const RenderContext& renderContext)
730 static void setTextureStorage (glu::CallLogWrapper& glLog, TextureType imageType, deUint32 internalFormat, const IVec3& imageSize, deUint32 textureBufGL)
738 const TextureFormat format = glu::mapGLInternalFormat(internalFormat);
766 static void uploadTexture (glu::CallLogWrapper& glLog, const LayeredImage& src, deUint32 textureBufGL)
768 const deUint32 internalFormat = glu::getInternalFormat(src.getFormat());
769 const glu::TransferFormat transferFormat = glu::getTransferFormat(src.getFormat());
809 static void readPixelsRGBAInteger32 (const PixelBufferAccess& dst, int originX, int originY, glu::CallLogWrapper& glLog)
845 static void setTexParameteri (glu::CallLogWrapper& glLog, deUint32 target)
857 glu::CallLogWrapper& glLog,
873 glu::Framebuffer fbo (renderCtx);
914 glu::CallLogWrapper& glLog,
927 const std::string glslVersionDeclaration = getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
929 const glu::ShaderProgram program(renderCtx,
930 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
971 const glu::Buffer outputBuffer (renderCtx);
985 const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram(), GL_SHADER_STORAGE_BLOCK, blockIndex, GL_BUFFER_DATA_SIZE);
1002 const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram(), GL_SHADER_STORAGE_BLOCK, blockIndex, GL_BUFFER_DATA_SIZE);
1004 const glu::InterfaceVariableInfo valueInfo = glu::getProgramInterfaceVariableInfo(renderCtx.getFunctions(), program.getProgram(), GL_BUFFER_VARIABLE, valueIndex);
1066 glu::CallLogWrapper& glLog,
1089 glu::CallLogWrapper& glLog,
1125 + (isCube ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
1169 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
1170 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
1179 const glu::Buffer textureBuf (renderCtx); // \note Only really used if using buffer texture.
1180 const glu::Texture texture (renderCtx);
1211 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
1213 const glu::ShaderProgram program(renderCtx,
1214 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
1388 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
1389 const deUint32 textureInternalFormatGL = glu::getInternalFormat(m_textureFormat);
1390 const deUint32 imageInternalFormatGL = glu::getInternalFormat(m_imageFormat);
1400 const glu::Buffer texture0Buf (renderCtx);
1401 const glu::Buffer texture1Buf (renderCtx);
1402 const glu::Texture texture0 (renderCtx);
1403 const glu::Texture texture1 (renderCtx);
1462 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
1464 const glu::ShaderProgram program(renderCtx,
1465 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
1741 "Result Values, " + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
1853 + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
1963 const glu::RenderContext& renderContext = m_context.getRenderContext();
1974 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
1975 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
1981 const glu::Buffer endResultTextureBuf (renderCtx);
1982 const glu::Buffer returnValueTextureBuf (renderCtx);
1983 const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the texture on which the atomic operations are done. Size imageSize.
1984 const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values are stored if m_caseType == CASETYPE_RETURN_VALUES.
2078 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2080 const glu::ShaderProgram program(renderCtx,
2081 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2220 const glu::RenderContext& renderContext = m_context.getRenderContext();
2238 "Result Values, " + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
2299 + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
2387 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2388 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
2394 const glu::Buffer endResultTextureBuf (renderCtx);
2395 const glu::Buffer returnValueTextureBuf (renderCtx);
2396 const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the texture on which the atomic operations are done. Size imageSize.
2397 const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values are stored if m_caseType == CASETYPE_RETURN_VALUES.
2487 const string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2489 const glu::ShaderProgram program(renderCtx,
2490 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2631 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2632 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
2641 const glu::Buffer textureBuf (renderCtx);
2642 const glu::Texture texture (renderCtx);
2685 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2688 const glu::ShaderProgram program(renderCtx,
2689 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2856 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2857 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
2859 const glu::Buffer mainTextureBuf (renderCtx);
2860 const glu::Texture mainTexture (renderCtx);
2861 const glu::Texture shaderOutResultTexture (renderCtx);
2897 const string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2899 const glu::ShaderProgram program(renderCtx,
2900 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
3032 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
3039 const glu::Texture texture (renderCtx);
3040 de::MovePtr<glu::Framebuffer> fbo;
3041 de::MovePtr<glu::Renderbuffer> colorAttachment;
3042 de::MovePtr<glu::Renderbuffer> testAttachment;
3065 fbo = de::MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx));
3066 colorAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx));
3067 testAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx));
3131 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
3135 const glu::ShaderProgram program(renderCtx,
3136 glu::ProgramSources() << glu::VertexSource( glslVersionDeclaration + "\n"
3145 << glu::FragmentSource( glslVersionDeclaration + "\n"
3186 const glu::VertexArrayBinding attrBindings[] =
3188 glu::va::Float("a_position", 3, 4, 0, &vertexPositions[0])
3193 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(attrBindings), &attrBindings[0],
3194 glu::pr::Triangles(DE_LENGTH_OF_ARRAY(indices), &indices[0]));
3202 glu::readPixels(renderCtx, viewportX, viewportY, rendered.getAccess());