Home
last modified time | relevance | path

Searched refs:glu (Results 1 - 25 of 1516) sorted by relevance

12345678910>>...61

/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fShaderConstExprTests.cpp56 const std::vector<tcu::TestNode*> children = createTests(m_testCtx, m_context.getRenderContext(), m_context.getContextInfo(), cases, numCases, glu::GLSL_VERSION_300_ES); in addChildGroup()
75 {"radians", "radians(${T} (90.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatRadians(90.0f) }, in init()
76 {"degrees", "degrees(${T} (2.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatDegrees(2.0f) }, in init()
77 {"sin", "sin(${T} (3.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatSin(3.0f) }, in init()
78 {"cos", "cos(${T} (3.2))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatCos(3.2f) }, in init()
79 {"tan", "tan(${T} (1.5))", glu in init()
[all...]
H A Des3fShaderCommonFunctionTests.cpp110 inline bool supportsSignedZero (glu::Precision precision) in supportsSignedZero()
114 return precision == glu::PRECISION_HIGHP; in supportsSignedZero()
136 static int getMinMantissaBits (glu::Precision precision) in getMinMantissaBits()
144 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
154 CommonFunctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
168 glu::ShaderType m_shaderType;
178 CommonFunctionCase::CommonFunctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in CommonFunctionCase()
184 m_spec.version = glu::GLSL_VERSION_300_ES; in CommonFunctionCase()
245 // \todo [2013-08-08 pyry] Make generic utility and move to glu?
271 const glu
[all...]
H A Des3fUniformApiTests.cpp63 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
[all...]
H A Des3fTransformFeedbackTests.cpp98 Varying (const char* name_, const glu::VarType& type_, Interpolation interp_) in Varying()
106 glu::VarType type; //!< Variable type.
120 Attribute (const std::string& name_, const glu::VarType& type_, int offset_) in Attribute()
128 glu::VarType type;
149 glu::VarType type;
184 glu::StructType* createStruct (const char* name);
185 void addVarying (const char* name, const glu::VarType& type, Interpolation interp);
188 const vector<glu::StructType*>& getStructs (void) const { return m_structs; } in getStructs()
197 vector<glu::StructType*> m_structs;
210 for (vector<glu in ~ProgramSpec()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/util/
H A DvktTypeComparisonUtil.cpp34 const char* getCompareFuncForType (glu::DataType type) in getCompareFuncForType()
38 case glu::TYPE_FLOAT: in getCompareFuncForType()
40 case glu::TYPE_FLOAT_VEC2: in getCompareFuncForType()
42 case glu::TYPE_FLOAT_VEC3: in getCompareFuncForType()
44 case glu::TYPE_FLOAT_VEC4: in getCompareFuncForType()
46 case glu::TYPE_FLOAT_MAT2: in getCompareFuncForType()
48 case glu::TYPE_FLOAT_MAT2X3: in getCompareFuncForType()
50 case glu::TYPE_FLOAT_MAT2X4: in getCompareFuncForType()
52 case glu::TYPE_FLOAT_MAT3X2: in getCompareFuncForType()
54 case glu in getCompareFuncForType()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/util/
H A DvktTypeComparisonUtil.cpp34 const char* getCompareFuncForType (glu::DataType type) in getCompareFuncForType()
38 case glu::TYPE_FLOAT: in getCompareFuncForType()
40 case glu::TYPE_FLOAT_VEC2: in getCompareFuncForType()
42 case glu::TYPE_FLOAT_VEC3: in getCompareFuncForType()
44 case glu::TYPE_FLOAT_VEC4: in getCompareFuncForType()
46 case glu::TYPE_FLOAT_MAT2: in getCompareFuncForType()
48 case glu::TYPE_FLOAT_MAT2X3: in getCompareFuncForType()
50 case glu::TYPE_FLOAT_MAT2X4: in getCompareFuncForType()
52 case glu::TYPE_FLOAT_MAT3X2: in getCompareFuncForType()
54 case glu in getCompareFuncForType()
[all...]
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fShaderConstExprTests.cpp55 const std::vector<tcu::TestNode*> children = createTests(m_testCtx, m_context.getRenderContext(), m_context.getContextInfo(), cases, numCases, glu::GLSL_VERSION_100_ES); in addChildGroup()
74 {"radians", "radians(${T} (90.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatRadians(90.0f) }, in init()
75 {"degrees", "degrees(${T} (2.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatDegrees(2.0f) }, in init()
76 {"sin", "sin(${T} (3.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatSin(3.0f) }, in init()
77 {"cos", "cos(${T} (3.2))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatCos(3.2f) }, in init()
78 {"tan", "tan(${T} (1.5))", glu in init()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcShaderConstExprTests.cpp47 glu::DataType inType;
51 glu::DataType outType;
65 glu::DataType outType;
76 ExecutorTestCase(deqp::Context& context, const char* name, glu::ShaderType shaderType, const ShaderSpec& shaderSpec,
84 glu::ShaderType m_shaderType;
90 ExecutorTestCase<OutputType>::ExecutorTestCase(deqp::Context& context, const char* name, glu::ShaderType shaderType, in ExecutorTestCase()
183 glu::ContextType contextType = context.getRenderContext().getType(); in createTestCasesForAllShaderTypes()
186 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in createTestCasesForAllShaderTypes()
188 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(params.outType, glu in createTestCasesForAllShaderTypes()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/runner/
H A DglcKhronosMustpassGl.hpp25 { glu::ApiType::core(4, 6), "master", DE_NULL, "unspecified", 1, DE_NULL, 64, 64 },
26 { glu::ApiType::core(4, 6), "master", DE_NULL, "unspecified", 2, DE_NULL, 113, 47 },
27 { glu::ApiType::core(4, 6), "master", DE_NULL, "unspecified", 3, "rgba8888d24s8", 64, -1 },
28 { glu::ApiType::core(4, 6), "master", DE_NULL, "unspecified", 3, "rgba8888d24s8", -1, 64 },
29 { glu::ApiType::core(4, 5), "master", DE_NULL, "unspecified", 1, DE_NULL, 64, 64 },
30 { glu::ApiType::core(4, 5), "master", DE_NULL, "unspecified", 2, DE_NULL, 113, 47 },
31 { glu::ApiType::core(4, 5), "master", DE_NULL, "unspecified", 3, "rgba8888d24s8", 64, -1 },
32 { glu::ApiType::core(4, 5), "master", DE_NULL, "unspecified", 3, "rgba8888d24s8", -1, 64 },
33 { glu::ApiType::core(4, 4), "master", DE_NULL, "unspecified", 1, DE_NULL, 64, 64 },
34 { glu
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fNegativeShaderFunctionTests.cpp91 glu::DataType samplerDataType;
92 glu::DataType pDataType;
93 glu::DataType offsetsDataType;
94 glu::DataType fourthArgument;
99 static const glu::DataType s_floatTypes[] =
101 glu::TYPE_FLOAT,
102 glu::TYPE_FLOAT_VEC2,
103 glu::TYPE_FLOAT_VEC3,
104 glu::TYPE_FLOAT_VEC4
107 static const glu
[all...]
H A Des31fProgramInterfaceDefinition.cpp45 static const glu::ShaderType s_shaderStageOrder[] =
47 glu::SHADERTYPE_COMPUTE,
49 glu::SHADERTYPE_VERTEX,
50 glu::SHADERTYPE_TESSELLATION_CONTROL,
51 glu::SHADERTYPE_TESSELLATION_EVALUATION,
52 glu::SHADERTYPE_GEOMETRY,
53 glu::SHADERTYPE_FRAGMENT,
55 glu::SHADERTYPE_RAYGEN,
56 glu::SHADERTYPE_ANY_HIT,
57 glu
[all...]
H A Des31fNegativeComputeTests.cpp86 void verifyLinkError (NegativeTestContext& ctx, const glu::ShaderProgram& program) in verifyLinkError()
103 void verifyCompileError (NegativeTestContext& ctx, const glu::ShaderProgram& program, glu::ShaderType shaderType) in verifyCompileError()
122 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in generateComputeShader()
124 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) in generateComputeShader()
125 : getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in generateComputeShader()
140 string genBuiltInSource (glu::ShaderType shaderType) in genBuiltInSource()
147 case glu::SHADERTYPE_VERTEX: in genBuiltInSource()
148 case glu in genBuiltInSource()
[all...]
H A Des31fProgramInterfaceDefinitionUtil.cpp54 VariableSearchFilter VariableSearchFilter::createShaderTypeFilter (glu::ShaderType type) in createShaderTypeFilter()
56 DE_ASSERT(type < glu::SHADERTYPE_LAST); in createShaderTypeFilter()
63 VariableSearchFilter VariableSearchFilter::createStorageFilter (glu::Storage storage)
65 DE_ASSERT(storage < glu::STORAGE_LAST);
72 VariableSearchFilter VariableSearchFilter::createShaderTypeStorageFilter (glu::ShaderType type, glu::Storage storage)
95 DE_ASSERT(shader->getType() < glu::SHADERTYPE_LAST);
99 bool VariableSearchFilter::matchesFilter (const glu::VariableDeclaration& variable) const
101 DE_ASSERT(variable.storage < glu::STORAGE_LAST);
105 bool VariableSearchFilter::matchesFilter (const glu
[all...]
H A Des31fProgramUniformTests.cpp64 using glu::ShaderProgram;
65 using glu::StructType;
69 typedef bool (* dataTypePredicate)(glu::DataType);
78 static const glu::DataType s_testDataTypes[] =
80 glu::TYPE_FLOAT,
81 glu::TYPE_FLOAT_VEC2,
82 glu::TYPE_FLOAT_VEC3,
83 glu::TYPE_FLOAT_VEC4,
84 glu::TYPE_FLOAT_MAT2,
85 glu
[all...]
H A Des31fShaderCommonFunctionTests.cpp114 inline bool supportsSignedZero (glu::Precision precision) in supportsSignedZero()
118 return precision == glu::PRECISION_HIGHP; in supportsSignedZero()
140 static int getMinMantissaBits (glu::Precision precision) in getMinMantissaBits()
148 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
153 static int getMaxNormalizedValueExponent (glu::Precision precision) in getMaxNormalizedValueExponent()
161 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(exponent) == glu::PRECISION_LAST); in getMaxNormalizedValueExponent()
166 static int getMinNormalizedValueExponent (glu::Precision precision) in getMinNormalizedValueExponent()
174 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(exponent) == glu::PRECISION_LAST); in getMinNormalizedValueExponent()
179 static float makeFloatRepresentable (float f, glu::Precision precision) in makeFloatRepresentable()
181 if (precision == glu in makeFloatRepresentable()
[all...]
H A Des31fNegativeShaderFramebufferFetchTests.cpp77 void verifyProgramError (NegativeTestContext& ctx, const glu::ShaderProgram& program, ProgramError error, glu::ShaderType shaderType) in verifyProgramError()
121 if (!glu::isContextTypeES(ctx.getRenderContext().getType())) in last_frag_data_not_defined()
126 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in last_frag_data_not_defined()
128 args["GLSL_VERSION_STRING"] = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in last_frag_data_not_defined()
139 glu::ShaderProgram program(ctx.getRenderContext(), glu::ProgramSources() in last_frag_data_not_defined()
140 << glu in last_frag_data_not_defined()
[all...]
H A Des31fSSBOLayoutTests.cpp42 using glu::VarType;
43 using glu::StructType;
78 glu::VarType generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unusedArrayOk);
96 : SSBOLayoutCase (context.getTestContext(), context.getRenderContext(), name, description, glu::GLSL_VERSION_310_ES, bufferMode) in RandomSSBOLayoutCase()
163 const glu::VarType& lastType = lastVar.getType(); in generateBlock()
164 const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSIZED_ARRAY); in generateBlock()
202 const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNSIZED_ARRAYS)); in generateBufferVar()
213 glu::VarType RandomSSBOLayoutCase::generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unsizedArrayOk) in generateType()
225 const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth+1, childArrayOk, false); in generateType()
226 return glu in generateType()
[all...]
H A Des31fProgramInterfaceQueryTests.cpp56 static int getTypeSize (glu::DataType type) in getTypeSize()
58 if (type == glu::TYPE_FLOAT) in getTypeSize()
60 else if (type == glu::TYPE_INT || type == glu::TYPE_UINT) in getTypeSize()
62 else if (type == glu::TYPE_BOOL) in getTypeSize()
69 static int getVarTypeSize (const glu::VarType& type) in getVarTypeSize()
72 return glu::getDataTypeScalarSize(type.getBasicType()) * getTypeSize(glu::getDataTypeScalarType(type.getBasicType())); in getVarTypeSize()
82 if (type.getArraySize() == glu::VarType::UNSIZED_ARRAY) in getVarTypeSize()
164 static glu
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A DglsShaderConstExprTests.cpp40 static void addOutputVar (glu::sl::ValueBlock* dst, glu::DataType type, float output) in addOutputVar()
42 dst->outputs.push_back(glu::sl::Value()); in addOutputVar()
45 glu::sl::Value& value = dst->outputs.back(); in addOutputVar()
48 value.type = glu::VarType(type, glu::PRECISION_LAST); in addOutputVar()
53 case glu::TYPE_INT: in addOutputVar()
57 case glu::TYPE_UINT: in addOutputVar()
61 case glu::TYPE_BOOL: in addOutputVar()
65 case glu in addOutputVar()
[all...]
H A DglsShaderExecUtil.cpp53 static bool isExtensionSupported (const glu::RenderContext& renderCtx, const std::string& extension) in isExtensionSupported()
71 static void checkExtension (const glu::RenderContext& renderCtx, const std::string& extension) in checkExtension()
77 static void checkLimit (const glu::RenderContext& renderCtx, deUint32 pname, int required) in checkLimit()
87 throw tcu::TestError("Failed to query " + de::toString(glu::getGettableStateStr(pname)) + " - got " + de::toString(glu::getErrorStr(error))); in checkLimit()
89 throw tcu::NotSupportedError("Test requires " + de::toString(glu::getGettableStateStr(pname)) + " >= " + de::toString(required) + ", got " + de::toString(implementationLimit)); in checkLimit()
96 const bool usesInout = glu::glslVersionUsesInOutQualifiers(shaderSpec.version); in generateVertexShader()
103 src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; in generateVertexShader()
111 src << in << " " << glu::declare(input->varType, inputPrefix + input->name) << ";\n"; in generateVertexShader()
117 if (glu in generateVertexShader()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
H A DvktShaderCommonFunctionTests.cpp121 static int getNumMantissaBits (glu::DataType type) in getNumMantissaBits()
123 DE_ASSERT(glu::isDataTypeFloatOrVec(type) || glu::isDataTypeDoubleOrDVec(type)); in getNumMantissaBits()
124 return (glu::isDataTypeFloatOrVec(type) ? 23 : 52); in getNumMantissaBits()
127 static int getMinMantissaBits (glu::DataType type, glu::Precision precision) in getMinMantissaBits()
129 if (glu::isDataTypeDoubleOrDVec(type)) in getMinMantissaBits()
141 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
146 static int getExponentBits (glu::DataType type) in getExponentBits()
148 DE_ASSERT(glu in getExponentBits()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktShaderCommonFunctionTests.cpp121 static int getNumMantissaBits (glu::DataType type) in getNumMantissaBits()
123 DE_ASSERT(glu::isDataTypeFloatOrVec(type) || glu::isDataTypeDoubleOrDVec(type)); in getNumMantissaBits()
124 return (glu::isDataTypeFloatOrVec(type) ? 23 : 52); in getNumMantissaBits()
127 static int getMinMantissaBits (glu::DataType type, glu::Precision precision) in getMinMantissaBits()
129 if (glu::isDataTypeDoubleOrDVec(type)) in getMinMantissaBits()
141 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
146 static int getExponentBits (glu::DataType type) in getExponentBits()
148 DE_ASSERT(glu in getExponentBits()
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
H A Dgl4cShaderBallotTests.cpp40 ShaderBallotBaseTestCase::ShaderPipeline::ShaderPipeline(glu::ShaderType testedShader, in ShaderPipeline()
52 m_shaders[glu::SHADERTYPE_VERTEX].push_back("#version 450 core\n"); in ShaderPipeline()
53 m_shaders[glu::SHADERTYPE_VERTEX].push_back(m_testedShader == glu::SHADERTYPE_VERTEX ? testedHeadPart : ""); in ShaderPipeline()
54 m_shaders[glu::SHADERTYPE_VERTEX].push_back("in highp vec2 inPosition;\n" in ShaderPipeline()
63 m_shaders[glu::SHADERTYPE_VERTEX].push_back(m_testedShader == glu::SHADERTYPE_VERTEX ? testedContentPart : in ShaderPipeline()
65 m_shaders[glu::SHADERTYPE_VERTEX].push_back(" vsColor = outColor;\n" in ShaderPipeline()
70 m_shaders[glu::SHADERTYPE_FRAGMENT].push_back("#version 450 core\n"); in ShaderPipeline()
71 m_shaders[glu in ShaderPipeline()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
H A DvktSSBOLayoutTests.cpp61 using glu::VarType;
62 using glu::StructType;
96 glu::VarType generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unusedArrayOk);
198 const glu::VarType& lastType = lastVar.getType(); in generateBlock()
199 const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSIZED_ARRAY); in generateBlock()
237 const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNSIZED_ARRAYS)); in generateBufferVar()
248 glu::VarType RandomSSBOLayoutCase::generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unsizedArrayOk) in generateType()
260 const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth + 1, childArrayOk, false); in generateType()
261 return glu::VarType(elementType, glu in generateType()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ssbo/
H A DvktSSBOLayoutTests.cpp61 using glu::VarType;
62 using glu::StructType;
96 glu::VarType generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unusedArrayOk);
198 const glu::VarType& lastType = lastVar.getType(); in generateBlock()
199 const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSIZED_ARRAY); in generateBlock()
237 const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNSIZED_ARRAYS)); in generateBufferVar()
248 glu::VarType RandomSSBOLayoutCase::generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unsizedArrayOk) in generateType()
260 const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth + 1, childArrayOk, false); in generateType()
261 return glu::VarType(elementType, glu in generateType()
[all...]

Completed in 25 milliseconds

12345678910>>...61