Home
last modified time | relevance | path

Searched full:glu (Results 1 – 25 of 1762) sorted by relevance

12345678910>>...71

/aosp_15_r20/external/deqp/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[] = {glu::TYPE_FLOAT, glu::TYPE_FLOAT_VEC2, glu::TYPE_FLOAT…
100 glu::TYPE_FLOAT_VEC4};
102 static const glu::DataType s_intTypes[] = {glu::TYPE_INT, glu::TYPE_INT_VEC2, glu::TYPE_INT_VEC3, g…
104 static const glu::DataType s_uintTypes[] = {glu::TYPE_UINT, glu::TYPE_UINT_VEC2, glu::TYPE_UINT_VEC…
105 glu::TYPE_UINT_VEC4};
107 static const glu::DataType s_nonScalarIntTypes[] = {glu::TYPE_FLOAT, glu::TYPE_FLOAT_VEC2, glu
[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()) * in getVarTypeSize()
73 getTypeSize(glu::getDataTypeScalarType(type.getBasicType())); in getVarTypeSize()
83 if (type.getArraySize() == glu::VarType::UNSIZED_ARRAY) in getVarTypeSize()
162 static glu::ShaderType getShaderMaskFirstStage(uint32_t mask) in getShaderMaskFirstStage()
164 if (mask & (1u << glu::SHADERTYPE_COMPUTE)) in getShaderMaskFirstStage()
[all …]
H A Des31fProgramUniformTests.cpp62 using glu::ShaderProgram;
63 using glu::StructType;
69 typedef bool (*dataTypePredicate)(glu::DataType);
78 static const glu::DataType s_testDataTypes[] = {
79 glu::TYPE_FLOAT, glu::TYPE_FLOAT_VEC2, glu::TYPE_FLOAT_VEC3, glu::TYPE_FLOAT_VEC4,
80 glu::TYPE_FLOAT_MAT2, glu::TYPE_FLOAT_MAT2X3, glu::TYPE_FLOAT_MAT2X4, glu::TYPE_FLOAT_MAT3X2,
81 glu::TYPE_FLOAT_MAT3, glu::TYPE_FLOAT_MAT3X4, glu::TYPE_FLOAT_MAT4X2, glu::TYPE_FLOAT_MAT4X3,
82 glu::TYPE_FLOAT_MAT4,
84 glu::TYPE_INT, glu::TYPE_INT_VEC2, glu::TYPE_INT_VEC3, glu::TYPE_INT_VEC4,
86 glu::TYPE_UINT, glu::TYPE_UINT_VEC2, glu::TYPE_UINT_VEC3, glu::TYPE_UINT_VEC4,
[all …]
H A Des31fSSBOLayoutTests.cpp42 using glu::StructType;
43 using glu::VarType;
78glu::VarType generateType(de::Random &rnd, int structDepth, int arrayDepth, bool arrayOk, bool unu…
97 …: SSBOLayoutCase(context.getTestContext(), context.getRenderContext(), name, description, glu::GLS… in RandomSSBOLayoutCase()
166 const glu::VarType &lastType = lastVar.getType(); in generateBlock()
167 …const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSI… in generateBlock()
205 …const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNS… in generateBufferVar()
216 glu::VarType RandomSSBOLayoutCase::generateType(de::Random &rnd, int structDepth, int arrayDepth, b… in generateType()
228 …const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth + 1, childArrayOk, fals… in generateType()
229 return glu::VarType(elementType, glu::VarType::UNSIZED_ARRAY); in generateType()
[all …]
H A Des31fProgramInterfaceDefinitionUtil.cpp52 VariableSearchFilter VariableSearchFilter::createShaderTypeFilter(glu::ShaderType type) in createShaderTypeFilter()
54 DE_ASSERT(type < glu::SHADERTYPE_LAST); in createShaderTypeFilter()
61 VariableSearchFilter VariableSearchFilter::createStorageFilter(glu::Storage storage) in createStorageFilter()
63 DE_ASSERT(storage < glu::STORAGE_LAST); in createStorageFilter()
70 VariableSearchFilter VariableSearchFilter::createShaderTypeStorageFilter(glu::ShaderType type, glu:… in createShaderTypeStorageFilter()
93 DE_ASSERT(shader->getType() < glu::SHADERTYPE_LAST); in matchesFilter()
97 bool VariableSearchFilter::matchesFilter(const glu::VariableDeclaration &variable) const in matchesFilter()
99 DE_ASSERT(variable.storage < glu::STORAGE_LAST); in matchesFilter()
103 bool VariableSearchFilter::matchesFilter(const glu::InterfaceBlock &block) const in matchesFilter()
105 DE_ASSERT(block.storage < glu::STORAGE_LAST); in matchesFilter()
[all …]
H A Des31fShaderCommonFunctionTests.cpp125 inline bool supportsSignedZero(glu::Precision precision) in supportsSignedZero()
129 return precision == glu::PRECISION_HIGHP; in supportsSignedZero()
152 static int getMinMantissaBits(glu::Precision precision) in getMinMantissaBits()
159 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
164 static int getMaxNormalizedValueExponent(glu::Precision precision) in getMaxNormalizedValueExponent()
171 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(exponent) == glu::PRECISION_LAST); in getMaxNormalizedValueExponent()
176 static int getMinNormalizedValueExponent(glu::Precision precision) in getMinNormalizedValueExponent()
183 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(exponent) == glu::PRECISION_LAST); in getMinNormalizedValueExponent()
188 static float makeFloatRepresentable(float f, glu::Precision precision) in makeFloatRepresentable()
190 if (precision == glu::PRECISION_HIGHP) in makeFloatRepresentable()
[all …]
H A Des31fShaderIntegerFunctionTests.cpp73 const glu::VarType &type;
76 VarValue(const glu::VarType &type_, const void *value_) : type(type_), value(value_) in VarValue()
85 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
86 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
87 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
90 str << glu::getDataTypeName(basicType) << "("; in operator <<()
99 case glu::TYPE_FLOAT: in operator <<()
102 case glu::TYPE_INT: in operator <<()
105 case glu::TYPE_UINT: in operator <<()
108 case glu::TYPE_BOOL: in operator <<()
[all …]
H A Des31fNegativeComputeTests.cpp87 void verifyLinkError(NegativeTestContext &ctx, const glu::ShaderProgram &program) in verifyLinkError()
104 void verifyCompileError(NegativeTestContext &ctx, const glu::ShaderProgram &program, glu::ShaderTyp… in verifyCompileError()
123 …const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiT… in generateComputeShader()
124 const char *const shaderVersion = isES32 ? getGLSLVersionDeclaration(glu::GLSL_VERSION_320_ES) : in generateComputeShader()
125 getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES); in generateComputeShader()
139 string genBuiltInSource(glu::ShaderType shaderType) in genBuiltInSource()
146 case glu::SHADERTYPE_VERTEX: in genBuiltInSource()
147 case glu::SHADERTYPE_FRAGMENT: in genBuiltInSource()
150 case glu::SHADERTYPE_COMPUTE: in genBuiltInSource()
154 case glu::SHADERTYPE_GEOMETRY: in genBuiltInSource()
[all …]
H A Des31fProgramInterfaceDefinition.cpp45 static const glu::ShaderType s_shaderStageOrder[] = {
46 glu::SHADERTYPE_COMPUTE,
48 glu::SHADERTYPE_VERTEX,
49 glu::SHADERTYPE_TESSELLATION_CONTROL,
50 glu::SHADERTYPE_TESSELLATION_EVALUATION,
51 glu::SHADERTYPE_GEOMETRY,
52 glu::SHADERTYPE_FRAGMENT,
54 glu::SHADERTYPE_RAYGEN,
55 glu::SHADERTYPE_ANY_HIT,
56 glu::SHADERTYPE_CLOSEST_HIT,
[all …]
/aosp_15_r20/external/deqp/modules/gles3/functional/
H A Des3fShaderConstExprTests.cpp62 …m_testCtx, m_context.getRenderContext(), m_context.getContextInfo(), cases, numCases, glu::GLSL_VE… in addChildGroup()
80 …{"radians", "radians(${T} (90.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatRadians(90.0f)}, in init()
81 … {"degrees", "degrees(${T} (2.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatDegrees(2.0f)}, in init()
82 {"sin", "sin(${T} (3.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatSin(3.0f)}, in init()
83 {"cos", "cos(${T} (3.2))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatCos(3.2f)}, in init()
84 {"tan", "tan(${T} (1.5))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatTan(1.5f)}, in init()
85 {"asin", "asin(${T} (0.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatAsin(0.0f)}, in init()
86 {"acos", "acos(${T} (1.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatAcos(1.0f)}, in init()
87 … {"atan_separate", "atan(${T} (-1.0), ${T} (-1.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, in init()
89 …{"atan_combined", "atan(${T} (2.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatAtanOver(2.0f… in init()
[all …]
H A Des3fUniformApiTests.cpp61 using glu::ShaderProgram;
62 using glu::StructType;
68 typedef bool (*dataTypePredicate)(glu::DataType);
74 static const glu::DataType s_testDataTypes[] = {
75 glu::TYPE_FLOAT, glu::TYPE_FLOAT_VEC2, glu::TYPE_FLOAT_VEC3, glu::TYPE_FLOAT_VEC4,
76 glu::TYPE_FLOAT_MAT2, glu::TYPE_FLOAT_MAT2X3, glu::TYPE_FLOAT_MAT2X4, glu::TYPE_FLOAT_MAT3X2,
77 glu::TYPE_FLOAT_MAT3, glu::TYPE_FLOAT_MAT3X4, glu::TYPE_FLOAT_MAT4X2, glu::TYPE_FLOAT_MAT4X3,
78 glu::TYPE_FLOAT_MAT4,
80 glu::TYPE_INT, glu::TYPE_INT_VEC2, glu::TYPE_INT_VEC3, glu::TYPE_INT_VEC4,
82 glu::TYPE_UINT, glu::TYPE_UINT_VEC2, glu::TYPE_UINT_VEC3, glu::TYPE_UINT_VEC4,
[all …]
H A Des3fShaderApiTests.cpp77 const char *getSimpleShaderSource(const glu::ShaderType shaderType) in getSimpleShaderSource()
94 case glu::SHADERTYPE_VERTEX: in getSimpleShaderSource()
96 case glu::SHADERTYPE_FRAGMENT: in getSimpleShaderSource()
105 void setShaderSources(glu::Shader &shader, const ShaderSources &sources) in setShaderSources()
146 void queryShaderInfo(glu::RenderContext &renderCtx, uint32_t shader, glu::ShaderInfo &info) in queryShaderInfo()
186 void drawWithProgram(glu::RenderContext &renderCtx, uint32_t program) in drawWithProgram()
197glu::VertexArrayBinding vertexArrays[] = {glu::va::Float("a_position", 4, 4, 0, &position[0])}; in drawWithProgram()
198 glu::draw(renderCtx, program, DE_LENGTH_OF_ARRAY(vertexArrays), &vertexArrays[0], in drawWithProgram()
199 glu::pr::Triangles(DE_LENGTH_OF_ARRAY(quadIndices), &quadIndices[0])); in drawWithProgram()
214 virtual std::string next(const glu::ShaderType shaderType) = 0;
[all …]
H A Des3fShaderCommonFunctionTests.cpp121 inline bool supportsSignedZero(glu::Precision precision) in supportsSignedZero()
125 return precision == glu::PRECISION_HIGHP; in supportsSignedZero()
148 static int getMinMantissaBits(glu::Precision precision) in getMinMantissaBits()
155 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
165 …CommonFunctionCase(Context &context, const char *name, const char *description, glu::ShaderType sh…
179 glu::ShaderType m_shaderType;
190 glu::ShaderType shaderType) in CommonFunctionCase()
196 m_spec.version = glu::GLSL_VERSION_300_ES; in CommonFunctionCase()
257 // \todo [2013-08-08 pyry] Make generic utility and move to glu?
287 const glu::VarType &type;
[all …]
H A Des3fTransformFeedbackTests.cpp102 Varying(const char *name_, const glu::VarType &type_, Interpolation interp_) in Varying()
110 glu::VarType type; //!< Variable type.
129 Attribute(const std::string &name_, const glu::VarType &type_, int offset_) in Attribute()
137 glu::VarType type;
161 glu::VarType type;
192 glu::StructType *createStruct(const char *name);
193 void addVarying(const char *name, const glu::VarType &type, Interpolation interp);
196 const vector<glu::StructType *> &getStructs(void) const in getStructs()
214 vector<glu::StructType *> m_structs;
227 for (vector<glu::StructType *>::iterator i = m_structs.begin(); i != m_structs.end(); i++) in ~ProgramSpec()
[all …]
/aosp_15_r20/external/deqp/external/openglcts/modules/common/
H A DglcShaderConstExprTests.cpp47 glu::DataType inType;
51 glu::DataType outType;
66 glu::DataType outType;
78 …ExecutorTestCase(deqp::Context &context, const char *name, glu::ShaderType shaderType, const Shade…
86 glu::ShaderType m_shaderType;
92 ExecutorTestCase<OutputType>::ExecutorTestCase(deqp::Context &context, const char *name, glu::Shade… in ExecutorTestCase()
185 glu::ContextType contextType = context.getRenderContext().getType(); in createTestCasesForAllShaderTypes()
188 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in createTestCasesForAllShaderTypes()
190 … shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(params.outType, glu::PRECISION_HIGHP))); in createTestCasesForAllShaderTypes()
193 std::vector<glu::ShaderType> shaderTypes; in createTestCasesForAllShaderTypes()
[all …]
/aosp_15_r20/external/deqp/modules/gles2/functional/
H A Des2fShaderConstExprTests.cpp61 …m_testCtx, m_context.getRenderContext(), m_context.getContextInfo(), cases, numCases, glu::GLSL_VE… in addChildGroup()
79 …{"radians", "radians(${T} (90.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatRadians(90.0f)}, in init()
80 … {"degrees", "degrees(${T} (2.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatDegrees(2.0f)}, in init()
81 {"sin", "sin(${T} (3.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatSin(3.0f)}, in init()
82 {"cos", "cos(${T} (3.2))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatCos(3.2f)}, in init()
83 {"tan", "tan(${T} (1.5))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatTan(1.5f)}, in init()
84 {"asin", "asin(${T} (0.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatAsin(0.0f)}, in init()
85 {"acos", "acos(${T} (1.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatAcos(1.0f)}, in init()
86 … {"atan_separate", "atan(${T} (-1.0), ${T} (-1.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, in init()
88 …{"atan_combined", "atan(${T} (2.0))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, deFloatAtanOver(2.0f… in init()
[all …]
H A Des2fUniformApiTests.cpp61 using glu::ShaderProgram;
62 using glu::StructType;
68 typedef bool (*dataTypePredicate)(glu::DataType);
74 static const glu::DataType s_testDataTypes[] = {
75 glu::TYPE_FLOAT, glu::TYPE_FLOAT_VEC2, glu::TYPE_FLOAT_VEC3, glu::TYPE_FLOAT_VEC4,
76 glu::TYPE_FLOAT_MAT2, glu::TYPE_FLOAT_MAT3, glu::TYPE_FLOAT_MAT4,
78 glu::TYPE_INT, glu::TYPE_INT_VEC2, glu::TYPE_INT_VEC3, glu::TYPE_INT_VEC4,
80 glu::TYPE_BOOL, glu::TYPE_BOOL_VEC2, glu::TYPE_BOOL_VEC3, glu::TYPE_BOOL_VEC4,
82 glu::TYPE_SAMPLER_2D, glu::TYPE_SAMPLER_CUBE};
112 static inline int getSamplerNumLookupDimensions(const glu::DataType type) in getSamplerNumLookupDimensions()
[all …]
H A Des2fShaderApiTests.cpp72 const char *getSimpleShaderSource(const glu::ShaderType shaderType) in getSimpleShaderSource()
79 case glu::SHADERTYPE_VERTEX: in getSimpleShaderSource()
81 case glu::SHADERTYPE_FRAGMENT: in getSimpleShaderSource()
90 void setShaderSources(glu::Shader &shader, const ShaderSources &sources) in setShaderSources()
131 void queryShaderInfo(glu::RenderContext &renderCtx, uint32_t shader, glu::ShaderInfo &info) in queryShaderInfo()
178 virtual std::string next(const glu::ShaderType shaderType) = 0;
179 virtual bool finished(const glu::ShaderType shaderType) const = 0;
192 bool finished(const glu::ShaderType shaderType) const in finished()
198 std::string next(const glu::ShaderType shaderType);
204 std::string ConstantShaderGenerator::next(const glu::ShaderType shaderType) in next()
[all …]
/aosp_15_r20/external/deqp/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()
43 case glu::TYPE_FLOAT_VEC3: in getCompareFuncForType()
46 case glu::TYPE_FLOAT_VEC4: in getCompareFuncForType()
49 case glu::TYPE_FLOAT_MAT2: in getCompareFuncForType()
52 case glu::TYPE_FLOAT_MAT2X3: in getCompareFuncForType()
55 case glu::TYPE_FLOAT_MAT2X4: in getCompareFuncForType()
58 case glu::TYPE_FLOAT_MAT3X2: in getCompareFuncForType()
61 case glu::TYPE_FLOAT_MAT3: in getCompareFuncForType()
[all …]
/aosp_15_r20/external/deqp/modules/glshared/
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, uint32_t pname, int required) in checkLimit()
87 …throw tcu::TestError("Failed to query " + de::toString(glu::getGettableStateStr(pname)) + " - got … in checkLimit()
88 de::toString(glu::getErrorStr(error))); in checkLimit()
90 … throw tcu::NotSupportedError("Test requires " + de::toString(glu::getGettableStateStr(pname)) + in checkLimit()
99 const bool usesInout = glu::glslVersionUsesInOutQualifiers(shaderSpec.version); in generateVertexShader()
106 src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; in generateVertexShader()
114 src << in << " " << glu::declare(input->varType, inputPrefix + input->name) << ";\n"; in generateVertexShader()
121 if (glu::isDataTypeBoolOrBVec(output->varType.getBasicType())) in generateVertexShader()
[all …]
/aosp_15_r20/external/deqp/external/vulkancts/modules/vulkan/ssbo/
H A DvktSSBOLayoutTests.cpp57 using glu::StructType;
58 using glu::VarType;
96glu::VarType generateType(de::Random &rnd, int structDepth, int arrayDepth, bool arrayOk, bool unu…
200 const glu::VarType &lastType = lastVar.getType(); in generateBlock()
201 …const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSI… in generateBlock()
239 …const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNS… in generateBufferVar()
250 glu::VarType RandomSSBOLayoutCase::generateType(de::Random &rnd, int structDepth, int arrayDepth, b… in generateType()
262 …const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth + 1, childArrayOk, fals… in generateType()
263 return glu::VarType(elementType, glu::VarType::UNSIZED_ARRAY); in generateType()
267 vector<glu::VarType> memberTypes; in generateType()
[all …]
/aosp_15_r20/external/deqp/external/openglcts/modules/runner/
H A DglcKhronosMustpassGl.hpp25 { glu::ApiType::core(4, 6), "main", DE_NULL, "unspecified", 1, DE_NULL, 64, 64 },
26 { glu::ApiType::core(4, 6), "main", DE_NULL, "unspecified", 2, DE_NULL, 113, 47 },
27 { glu::ApiType::core(4, 6), "main", DE_NULL, "unspecified", 3, "rgba8888d24s8", 64, -1 },
28 { glu::ApiType::core(4, 6), "main", DE_NULL, "unspecified", 3, "rgba8888d24s8", -1, 64 },
29 { glu::ApiType::core(4, 5), "main", DE_NULL, "unspecified", 1, DE_NULL, 64, 64 },
30 { glu::ApiType::core(4, 5), "main", DE_NULL, "unspecified", 2, DE_NULL, 113, 47 },
31 { glu::ApiType::core(4, 5), "main", DE_NULL, "unspecified", 3, "rgba8888d24s8", 64, -1 },
32 { glu::ApiType::core(4, 5), "main", DE_NULL, "unspecified", 3, "rgba8888d24s8", -1, 64 },
33 { glu::ApiType::core(4, 4), "main", DE_NULL, "unspecified", 1, DE_NULL, 64, 64 },
34 { glu::ApiType::core(4, 4), "main", DE_NULL, "unspecified", 2, DE_NULL, 113, 47 },
[all …]
/aosp_15_r20/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktShaderCommonFunctionTests.cpp131 static int getNumMantissaBits(glu::DataType type) in getNumMantissaBits()
133 DE_ASSERT(glu::isDataTypeFloatOrVec(type) || glu::isDataTypeDoubleOrDVec(type)); in getNumMantissaBits()
134 return (glu::isDataTypeFloatOrVec(type) ? 23 : 52); in getNumMantissaBits()
137 static int getMinMantissaBits(glu::DataType type, glu::Precision precision) in getMinMantissaBits()
139 if (glu::isDataTypeDoubleOrDVec(type)) in getMinMantissaBits()
150 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
155 static int getExponentBits(glu::DataType type) in getExponentBits()
157 DE_ASSERT(glu::isDataTypeFloatOrVec(type) || glu::isDataTypeDoubleOrDVec(type)); in getExponentBits()
158 return (glu::isDataTypeFloatOrVec(type) ? static_cast<int>(tcu::Float32::EXPONENT_BITS) : in getExponentBits()
168 static int getComponentByteSize(glu::DataType type) in getComponentByteSize()
[all …]
H A DvktShaderIntegerFunctionTests.cpp62 const glu::VarType &type;
65 VarValue(const glu::VarType &type_, const void *value_) : type(type_), value(value_) in VarValue()
74 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
75 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
76 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
79 str << glu::getDataTypeName(basicType) << "("; in operator <<()
88 case glu::TYPE_INT: in operator <<()
91 case glu::TYPE_UINT: in operator <<()
106 inline int getShaderUintBitCount(glu::Precision precision) in getShaderUintBitCount()
109 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bitCounts) == glu::PRECISION_LAST); in getShaderUintBitCount()
[all …]
/aosp_15_r20/external/deqp/external/vulkancts/modules/vulkan/ubo/
H A DvktUniformBlockCase.cpp72 VarType::VarType(glu::DataType basicType, uint32_t flags) : m_type(TYPE_BASIC), m_flags(flags) in VarType()
158 …stream << entry.name << " { type = " << glu::getDataTypeName(entry.type) << ", size = " << entry.s… in operator <<()
307 int getDataTypeByteSize(glu::DataType type) in getDataTypeByteSize()
309 if (deInRange32(type, glu::TYPE_UINT8, glu::TYPE_UINT8_VEC4) || in getDataTypeByteSize()
310 deInRange32(type, glu::TYPE_INT8, glu::TYPE_INT8_VEC4)) in getDataTypeByteSize()
312 return glu::getDataTypeScalarSize(type) * (int)sizeof(uint8_t); in getDataTypeByteSize()
314 if (deInRange32(type, glu::TYPE_UINT16, glu::TYPE_UINT16_VEC4) || in getDataTypeByteSize()
315 deInRange32(type, glu::TYPE_INT16, glu::TYPE_INT16_VEC4) || in getDataTypeByteSize()
316 deInRange32(type, glu::TYPE_FLOAT16, glu::TYPE_FLOAT16_VEC4)) in getDataTypeByteSize()
318 return glu::getDataTypeScalarSize(type) * (int)sizeof(uint16_t); in getDataTypeByteSize()
[all …]

12345678910>>...71