/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory_model/ |
H A D | vktMemoryModelSharedLayoutCase.cpp | 50 using glu::VarType; 51 using glu::StructMember; 92 const glu::DataType scalarType = glu::getDataTypeScalarType(entry.type); in generateValue() 93 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() 95 const bool isMatrix = glu::isDataTypeMatrix(entry.type); in generateValue() 96 const int numVecs = isMatrix ? glu::getDataTypeMatrixNumColumns(entry.type) : 1; in generateValue() 111 case glu::TYPE_INT: in generateValue() 112 case glu::TYPE_INT8: in generateValue() 113 case glu in generateValue() [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fProgramPipelineStateQueryTests.cpp | 100 const glu::ShaderProgram vtxProgram (m_context.getRenderContext(), glu::ProgramSources() << glu::ProgramSeparable(true) << glu::VertexSource(s_vertexSource)); in iterate() 101 const glu::ShaderProgram frgProgram (m_context.getRenderContext(), glu::ProgramSources() << glu::ProgramSeparable(true) << glu::FragmentSource(s_fragmentSource)); in iterate() 102 const glu::ProgramPipeline pipeline (m_context.getRenderContext()); in iterate() 103 glu in iterate() [all...] |
H A D | es31fUniformBlockTests.cpp | 55 group->addChild(new RandomUniformBlockCase(context.getTestContext(), context.getRenderContext(), glu::GLSL_VERSION_310_ES, in createRandomCaseGroup() 63 : UniformBlockCase(context.getTestContext(), context.getRenderContext(), name, description, glu::GLSL_VERSION_310_ES, BUFFERMODE_PER_BLOCK) in BlockBasicTypeCase() 90 : UniformBlockCase (context.getTestContext(), context.getRenderContext(), name, description, glu::GLSL_VERSION_310_ES, bufferMode) in Block2LevelStructArrayCase() 99 typeS.addMember("a", VarType(glu::TYPE_UINT_VEC3, PRECISION_HIGH), UNUSED_BOTH); in init() 100 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT2, PRECISION_MEDIUM), 4)); in init() 101 typeS.addMember("c", VarType(glu::TYPE_UINT, PRECISION_LOW)); in init() 104 block.addUniform(Uniform("u", VarType(glu::TYPE_INT, PRECISION_MEDIUM))); in init() 106 block.addUniform(Uniform("v", VarType(glu::TYPE_FLOAT_VEC2, PRECISION_MEDIUM))); in init() 134 static const glu::DataType basicTypes[] = in init() 136 glu in init() [all...] |
H A D | es31fProgramInterfaceDefinitionUtil.hpp | 46 VariablePathComponent (const glu::VarType* type) :m_type(TYPE_TYPE) { m_data.type = type; } in VariablePathComponent() 47 VariablePathComponent (const glu::InterfaceBlock* block) :m_type(TYPE_INTERFACEBLOCK) { m_data.block = block; } in VariablePathComponent() 48 VariablePathComponent (const glu::VariableDeclaration* decl) :m_type(TYPE_DECLARATION) { m_data.declaration = decl; } in VariablePathComponent() 57 const glu::VarType* getVariableType (void) const { DE_ASSERT(isVariableType()); return m_data.type; } in getVariableType() 58 const glu::InterfaceBlock* getInterfaceBlock (void) const { DE_ASSERT(isInterfaceBlock()); return m_data.block; } in getInterfaceBlock() 59 const glu::VariableDeclaration* getDeclaration (void) const { DE_ASSERT(isDeclaration()); return m_data.declaration; } in getDeclaration() 73 const glu::VarType* type; 74 const glu::InterfaceBlock* block; 75 const glu::VariableDeclaration* declaration; 89 static VariableSearchFilter createShaderTypeFilter (glu [all...] |
H A D | 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) in getShaderImageTypeDeclaration() 146 case glu::TextureTestUtil::TEXTURETYPE_2D: declaration << "2D"; break; in getShaderImageTypeDeclaration() 147 case glu in getShaderImageTypeDeclaration() [all...] |
H A D | es31fProgramInterfaceDefinition.hpp | 59 std::vector<glu::VariableDeclaration> variables; 60 std::vector<glu::InterfaceBlock> interfaceBlocks; 66 glu::ShaderType getType (void) const { return m_shaderType; } in getType() 67 glu::GLSLVersion getVersion (void) const { return m_version; } in getVersion() 74 Shader (glu::ShaderType type, glu::GLSLVersion version); 80 const glu::ShaderType m_shaderType; 81 const glu::GLSLVersion m_version; 93 Shader* addShader (glu::ShaderType type, glu [all...] |
H A D | es31fShaderStateQueryTests.cpp | 46 static inline std::string brokenShaderSource (const glu::ContextType &contextType) in brokenShaderSource() 48 const std::string glslVersionDecl = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(contextType)); in brokenShaderSource() 101 const bool isES32orGL45 = glu::contextSupports(ctxType, glu::ApiType::es(3, 2)) || in iterate() 102 glu::contextSupports(ctxType, glu::ApiType::core(4, 5)); in iterate() 111 std::string(glu::getShaderVarTypeStr(samplerTypes[typeNdx].glType).toString()), in iterate() 112 "Uniform type " + glu::getShaderVarTypeStr(samplerTypes[typeNdx].glType).toString()); in iterate() 118 shaderArgs["VERSIONDECL"] = glu in iterate() [all...] |
H A D | es31fProgramInterfaceQueryTestCase.cpp | 49 static glw::GLenum getProgramDefaultBlockInterfaceFromStorage (glu::Storage storage) in getProgramDefaultBlockInterfaceFromStorage() 53 case glu::STORAGE_IN: in getProgramDefaultBlockInterfaceFromStorage() 54 case glu::STORAGE_PATCH_IN: in getProgramDefaultBlockInterfaceFromStorage() 57 case glu::STORAGE_OUT: in getProgramDefaultBlockInterfaceFromStorage() 58 case glu::STORAGE_PATCH_OUT: in getProgramDefaultBlockInterfaceFromStorage() 61 case glu::STORAGE_UNIFORM: in getProgramDefaultBlockInterfaceFromStorage() 70 static bool isBufferBackedInterfaceBlockStorage (glu::Storage storage) in isBufferBackedInterfaceBlockStorage() 72 return storage == glu::STORAGE_BUFFER || storage == glu::STORAGE_UNIFORM; in isBufferBackedInterfaceBlockStorage() 75 const char* getRequiredExtensionForStage (glu [all...] |
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsSamplerObjectTest.cpp | 72 TextureSamplerTest::TextureSamplerTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const TestSpec& spec) in TextureSamplerTest() 212 if (glu::isGLSLVersionSupported(m_renderCtx.getType(), glu::GLSL_VERSION_300_ES)) in init() 224 else if (glu::isGLSLVersionSupported(m_renderCtx.getType(), glu::GLSL_VERSION_330)) in init() 240 m_program = new glu::ShaderProgram(m_renderCtx, in init() 241 glu::makeVtxFragSources(tcu::StringTemplate(vertexShaderTemplate).specialize(params), in init() 325 glu::VertexArrayBinding vertexArrays[] = in render() 327 glu::VertexArrayBinding(glu in render() [all...] |
H A D | glsRandomUniformBlockCase.cpp | 40 glu::RenderContext& renderCtx, in RandomUniformBlockCase() 41 glu::GLSLVersion glslVersion, in RandomUniformBlockCase() 198 vector<glu::DataType> typeCandidates; in generateType() 200 typeCandidates.push_back(glu::TYPE_FLOAT); in generateType() 201 typeCandidates.push_back(glu::TYPE_INT); in generateType() 202 typeCandidates.push_back(glu::TYPE_UINT); in generateType() 203 typeCandidates.push_back(glu::TYPE_BOOL); in generateType() 207 typeCandidates.push_back(glu::TYPE_FLOAT_VEC2); in generateType() 208 typeCandidates.push_back(glu::TYPE_FLOAT_VEC3); in generateType() 209 typeCandidates.push_back(glu in generateType() [all...] |
H A D | glsTextureTestUtil.hpp | 129 ProgramLibrary (const glu::RenderContext& context, tcu::TestLog& log, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision); 132 glu::ShaderProgram* getProgram (Program program); 134 glu::Precision getTexCoordPrecision (); 140 const glu::RenderContext& m_context; 142 glu::GLSLVersion m_glslVersion; 143 glu::Precision m_texCoordPrecision; 144 std::map<Program, glu::ShaderProgram*> m_programs; 150 TextureRenderer (const glu [all...] |
H A D | glsStateQueryUtil.hpp | 33 namespace glu namespace 36 } // glu 50 (RES).fail(std::string("Got Error ") + glu::getErrorStr(err).toString() + ": " + (MSG)); \ 382 void queryState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum pname, QueriedState& state); 383 void queryIndexedState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state); 384 void queryAttributeState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state); 385 void queryFramebufferState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state); 386 void queryProgramState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint program, glw::GLenum pname, QueriedState& state); 387 void queryPipelineState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint pipeline, glw::GLenum pname, QueriedState& state); 388 void queryTextureParamState (tcu::ResultCollector& result, glu [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
H A D | vktShaderRenderDerivateTests.cpp | 167 static inline tcu::BVec4 getDerivateMask (glu::DataType type) in getDerivateMask() 171 case glu::TYPE_FLOAT: return tcu::BVec4(true, false, false, false); in getDerivateMask() 172 case glu::TYPE_FLOAT_VEC2: return tcu::BVec4(true, true, false, false); in getDerivateMask() 173 case glu::TYPE_FLOAT_VEC3: return tcu::BVec4(true, true, true, false); in getDerivateMask() 174 case glu::TYPE_FLOAT_VEC4: return tcu::BVec4(true, true, true, true); in getDerivateMask() 210 static int getNumMantissaBits (const glu::Precision precision) in getNumMantissaBits() 214 case glu::PRECISION_HIGHP: return 23; in getNumMantissaBits() 215 case glu::PRECISION_MEDIUMP: return 10; in getNumMantissaBits() 216 case glu::PRECISION_LOWP: return 6; in getNumMantissaBits() 223 static int getMinExponent (const glu [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/ |
H A D | vktShaderRenderDerivateTests.cpp | 156 static inline tcu::BVec4 getDerivateMask (glu::DataType type) in getDerivateMask() 160 case glu::TYPE_FLOAT: return tcu::BVec4(true, false, false, false); in getDerivateMask() 161 case glu::TYPE_FLOAT_VEC2: return tcu::BVec4(true, true, false, false); in getDerivateMask() 162 case glu::TYPE_FLOAT_VEC3: return tcu::BVec4(true, true, true, false); in getDerivateMask() 163 case glu::TYPE_FLOAT_VEC4: return tcu::BVec4(true, true, true, true); in getDerivateMask() 192 static int getNumMantissaBits (const glu::Precision precision) in getNumMantissaBits() 196 case glu::PRECISION_HIGHP: return 23; in getNumMantissaBits() 197 case glu::PRECISION_MEDIUMP: return 10; in getNumMantissaBits() 198 case glu::PRECISION_LOWP: return 6; in getNumMantissaBits() 205 static int getMinExponent (const glu [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | 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) in InstancedRenderingCase() 160 bool isFloatCase = glu::isDataTypeFloatOrVec(m_rgbAttrType); in pushVarCompAttrib() 161 bool isIntCase = glu::isDataTypeIntOrIVec(m_rgbAttrType); in pushVarCompAttrib() 162 bool isUintCase = glu::isDataTypeUintOrUVec(m_rgbAttrType); in pushVarCompAttrib() 163 bool isMatCase = glu::isDataTypeMatrix(m_rgbAttrType); in pushVarCompAttrib() 177 bool isFloatCase = glu::isDataTypeFloatOrVec(m_rgbAttrType); in init() 178 bool isIntCase = glu in init() [all...] |
H A D | es3fUniformBlockTests.cpp | 53 group->addChild(new RandomUniformBlockCase(context.getTestContext(), context.getRenderContext(), glu::GLSL_VERSION_300_ES, in createRandomCaseGroup() 61 : UniformBlockCase(context.getTestContext(), context.getRenderContext(), name, description, glu::GLSL_VERSION_300_ES, BUFFERMODE_PER_BLOCK) in BlockBasicTypeCase() 88 : UniformBlockCase (context.getTestContext(), context.getRenderContext(), name, description, glu::GLSL_VERSION_300_ES, bufferMode) in BlockSingleStructCase() 97 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), UNUSED_BOTH); // First member is unused. in init() 98 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM), 4)); in init() 99 typeS.addMember("c", VarType(glu::TYPE_FLOAT_VEC4, PRECISION_HIGH)); in init() 121 : UniformBlockCase (context.getTestContext(), context.getRenderContext(), name, description, glu::GLSL_VERSION_300_ES, bufferMode) in BlockSingleStructArrayCase() 130 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), UNUSED_BOTH); in init() 131 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM), 4)); in init() 132 typeS.addMember("c", VarType(glu in init() [all...] |
H A D | es3fShaderPrecisionTests.cpp | 64 static glu::ShaderProgram* createFloatPrecisionEvalProgram (const glu::RenderContext& context, glu::Precision precision, const char* evalOp, bool isVertexCase) in createFloatPrecisionEvalProgram() 66 glu::DataType type = glu::TYPE_FLOAT; in createFloatPrecisionEvalProgram() 67 glu::DataType outType = glu::TYPE_UINT; in createFloatPrecisionEvalProgram() 68 const char* typeName = glu::getDataTypeName(type); in createFloatPrecisionEvalProgram() 69 const char* outTypeName = glu::getDataTypeName(outType); in createFloatPrecisionEvalProgram() 70 const char* precName = glu in createFloatPrecisionEvalProgram() [all...] |
H A D | es3fShaderFragDataTests.cpp | 64 static bool isExtensionSupported (const glu::RenderContext& renderCtx, const std::string& extension) in isExtensionSupported() 130 static glu::ProgramSources genSources (const IndexExprType indexExprType) in genSources() 135 glu::ProgramSources sources; in genSources() 139 sources << glu::VertexSource( in genSources() 152 sources << glu::FragmentSource(string( in genSources() 166 const glu::RenderContext& renderCtx = m_context.getRenderContext(); in iterate() 168 const glu::ShaderProgram program (renderCtx, genSources(m_indexExprType)); in iterate() 189 const glu::VertexArrayBinding vertexArrays[] = in iterate() 191 glu::va::Float("a_position", 2, 4, 0, &positions[0]), in iterate() 192 glu in iterate() [all...] |
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | 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) in AttributeCase() 213 AttributeCase* AttributeCase::create (Context& ctx, glu [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcKHRDebugTests.hpp | 36 namespace glu namespace 57 TestBase(tcu::TestContext& testContext, glu::ApiType apiType, bool is_debug); 68 glu::RenderContext* m_rc; 77 glu::ApiType m_apiType; 146 APIErrorsTest(tcu::TestContext& testCtx, glu::ApiType apiType, bool is_debug, const glw::GLchar* name); 187 LabelsTest(tcu::TestContext& testCtx, glu::ApiType apiType, bool is_debug, const glw::GLchar* name); 198 static glw::GLuint createBuffer(const glw::Functions* gl, const glu::RenderContext* rc); 199 static glw::GLuint createFramebuffer(const glw::Functions* gl, const glu::RenderContext* rc); 200 static glw::GLuint createProgram(const glw::Functions* gl, const glu::RenderContext* rc); 201 static glw::GLuint createProgramPipeline(const glw::Functions* gl, const glu [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl3cTestPackages.hpp | 55 glu::ContextType renderContextType = glu::ContextType(3, 0, glu::PROFILE_CORE)); 71 glu::ContextType renderContextType = glu::ContextType(3, 1, glu::PROFILE_CORE, glu::CONTEXT_FORWARD_COMPATIBLE)); 83 glu::ContextType renderContextType = glu::ContextType(3, 2, glu [all...] |
H A D | gl3cCommonBugsTests.cpp | 216 if (!glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(3, 1))) in iterate() 383 glu::ApiType* out_required_min_context_type_ptr, in getIterationData() 391 *out_required_min_context_type_ptr = glu::ApiType::core(3, 1); in getIterationData() 410 *out_required_min_context_type_ptr = glu::ApiType::core(4, 0); in getIterationData() 433 *out_required_min_context_type_ptr = glu::ApiType::core(3, 1); in getIterationData() 458 *out_required_min_context_type_ptr = glu::ApiType::core(3, 1); in getIterationData() 483 *out_required_min_context_type_ptr = glu::ApiType::core(3, 2); in getIterationData() 506 *out_required_min_context_type_ptr = glu::ApiType::core(4, 0); in getIterationData() 532 *out_required_min_context_type_ptr = glu in getIterationData() [all...] |
/third_party/vk-gl-cts/framework/platform/win32/ |
H A D | tcuWGLContextFactory.cpp | 65 class WGLContext : public glu::RenderContext 68 WGLContext (HINSTANCE instance, const wgl::Core& wglCore, const WGLContext* sharedContext, const glu::RenderConfig& config); 71 glu::ContextType getType (void) const { return m_contextType; } in getType() 84 glu::ContextType m_contextType; 93 WGLContext::WGLContext (HINSTANCE instance, const wgl::Core& wglCore, const WGLContext* sharedContext, const glu::RenderConfig& config) in WGLContext() 96 config.width != glu::RenderConfig::DONT_CARE ? config.width : DEFAULT_WINDOW_WIDTH, in WGLContext() 97 config.height != glu::RenderConfig::DONT_CARE ? config.height : DEFAULT_WINDOW_HEIGHT) in WGLContext() 100 if (config.surfaceType != glu::RenderConfig::SURFACETYPE_WINDOW && in WGLContext() 101 config.surfaceType != glu::RenderConfig::SURFACETYPE_DONT_CARE) in WGLContext() 107 if (config.id != glu in WGLContext() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
H A D | vktShaderPackingFunctionTests.cpp | 75 ShaderPackingFunctionCase (tcu::TestContext& testCtx, const char* name, glu::ShaderType shaderType); 85 const glu::ShaderType m_shaderType; 93 ShaderPackingFunctionCase::ShaderPackingFunctionCase (tcu::TestContext& testCtx, const char* name, glu::ShaderType shaderType) in ShaderPackingFunctionCase() 113 ShaderPackingFunctionTestInstance (Context& context, glu::ShaderType shaderType, const ShaderSpec& spec, const char* name) in ShaderPackingFunctionTestInstance() 125 const glu::ShaderType m_shaderType; 136 PackSnorm2x16CaseInstance (Context& context, glu::ShaderType shaderType, const ShaderSpec& spec, glu::Precision precision, const char* name) in PackSnorm2x16CaseInstance() 147 const int maxDiff = m_precision == glu::PRECISION_HIGHP ? 1 : // Rounding only. in iterate() 148 m_precision == glu::PRECISION_MEDIUMP ? 33 : // (2^-10) * (2^15) + 1 in iterate() 149 m_precision == glu in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktShaderPackingFunctionTests.cpp | 75 ShaderPackingFunctionCase (tcu::TestContext& testCtx, const char* name, const char* description, glu::ShaderType shaderType); 85 const glu::ShaderType m_shaderType; 93 ShaderPackingFunctionCase::ShaderPackingFunctionCase (tcu::TestContext& testCtx, const char* name, const char* description, glu::ShaderType shaderType) in ShaderPackingFunctionCase() 113 ShaderPackingFunctionTestInstance (Context& context, glu::ShaderType shaderType, const ShaderSpec& spec, const char* name) in ShaderPackingFunctionTestInstance() 125 const glu::ShaderType m_shaderType; 136 PackSnorm2x16CaseInstance (Context& context, glu::ShaderType shaderType, const ShaderSpec& spec, glu::Precision precision, const char* name) in PackSnorm2x16CaseInstance() 147 const int maxDiff = m_precision == glu::PRECISION_HIGHP ? 1 : // Rounding only. in iterate() 148 m_precision == glu::PRECISION_MEDIUMP ? 33 : // (2^-10) * (2^15) + 1 in iterate() 149 m_precision == glu in iterate() [all...] |