Home | History | Annotate | Download | only in functional

Lines Matching refs:glu

56 using glu::RenderContext;
81 using namespace glu::TextureTestUtil;
354 static inline void checkTextureTypeExtensions (const glu::ContextInfo& contextInfo, TextureType type, const RenderContext& renderContext)
356 if (type == TEXTURETYPE_BUFFER && !contextInfo.isExtensionSupported(s_texBufExtString) && !glu::contextSupports(renderContext.getType(), glu::ApiType::es(3, 2)))
362 if (!glu::contextSupports(renderContext.getType(), glu::ApiType::es(3, 2)) && (type == TEXTURETYPE_BUFFER))
372 if (!glu::contextSupports(renderContext.getType(), glu::ApiType::es(3, 2)))
696 static void setTextureStorage (glu::CallLogWrapper& glLog, TextureType imageType, deUint32 internalFormat, const IVec3& imageSize, deUint32 textureBufGL)
704 const TextureFormat format = glu::mapGLInternalFormat(internalFormat);
732 static void uploadTexture (glu::CallLogWrapper& glLog, const LayeredImage& src, deUint32 textureBufGL)
734 const deUint32 internalFormat = glu::getInternalFormat(src.getFormat());
735 const glu::TransferFormat transferFormat = glu::getTransferFormat(src.getFormat());
775 static void readPixelsRGBAInteger32 (const PixelBufferAccess& dst, int originX, int originY, glu::CallLogWrapper& glLog)
811 static void setTexParameteri (glu::CallLogWrapper& glLog, deUint32 target)
823 glu::CallLogWrapper& glLog,
839 glu::Framebuffer fbo (renderCtx);
880 glu::CallLogWrapper& glLog,
893 const std::string glslVersionDeclaration = getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
895 const glu::ShaderProgram program(renderCtx,
896 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
937 const glu::Buffer outputBuffer (renderCtx);
951 const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram(), GL_SHADER_STORAGE_BLOCK, blockIndex, GL_BUFFER_DATA_SIZE);
968 const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram(), GL_SHADER_STORAGE_BLOCK, blockIndex, GL_BUFFER_DATA_SIZE);
970 const glu::InterfaceVariableInfo valueInfo = glu::getProgramInterfaceVariableInfo(renderCtx.getFunctions(), program.getProgram(), GL_BUFFER_VARIABLE, valueIndex);
1032 glu::CallLogWrapper& glLog,
1055 glu::CallLogWrapper& glLog,
1091 + (isCube ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
1135 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
1136 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
1145 const glu::Buffer textureBuf (renderCtx); // \note Only really used if using buffer texture.
1146 const glu::Texture texture (renderCtx);
1177 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
1179 const glu::ShaderProgram program(renderCtx,
1180 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
1354 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
1355 const deUint32 textureInternalFormatGL = glu::getInternalFormat(m_textureFormat);
1356 const deUint32 imageInternalFormatGL = glu::getInternalFormat(m_imageFormat);
1366 const glu::Buffer texture0Buf (renderCtx);
1367 const glu::Buffer texture1Buf (renderCtx);
1368 const glu::Texture texture0 (renderCtx);
1369 const glu::Texture texture1 (renderCtx);
1428 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
1430 const glu::ShaderProgram program(renderCtx,
1431 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
1709 "Result Values, " + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
1807 + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
1920 if (!m_context.getContextInfo().isExtensionSupported("GL_OES_shader_image_atomic") && !glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2)))
1930 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
1931 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
1937 const glu::Buffer endResultTextureBuf (renderCtx);
1938 const glu::Buffer returnValueTextureBuf (renderCtx);
1939 const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the texture on which the atomic operations are done. Size imageSize.
1940 const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values are stored if m_caseType == CASETYPE_RETURN_VALUES.
2022 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2024 const glu::ShaderProgram program(renderCtx,
2025 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2165 if (!m_context.getContextInfo().isExtensionSupported("GL_OES_shader_image_atomic") && !glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2)))
2182 "Result Values, " + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
2242 + (m_imageType == TEXTURETYPE_CUBE ? "face " + string(glu::getCubeMapFaceName(cubeFaceToGLFace(glslImageFuncZToCubeFace(sliceOrFaceNdx))))
2331 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2332 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
2338 const glu::Buffer endResultTextureBuf (renderCtx);
2339 const glu::Buffer returnValueTextureBuf (renderCtx);
2340 const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the texture on which the atomic operations are done. Size imageSize.
2341 const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values are stored if m_caseType == CASETYPE_RETURN_VALUES.
2419 const string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2421 const glu::ShaderProgram program(renderCtx,
2422 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2551 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2552 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
2561 const glu::Buffer textureBuf (renderCtx);
2562 const glu::Texture texture (renderCtx);
2605 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2608 const glu::ShaderProgram program(renderCtx,
2609 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2776 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2777 const deUint32 internalFormatGL = glu::getInternalFormat(m_format);
2779 const glu::Buffer mainTextureBuf (renderCtx);
2780 const glu::Texture mainTexture (renderCtx);
2781 const glu::Texture shaderOutResultTexture (renderCtx);
2817 const string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
2819 const glu::ShaderProgram program(renderCtx,
2820 glu::ProgramSources() << glu::ComputeSource(glslVersionDeclaration + "\n"
2914 if (!m_context.getContextInfo().isExtensionSupported("GL_OES_shader_image_atomic") && !glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2)))
2952 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log);
2959 const glu::Texture texture (renderCtx);
2960 de::MovePtr<glu::Framebuffer> fbo;
2961 de::MovePtr<glu::Renderbuffer> colorAttachment;
2962 de::MovePtr<glu::Renderbuffer> testAttachment;
2985 fbo = de::MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx));
2986 colorAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx));
2987 testAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx));
3051 const std::string glslVersionDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType()));
3055 const glu::ShaderProgram program(renderCtx,
3056 glu::ProgramSources() << glu::VertexSource( glslVersionDeclaration + "\n"
3065 << glu::FragmentSource( glslVersionDeclaration + "\n"
3106 const glu::VertexArrayBinding attrBindings[] =
3108 glu::va::Float("a_position", 3, 4, 0, &vertexPositions[0])
3113 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(attrBindings), &attrBindings[0],
3114 glu::pr::Triangles(DE_LENGTH_OF_ARRAY(indices), &indices[0]));
3122 glu::readPixels(renderCtx, viewportX, viewportY, rendered.getAccess());