/external/deqp/modules/gles3/functional/ |
es3fShaderFragDataTests.cpp | 112 static glu::ProgramSources genSources (const IndexExprType indexExprType) 117 glu::ProgramSources sources; 121 sources << glu::VertexSource( 134 sources << glu::FragmentSource(string( 148 const glu::RenderContext& renderCtx = m_context.getRenderContext(); 150 const glu::ShaderProgram program (renderCtx, genSources(m_indexExprType)); 171 const glu::VertexArrayBinding vertexArrays[] = 173 glu::va::Float("a_position", 2, 4, 0, &positions[0]), 174 glu::va::Float("a_color", 4, 4, 0, &colors[0]), 175 glu::va::Float("a_index", 1, 4, 0, &indexValues[0] [all...] |
es3fInstancedRenderingTests.cpp | 107 InstancedRenderingCase (Context& context, const char* name, const char* description, DrawFunction function, InstancingType instancingType, glu::DataType rgbAttrType, int numInstances); 126 glu::DataType m_rgbAttrType; // \note Instance attribute types, color components only. Position offset attribute is always float/vecN. 139 glu::ShaderProgram* m_program; 142 InstancedRenderingCase::InstancedRenderingCase (Context& context, const char* name, const char* description, DrawFunction function, InstancingType instancingType, glu::DataType rgbAttrType, int numInstances) 160 bool isFloatCase = glu::isDataTypeFloatOrVec(m_rgbAttrType); 161 bool isIntCase = glu::isDataTypeIntOrIVec(m_rgbAttrType); 162 bool isUintCase = glu::isDataTypeUintOrUVec(m_rgbAttrType); 163 bool isMatCase = glu::isDataTypeMatrix(m_rgbAttrType); 177 bool isFloatCase = glu::isDataTypeFloatOrVec(m_rgbAttrType); 178 bool isIntCase = glu::isDataTypeIntOrIVec(m_rgbAttrType) [all...] |
es3fFboTestUtil.hpp | 49 std::vector<glu::DataType> vec; 50 DataTypes& operator<< (glu::DataType type) { vec.push_back(type); return *this; } 58 FlatColorShader (glu::DataType outputType); 67 const glu::DataType m_outputType; 73 GradientShader (glu::DataType outputType); 82 const glu::DataType m_outputType; 88 Texture2DShader (const DataTypes& samplerTypes, glu::DataType outputType, const tcu::Vec4& outScale = tcu::Vec4(1.0f), const tcu::Vec4& outBias = tcu::Vec4(0.0f)); 112 const glu::DataType m_outputType; 118 TextureCubeShader (glu::DataType samplerType, glu::DataType outputType) [all...] |
/external/deqp/modules/gles3/performance/ |
es3pTextureCases.cpp | 79 for (vector<glu::Texture2D*>::iterator i = m_textures.begin(); i != m_textures.end(); i++) 95 const tcu::TextureFormat texFormat = glu::mapGLInternalFormat(m_internalFormat); 97 const glu::Precision samplerPrec = (texFormat.type == tcu::TextureFormat::FLOAT || 100 ? glu::PRECISION_HIGHP : glu::PRECISION_MEDIUMP; 101 const glu::DataType samplerType = glu::getSampler2DType(texFormat); 102 const bool isIntUint = samplerType == glu::TYPE_INT_SAMPLER_2D || samplerType == glu::TYPE_UINT_SAMPLER_2D; 131 log << TestLog::Message << "Format: " <<glu::getTextureFormatName(m_internalFormat) << TestLog::EndMessage [all...] |
/external/deqp/modules/glshared/ |
glsScissorTests.hpp | 32 namespace glu namespace 35 } // glu 77 glu::RenderContext& renderCtx, 85 glu::RenderContext& renderCtx, 92 glu::RenderContext& renderCtx, 98 glu::RenderContext& renderCtx,
|
glsTextureBufferCase.hpp | 29 namespace glu namespace 33 } // glu 67 glu::RenderContext& renderCtx, 85 glu::RenderContext& m_renderCtx; 94 glu::ShaderProgram* m_preRenderProgram; 95 glu::ShaderProgram* m_postRenderProgram;
|
glsBufferTestUtil.hpp | 39 namespace glu namespace 61 class BufferCase : public tcu::TestCase, public glu::CallLogWrapper 64 BufferCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description); 75 glu::RenderContext& m_renderCtx; 115 class BufferWriterBase : protected glu::CallLogWrapper 118 BufferWriterBase (glu::RenderContext& renderCtx, tcu::TestLog& log); 127 glu::RenderContext& m_renderCtx; 137 BufferWriter (glu::RenderContext& renderCtx, tcu::TestLog& log, WriteType writeType); 155 BufferSubDataWriter (glu::RenderContext& renderCtx, tcu::TestLog& log) : BufferWriterBase(renderCtx, log) {} 167 BufferWriteMapWriter (glu::RenderContext& renderCtx, tcu::TestLog& log) : BufferWriterBase(renderCtx, log) { [all...] |
glsStateQueryUtil.hpp | 33 namespace glu namespace 36 } // glu 50 (RES).fail(std::string("Got Error ") + glu::getErrorStr(err).toString() + ": " + (MSG)); \ 384 void queryState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum pname, QueriedState& state); 385 void queryIndexedState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state); 386 void queryAttributeState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state); 387 void queryFramebufferState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state); 388 void queryProgramState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint program, glw::GLenum pname, QueriedState& state); 389 void queryPipelineState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint pipeline, glw::GLenum pname, QueriedState& state); 390 void queryTextureParamState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state) [all...] |
glsSamplerObjectTest.cpp | 72 TextureSamplerTest::TextureSamplerTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const TestSpec& spec) 212 if (glu::isGLSLVersionSupported(m_renderCtx.getType(), glu::GLSL_VERSION_300_ES)) 224 else if (glu::isGLSLVersionSupported(m_renderCtx.getType(), glu::GLSL_VERSION_330)) 240 m_program = new glu::ShaderProgram(m_renderCtx, 241 glu::makeVtxFragSources(tcu::StringTemplate(vertexShaderTemplate).specialize(params), 325 glu::VertexArrayBinding vertexArrays[] = 327 glu::VertexArrayBinding(glu::BindingPoint("a_position"), glu::VertexArrayPointer(glu::VTX_COMP_FLOAT, glu::VTX_COMP_CONVERT_NO (…) [all...] |
glsStateChangePerfTestCases.hpp | 29 namespace glu namespace 55 StateChangePerformanceCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, DrawType drawType, int drawCallCount, int triangleCount); 82 glu::RenderContext& m_renderCtx; 92 std::vector<glu::ShaderProgram*> m_programs; 112 StateChangeCallPerformanceCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description); 125 glu::RenderContext& m_renderCtx;
|
glsTextureTestUtil.cpp | 46 using namespace glu::TextureTestUtil; 66 ProgramLibrary::ProgramLibrary (const glu::RenderContext& context, tcu::TestLog& log, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision) 81 for (map<Program, glu::ShaderProgram*>::iterator i = m_programs.begin(); i != m_programs.end(); i++) 89 glu::ShaderProgram* ProgramLibrary::getProgram (Program program) 136 if (m_glslVersion == glu::GLSL_VERSION_100_ES) 145 else if (m_glslVersion == glu::GLSL_VERSION_300_ES || m_glslVersion == glu::GLSL_VERSION_310_ES || m_glslVersion == glu::GLSL_VERSION_320_ES || m_glslVersion == glu::GLSL_VERSION_330 [all...] |
/external/deqp/modules/gles2/functional/ |
es2fDefaultVertexAttributeTests.cpp | 82 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0; 99 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 133 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 165 AttributeCase (Context& ctx, const char* name, const char* desc, const char* funcName, bool normalizing, bool useNegative, glu::DataType dataType); 168 static AttributeCase* create (Context& ctx, glu::DataType dataType); 176 glu::DataType getTargetType (void) const; 185 const glu::DataType m_dataType; 187 glu::ShaderProgram* m_program; 198 AttributeCase::AttributeCase (Context& ctx, const char* name, const char* desc, const char* funcName, bool normalizing, bool useNegative, glu::DataType dataType) 213 AttributeCase* AttributeCase::create (Context& ctx, glu::DataType dataType [all...] |
es2fUniformApiTests.cpp | 63 using glu::ShaderProgram; 64 using glu::StructType; 68 typedef bool (* dataTypePredicate)(glu::DataType); 74 static const glu::DataType s_testDataTypes[] = 76 glu::TYPE_FLOAT, 77 glu::TYPE_FLOAT_VEC2, 78 glu::TYPE_FLOAT_VEC3, 79 glu::TYPE_FLOAT_VEC4, 80 glu::TYPE_FLOAT_MAT2, 81 glu::TYPE_FLOAT_MAT3 [all...] |
/external/deqp/modules/gles31/functional/ |
es31fShaderStateQueryTests.cpp | 46 static inline std::string brokenShaderSource (const glu::ContextType &contextType) 48 const std::string glslVersionDecl = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(contextType)); 100 const bool supportsES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2)); 109 std::string(glu::getShaderVarTypeStr(samplerTypes[typeNdx].glType).toString()), 110 "Uniform type " + glu::getShaderVarTypeStr(samplerTypes[typeNdx].glType).toString()); 116 shaderArgs["VERSIONDECL"] = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(m_context.getRenderContext().getType())); 121 glu::ShaderProgram program (m_context.getRenderContext(), glu::ProgramSources() << glu::VertexSo (…) [all...] |
es31fNegativeShaderImageLoadStoreTests.cpp | 75 static const glu::ShaderType s_shaders[] = 77 glu::SHADERTYPE_VERTEX, 78 glu::SHADERTYPE_FRAGMENT, 79 glu::SHADERTYPE_GEOMETRY, 80 glu::SHADERTYPE_TESSELLATION_CONTROL, 81 glu::SHADERTYPE_TESSELLATION_EVALUATION, 82 glu::SHADERTYPE_COMPUTE 118 std::string getShaderImageTypeDeclaration (const tcu::TextureFormat& format, glu::TextureTestUtil::TextureType imageType) 146 case glu::TextureTestUtil::TEXTURETYPE_2D: declaration << "2D"; break; 147 case glu::TextureTestUtil::TEXTURETYPE_3D: declaration << "3D"; break [all...] |
es31fSSBOLayoutCase.hpp | 31 namespace glu namespace 69 BufferVar (const char* name, const glu::VarType& type, deUint32 flags); 72 const glu::VarType& getType (void) const { return m_type; } 77 glu::VarType m_type; 123 glu::StructType& allocStruct (const char* name); 124 const glu::StructType* findStruct (const char* name) const; 125 void getNamedStructs (std::vector<const glu::StructType*>& structs) const; 136 std::vector<glu::StructType*> m_structs; 155 SSBOLayoutCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, glu::GLSLVersion glslVersion, BufferMode bufferMode) [all...] |
es31fOpaqueTypeIndexingTests.cpp | 60 using namespace glu; 119 static TextureType getTextureType (glu::DataType samplerType) 123 case glu::TYPE_SAMPLER_1D: 124 case glu::TYPE_INT_SAMPLER_1D: 125 case glu::TYPE_UINT_SAMPLER_1D: 126 case glu::TYPE_SAMPLER_1D_SHADOW: 129 case glu::TYPE_SAMPLER_2D: 130 case glu::TYPE_INT_SAMPLER_2D: 131 case glu::TYPE_UINT_SAMPLER_2D: 132 case glu::TYPE_SAMPLER_2D_SHADOW [all...] |
es31fStencilTexturingTests.cpp | 123 static void drawTestPattern (const glu::RenderContext& renderCtx, int width, int height) 125 const glu::ShaderProgram program(renderCtx, glu::ProgramSources() 126 << glu::VertexSource( 133 << glu::FragmentSource( 157 const glu::VertexArrayBinding posBinding = glu::va::Float("a_position", 2, (int)positions.size(), 0, positions[0].getPtr()); 158 glu::draw(renderCtx, program.getProgram(), 1, &posBinding, glu::pr::Triangles((int)indices.size(), &indices[0])); 199 static void blitStencilToColor2D (const glu::RenderContext& renderCtx, deUint32 srcTex, int width, int height [all...] |
es31fNegativeAdvancedBlendEquationTests.cpp | 134 const bool isES32 = contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); 135 const glu::GLSLVersion version = isES32 ? glu::GLSL_VERSION_320_ES : glu::GLSL_VERSION_310_ES; 138 source << glu::getGLSLVersionDeclaration(version) << "\n" 149 const bool isES32 = contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); 150 const glu::GLSLVersion version = isES32 ? glu::GLSL_VERSION_320_ES : glu::GLSL_VERSION_310_ES; 153 source << glu::getGLSLVersionDeclaration(version) << "\n [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
vktShaderPackingFunctionTests.cpp | 67 static const char* getPrecisionPostfix (glu::Precision precision) 75 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_postfix) == glu::PRECISION_LAST); 80 static const char* getShaderTypePostfix (glu::ShaderType shaderType) 102 ShaderPackingFunctionCase (tcu::TestContext& testCtx, const char* name, const char* description, glu::ShaderType shaderType); 111 const glu::ShaderType m_shaderType; 119 ShaderPackingFunctionCase::ShaderPackingFunctionCase (tcu::TestContext& testCtx, const char* name, const char* description, glu::ShaderType shaderType) 134 ShaderPackingFunctionTestInstance (Context& context, glu::ShaderType shaderType, const ShaderSpec& spec, const char* name) 146 const glu::ShaderType m_shaderType; 157 PackSnorm2x16CaseInstance (Context& context, glu::ShaderType shaderType, const ShaderSpec& spec, glu::Precision precision, const char* name [all...] |
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
vktTessellationShaderInputOutputTests.cpp | 222 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 232 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); 238 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 259 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str()); 265 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n" 281 programCollection.glslSources.add("tese") << glu::TessellationEvaluationSource(src.str()); 287 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n [all...] |
/external/deqp/framework/platform/android/ |
tcuAndroidPlatform.hpp | 39 class Platform : public tcu::Platform, private eglu::Platform, private glu::Platform, private vk::Platform 47 virtual const glu::Platform& getGLPlatform (void) const { return static_cast<const glu::Platform&>(*this); }
|
/external/deqp/framework/platform/lnx/ |
tcuLnxPlatform.cpp | 45 class LinuxGLPlatform : public glu::Platform 48 void registerFactory (de::MovePtr<glu::ContextFactory> factory) 62 const glu::Platform& getGLPlatform (void) const { return m_glPlatform; }
|
/external/deqp/external/vulkancts/modules/vulkan/ssbo/ |
vktSSBOLayoutCase.cpp | 56 using glu::VarType; 57 using glu::StructType; 58 using glu::StructMember; 147 stream << entry.name << " { type = " << glu::getDataTypeName(entry.type) 242 int getDataTypeByteSize (glu::DataType type) 244 return glu::getDataTypeScalarSize(type)*(int)sizeof(deUint32); 247 int getDataTypeByteAlignment (glu::DataType type) 251 case glu::TYPE_FLOAT: 252 case glu::TYPE_INT: 253 case glu::TYPE_UINT [all...] |
/external/deqp/external/vulkancts/modules/vulkan/ubo/ |
vktUniformBlockTests.cpp | 79 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), UNUSED_BOTH); // First member is unused. 80 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM), 4)); 81 typeS.addMember("c", VarType(glu::TYPE_FLOAT_VEC4, PRECISION_HIGH)); 104 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), UNUSED_BOTH); 105 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM), 4)); 106 typeS.addMember("c", VarType(glu::TYPE_FLOAT_VEC4, PRECISION_HIGH)); 109 block.addUniform(Uniform("u", VarType(glu::TYPE_UINT, PRECISION_LOW))); 111 block.addUniform(Uniform("v", VarType(glu::TYPE_FLOAT_VEC4, PRECISION_MEDIUM))); 131 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH)); 132 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM), 4)) [all...] |