/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcNearestEdgeTests.cpp | 94 const glu::TransferFormat m_transFormat; 176 , m_transFormat {glu::getTransferFormat(m_texFormat)} 226 if (glu::isContextTypeGLCore(m_context.getRenderContext().getType())) in init() 290 const auto internalFormat = glu::getInternalFormat(m_texFormat); in fillTexture() 325 const std::vector<glu::VertexArrayBinding> vertexArrays = in renderQuad() 327 glu::va::Float("position", 2, 4, 0, positions.data()) in renderQuad() 330 glu::ShaderProgram program(m_context.getRenderContext(), glu::makeVtxFragSources(m_vertShaderText, m_fragShaderText)); in renderQuad() 348 glu::draw(renderContext, program.getProgram(), in renderQuad() 350 glu in renderQuad() [all...] |
H A D | glcPolygonOffsetClampTests.cpp | 34 using namespace glu; 91 glu::ContextType contextType = m_context.getRenderContext().getType(); in PolygonOffsetClampTestCaseBase() 92 m_extensionSupported = glu::contextSupports(contextType, glu::ApiType::core(4, 6)); in PolygonOffsetClampTestCaseBase() 144 if (glu::isContextTypeGLCore(m_context.getRenderContext().getType())) in test() 209 if (!glu::isContextTypeGLCore(m_context.getRenderContext().getType())) in init() 249 if (!glu::isContextTypeGLCore(m_context.getRenderContext().getType())) in deinit() 269 if (glu::isContextTypeGLCore(m_context.getRenderContext().getType())) in test() 298 if (!glu::isContextTypeGLCore(m_context.getRenderContext().getType())) in test() 457 if (glu in readDepthValue() [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fIndirectComputeDispatchTests.cpp | 87 glu::ProgramSources genVerifySources (const UVec3& workGroupSize) in genVerifySources() 109 return glu::ProgramSources() << glu::ComputeSource(tcu::StringTemplate(s_verifyDispatchTmpl).specialize(args)); in genVerifySources() 242 glu::ShaderProgram program (m_context.getRenderContext(), glu::ProgramSources() << glu::ComputeSource(src.str())); in createCmdBufferCompute() 341 const glu::RenderContext& renderCtx = m_context.getRenderContext(); in iterate() 344 const glu::ShaderProgram program (renderCtx, genVerifySources(m_workGroupSize)); in iterate() 346 glu::Buffer cmdBuffer (renderCtx); in iterate() 347 glu in iterate() [all...] |
H A D | es31fNegativeStateApiTests.cpp | 50 using glu::CallLogWrapper; 81 if (glu::isContextTypeES(ctx.getRenderContext().getType())) in VAOHelper() 102 const bool supportsES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in getVtxFragVersionSources() 106 args["GLSL_VERSION_DECL"] = supportsES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : getGLSLVersionDeclaration(glu::GLSL_VERSION_300_ES); in getVtxFragVersionSources() 122 return contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) || in checkSupport() 123 contextSupports(ctx.getRenderContext().getType(), glu::ApiType::core(4, 5)); in checkSupport() 546 glu::ShaderProgram program (ctx.getRenderContext(), glu in get_uniformfv() [all...] |
H A D | es31fPrimitiveBoundingBoxTests.cpp | 126 const glu::GLSLVersion glslVersion = glu::getContextTypeGLSLVersion(context.getRenderContext().getType()); in specializeShader() 129 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader() 131 if (glu::contextSupports(context.getRenderContext().getType(), glu::ApiType::es(3, 2))) in specializeShader() 142 else if (glu::contextSupports(context.getRenderContext().getType(), glu::ApiType::core(4, 5))) in specializeShader() 175 if (glu::isContextTypeES(context.getRenderContext().getType())) in getBoundingBoxFunction() 188 return glu::contextSupports(context.getRenderContext().getType(), glu in supportsES32OrGL45() [all...] |
/third_party/vk-gl-cts/modules/gles31/stress/ |
H A D | es31sTessellationGeometryInteractionTests.cpp | 96 glu::ShaderProgram* m_program; 141 glu::ProgramSources sources; in init() 144 sources << glu::VertexSource(getVertexSource()) in init() 145 << glu::FragmentSource(getFragmentSource()); in init() 169 sources << glu::TessellationControlSource(getTessellationControlSource(tessGenLevel)) in init() 170 << glu::TessellationEvaluationSource(getTessellationEvaluationSource(tessGenLevel)); in init() 274 sources << glu::GeometrySource(getGeometryShaderSource(numPrimitivesPerInvocation, geometryShaderInvocations)); in init() 285 m_program = new glu::ShaderProgram(m_context.getRenderContext(), sources); in init() 339 const glu::VertexArray vao (m_context.getRenderContext()); in renderTo() 378 glu in renderTo() [all...] |
H A D | es31sDrawTests.cpp | 181 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog()); 182 glu::ShaderProgram program (m_context.getRenderContext(), glu::ProgramSources() << glu::VertexSource(s_colorVertexShaderSource) << glu::FragmentSource(s_colorFragmentShaderSource)); 191 glu::checkError(gl.glGetError(), "gen vao", __FILE__, __LINE__); 205 glu::checkError(gl.glGetError(), "", __FILE__, __LINE__); 218 glu::checkError(gl.glGetError(), "", __FILE__, __LINE__); 231 glu::checkError(gl.glGetError(), "", __FILE__, __LINE__); 255 glu [all...] |
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsRandomShaderProgram.cpp | 47 static glu::DataType mapToBasicType (const rsg::VariableType& varType) in mapToBasicType() 51 const glu::DataType scalarType = varType.isFloatOrVec() ? glu::TYPE_FLOAT : in mapToBasicType() 52 varType.isIntOrVec() ? glu::TYPE_INT : in mapToBasicType() 53 varType.isBoolOrVec() ? glu::TYPE_BOOL : glu::TYPE_LAST; in mapToBasicType() 57 return glu::DataType(scalarType + numComps - 1); in mapToBasicType() 60 return glu::TYPE_SAMPLER_2D; in mapToBasicType() 62 return glu::TYPE_SAMPLER_CUBE; in mapToBasicType() 66 return glu in mapToBasicType() [all...] |
/third_party/vk-gl-cts/modules/gles3/performance/ |
H A D | es3pDepthTests.cpp | 66 using glu::RenderContext; 67 using glu::ProgramSources; 68 using glu::ShaderSource; 103 RenderData (const ObjectData& object, const glu::RenderContext& renderCtx, TestLog& log); 106 const glu::ShaderProgram m_program; 107 const glu::VertexArray m_vao; 108 const glu::Buffer m_vbo; 113 RenderData::RenderData (const ObjectData& object, const glu::RenderContext& renderCtx, TestLog& log) in RenderData() 447 glu::ProgramSources getBaseShader (void) in getBaseShader() 449 return glu in getBaseShader() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cDirectStateAccessVertexArraysTests.cpp | 84 bool is_at_least_gl_45 = (glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 5))); in iterate() 218 bool is_at_least_gl_45 = (glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 5))); in iterate() 367 << "Shader type: " << glu::getShaderTypeStr(shader[i].type) in BuildProgram() 513 glu::BufferOffsetAsPointer(i * sizeof(glw::GLint))); in PrepareVAO() 641 << glu::getErrorStr(error) << " when called with VAO " << m_vao << " and index " << i << "." in TurnOnAttributes() 660 << glu::getErrorStr(error) << " when called with VAO " << m_vao << " and index " << i << "." in TurnOnAttributes() 677 << tcu::TestLog::Message << "glDisableVertexArrayAttrib generated error " << glu::getErrorStr(error) in TurnOnAttributes() 817 bool is_at_least_gl_45 = (glu in iterate() [all...] |
H A D | gl3cTransformFeedbackOverflowQueryTests.cpp | 71 glu::ContextType contextType = m_context.getRenderContext().getType(); in featureSupported() 73 glu::contextSupports(contextType, glu::ApiType::core(4, 6))) in featureSupported() 85 glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType(4, 0, glu::PROFILE_CORE))); in supportsTransformFeedback2() 92 glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType(4, 0, glu::PROFILE_CORE))); in supportsTransformFeedback3() 99 glu in supportsGpuShader5() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawMultisampleLinearInterpolationTests.cpp | 548 vrt << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 561 programCollection.glslSources.add("vertRef") << glu::VertexSource(vrt.str()); in initPrograms() 568 vrt << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 581 programCollection.glslSources.add("vertNoPer") << glu::VertexSource(vrt.str()); in initPrograms() 588 frg << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 598 programCollection.glslSources.add("fragRef") << glu::FragmentSource(frg.str()); in initPrograms() 605 frg << glu in initPrograms() [all...] |
H A D | vktDrawShaderLayerTests.cpp | 374 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initVertexTestPrograms() 388 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); in initVertexTestPrograms() 389 programCollection.glslSources.add("vert_1_2") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_5, 0u, true); in initVertexTestPrograms() 396 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initVertexTestPrograms() 406 programCollection.glslSources.add("frag") << glu::FragmentSource(src.str()); in initVertexTestPrograms() 417 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initTessellationTestPrograms() 429 programCollection.glslSources.add("vert") << glu in initTessellationTestPrograms() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageSampleDrawnCubeFaceTests.cpp | 493 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 501 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 516 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 527 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 539 programCollection.glslSources.add("vert1") << glu::VertexSource(pipeline1VertexSrc.str()); in initPrograms() 540 programCollection.glslSources.add("vert2") << glu in initPrograms() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationPrimitiveDiscardTests.cpp | 264 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 274 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); 280 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 304 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str()); 320 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 350 programCollection.glslSources.add(needPointSizeWrite ? "tese_psw" : "tese") << glu::TessellationEvaluationSource(src.str()); 357 src << glu [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawMultisampleLinearInterpolationTests.cpp | 549 vrt << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 562 programCollection.glslSources.add("vertRef") << glu::VertexSource(vrt.str()); in initPrograms() 569 vrt << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 582 programCollection.glslSources.add("vertNoPer") << glu::VertexSource(vrt.str()); in initPrograms() 589 frg << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 599 programCollection.glslSources.add("fragRef") << glu::FragmentSource(frg.str()); in initPrograms() 606 frg << glu in initPrograms() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageSampleDrawnCubeFaceTests.cpp | 495 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 503 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 518 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 529 << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450) << "\n" in initPrograms() 541 programCollection.glslSources.add("vert1") << glu::VertexSource(pipeline1VertexSrc.str()); in initPrograms() 542 programCollection.glslSources.add("vert2") << glu in initPrograms() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationFractionalSpacingTests.cpp | 393 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 399 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); 405 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 420 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str()); 426 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 443 programCollection.glslSources.add("tese") << glu::TessellationEvaluationSource(src.str()); 455 programCollection.hlslSources.add("vert") << glu [all...] |
H A D | vktTessellationPrimitiveDiscardTests.cpp | 264 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 274 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); 280 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 304 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str()); 320 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 350 programCollection.glslSources.add(needPointSizeWrite ? "tese_psw" : "tese") << glu::TessellationEvaluationSource(src.str()); 357 src << glu [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_border_clamp/ |
H A D | esextcTextureBorderClampTexParameterIErrors.cpp | 277 << "] reported error code:[" << glu::getErrorStr(error_code) << "] expected error code:[" in VerifyGLTexParameterIiv() 278 << glu::getErrorStr(expected_error) << "]\n" in VerifyGLTexParameterIiv() 307 << "] reported error code:[" << glu::getErrorStr(error_code) << "] expected error code:[" in VerifyGLTexParameterIivMultipleAcceptedErrors() 308 << glu::getErrorStr(expected_error1) << "] or error code [" in VerifyGLTexParameterIivMultipleAcceptedErrors() 309 << glu::getErrorStr(expected_error2) << "]\n" in VerifyGLTexParameterIivMultipleAcceptedErrors() 337 << "] reported error code:[" << glu::getErrorStr(error_code) << "] expected error code:[" in VerifyGLTexParameterIuiv() 338 << glu::getErrorStr(expected_error) << "]\n" in VerifyGLTexParameterIuiv()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fFboStencilbufferTests.cpp | 70 GradientShader gradShader (glu::TYPE_FLOAT_VEC4); in render() 71 FlatColorShader flatShader (glu::TYPE_FLOAT_VEC4); in render() 132 readPixels(dst, 0, 0, m_size.x(), m_size.y(), glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); in render() 164 GradientShader gradShader (glu::TYPE_FLOAT_VEC4); in render() 165 FlatColorShader flatShader (glu::TYPE_FLOAT_VEC4); in render() 229 readPixels(dst, 0, 0, width, height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); in render() 263 tcu::TextureFormat texFmt = glu::mapGLInternalFormat(format); in init()
|
H A D | es3fShaderStateQueryTests.cpp | 102 void verifyShaderParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint shader, GLenum pname, GLenum reference) in verifyShaderParam() 111 bool verifyProgramParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLenum pname, GLenum reference) in verifyProgramParam() 119 void verifyActiveUniformParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLuint index, GLenum pname, GLenum reference) in verifyActiveUniformParam() 128 void verifyActiveUniformBlockParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLuint blockIndex, GLenum pname, GLenum reference) in verifyActiveUniformBlockParam() 137 void verifyCurrentVertexAttribf (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) in verifyCurrentVertexAttribf() 157 void verifyCurrentVertexAttribIi (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLint x, GLint y, GLint z, GLint w) in verifyCurrentVertexAttribIi() 177 void verifyCurrentVertexAttribIui (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLuint x, GLuint y, GLuint z, GLuint w) in verifyCurrentVertexAttribIui() 197 void verifyCurrentVertexAttribConversion (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) in verifyCurrentVertexAttribConversion() 248 void verifyVertexAttrib (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLenum pname, GLenum reference) in verifyVertexAttrib() 257 void verifyUniformValue1f (tcu::TestContext& testCtx, glu [all...] |
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluVarType.cpp | 28 namespace glu namespace 96 case VARTYPE_BASIC: return glu::getDataTypeScalarSize(m_data.basic.type); in getScalarSize() 289 , storage (glu::STORAGE_LAST) in InterfaceBlock() 335 str << getMemoryAccessQualifierName((glu::MemoryAccessQualifier)(1 << bitNdx)) << " "; in operator <<() 373 if (curType->getPrecision() != PRECISION_LAST && !glu::isDataTypeFloat16OrVec(curType->getBasicType())) in operator <<() 374 str << glu::getPrecisionName(curType->getPrecision()) << " "; in operator <<() 375 str << glu::getDataTypeName(curType->getBasicType()); in operator <<() 431 } // glu
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fVertexTextureTests.cpp | 60 using namespace glu::TextureTestUtil; 62 using glu::TextureTestUtil::TEXTURETYPE_2D; 63 using glu::TextureTestUtil::TEXTURETYPE_CUBE; 321 static inline IVec2 getTextureSize (const glu::Texture2D& tex) in getTextureSize() 327 static inline IVec2 getTextureSize (const glu::TextureCube& tex) in getTextureSize() 380 static bool compareImages (const glu::RenderContext& renderCtx, tcu::TestLog& log, const tcu::Surface& ref, const tcu::Surface& res) in compareImages() 414 const glu::ShaderProgram* m_program; 415 glu::Texture2D* m_textures[2]; // 2 textures, a gradient texture and a grid texture. 462 m_program = new glu::ShaderProgram(m_context.getRenderContext(), glu in init() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
H A D | vktShaderRenderTextureGatherTests.cpp | 846 static inline glu::DataType getSamplerType (TextureType textureType, const tcu::TextureFormat& format) in getSamplerType() 852 case TEXTURETYPE_2D: return glu::TYPE_SAMPLER_2D_SHADOW; in getSamplerType() 853 case TEXTURETYPE_2D_ARRAY: return glu::TYPE_SAMPLER_2D_ARRAY_SHADOW; in getSamplerType() 854 case TEXTURETYPE_CUBE: return glu::TYPE_SAMPLER_CUBE_SHADOW; in getSamplerType() 855 default: DE_ASSERT(false); return glu::TYPE_LAST; in getSamplerType() 862 case TEXTURETYPE_2D: return glu::getSampler2DType(format); in getSamplerType() 863 case TEXTURETYPE_2D_ARRAY: return glu::getSampler2DArrayType(format); in getSamplerType() 864 case TEXTURETYPE_CUBE: return glu::getSamplerCubeType(format); in getSamplerType() 865 default: DE_ASSERT(false); return glu::TYPE_LAST; in getSamplerType() 870 static inline glu [all...] |