Home
last modified time | relevance | path

Searched refs:VariableType (Results 1 – 25 of 28) sorted by relevance

12

/external/deqp/framework/randomshaders/
DrsgVariableType.hpp36 class VariableType class
72 Member (const VariableType& type, const char* name) in Member()
73 : m_type(new VariableType(type)) in Member()
88 m_type = new VariableType(*other.m_type); in Member()
102 m_type = new VariableType(*other.m_type); in operator =()
123 const VariableType& getType (void) const { return *m_type; } in getType()
127 VariableType* m_type;
131 VariableType (void);
132 VariableType (Type baseType, int numElements = 0);
133 VariableType (Type baseType, const VariableType& elementType, int numElements);
[all …]
DrsgVariableType.cpp32 VariableType& VariableType::operator= (const VariableType& other) in operator =()
48 m_elementType = new VariableType(*other.m_elementType); in operator =()
53 VariableType::VariableType (const VariableType& other) in VariableType() function in rsg::VariableType
59 bool VariableType::operator!= (const VariableType& other) const in operator !=()
76 bool VariableType::operator== (const VariableType& other) const in operator ==()
81 int VariableType::getScalarSize (void) const in getScalarSize()
113 int VariableType::getMemberScalarOffset (int memberNdx) const in getMemberScalarOffset()
124 int VariableType::getElementScalarOffset (int elementNdx) const in getElementScalarOffset()
130 const VariableType& VariableType::getScalarType (Type baseType) in getScalarType()
136 static const VariableType s_floatTypes[] = in getScalarType()
[all …]
DrsgUtils.cpp59 const VariableType& type = dst.getType(); in computeRandomValue()
63 case VariableType::TYPE_FLOAT: in computeRandomValue()
73 case VariableType::TYPE_BOOL: in computeRandomValue()
82 case VariableType::TYPE_INT: in computeRandomValue()
83 case VariableType::TYPE_SAMPLER_2D: in computeRandomValue()
84 case VariableType::TYPE_SAMPLER_CUBE: in computeRandomValue()
93 case VariableType::TYPE_ARRAY: in computeRandomValue()
101 case VariableType::TYPE_STRUCT: in computeRandomValue()
129 case VariableType::TYPE_FLOAT: in isUndefinedValueRange()
130 case VariableType::TYPE_INT: in isUndefinedValueRange()
[all …]
DrsgExpression.cpp137 IsSamplerEntry (VariableType::Type type) in IsSamplerEntry()
140 DE_ASSERT(m_type == VariableType::TYPE_SAMPLER_2D || m_type == VariableType::TYPE_SAMPLER_CUBE); in IsSamplerEntry()
145 if (entry->getVariable()->getType() == VariableType(m_type, 1)) in operator ()()
155 VariableType::Type m_type;
166 const VariableType& type = valueRange.getType(); in computeRandomValueRangeForInfElements()
171 case VariableType::TYPE_BOOL: in computeRandomValueRangeForInfElements()
175 case VariableType::TYPE_INT: in computeRandomValueRangeForInfElements()
195 case VariableType::TYPE_FLOAT: in computeRandomValueRangeForInfElements()
225 const VariableType& type = valueRange.getType(); in setInfiniteRange()
229 case VariableType::TYPE_BOOL: in setInfiniteRange()
[all …]
DrsgBinaryOps.cpp53 VariableType m_type;
60 , m_type (VariableType::TYPE_FLOAT, 1) in CustomAbsOp()
130 m_type = VariableType(VariableType::TYPE_FLOAT, 1); in CustomBinaryOp()
139 m_type = VariableType(VariableType::TYPE_FLOAT, 1); in CustomBinaryOp()
150 m_type = VariableType(VariableType::TYPE_BOOL, 1); in CustomBinaryOp()
151 VariableType floatType = VariableType(VariableType::TYPE_FLOAT, 1); in CustomBinaryOp()
174 DE_ASSERT(dst.getType().getBaseType() == VariableType::TYPE_FLOAT); in evaluate()
187 DE_ASSERT(dst.getType().getBaseType() == VariableType::TYPE_BOOL); in evaluate()
243 VariableType floatType(VariableType::TYPE_FLOAT, 1); in createNextChild()
263 VariableType floatType(VariableType::TYPE_FLOAT, 1); in createNextChild()
[all …]
DrsgExecutionContext.cpp37 return ExecValueAccess(VariableType::getScalarType(VariableType::TYPE_BOOL), m_data); in getValue()
42 return ExecConstValueAccess(VariableType::getScalarType(VariableType::TYPE_BOOL), m_data); in getValue()
123 const VariableType& type = dst.getType(); in assignMasked()
127 case VariableType::TYPE_ARRAY: in assignMasked()
136 case VariableType::TYPE_STRUCT: in assignMasked()
145 case VariableType::TYPE_FLOAT: in assignMasked()
146 case VariableType::TYPE_INT: in assignMasked()
147 case VariableType::TYPE_BOOL: in assignMasked()
148 case VariableType::TYPE_SAMPLER_2D: in assignMasked()
149 case VariableType::TYPE_SAMPLER_CUBE: in assignMasked()
DrsgVariableValue.hpp77 …StridedValueRead (const VariableType& type, const Scalar* value) : m_type(type), m_value(value) {} in StridedValueRead()
79 const VariableType& getType (void) const { return m_type; } in getType()
83 const VariableType& m_type;
92 …ConstStridedValueAccess (const VariableType& type, const Scalar* valuePtr) : m_type(&type), m_valu… in ConstStridedValueAccess()
94 const VariableType& getType (void) const { return *m_type; } in getType()
118 const VariableType* m_type;
127 …StridedValueAccess (const VariableType& type, Scalar* valuePtr) : ConstStridedValueAccess<Stride>(… in StridedValueAccess()
186 DE_ASSERT(this->getType() == VariableType(VariableType::TYPE_FLOAT, Size)); in operator =()
201 …ConstValueRangeAccess (const VariableType& type, const Scalar* minVal, const Scalar* maxVal) : m_t… in ConstValueRangeAccess()
203 const VariableType& getType (void) const { return *m_type; } in getType()
[all …]
DrsgShaderGenerator.cpp139 VariableType::Type baseType = valueRange.getType().getBaseType(); in fillUndefinedComponents()
140 TCU_CHECK(baseType == VariableType::TYPE_FLOAT || in fillUndefinedComponents()
141 baseType == VariableType::TYPE_INT || in fillUndefinedComponents()
142 baseType == VariableType::TYPE_BOOL); in fillUndefinedComponents()
153 case VariableType::TYPE_FLOAT: min = 0.0f; max = 1.0f; break; in fillUndefinedComponents()
154 case VariableType::TYPE_INT: min = 0; max = 1; break; in fillUndefinedComponents()
155 case VariableType::TYPE_BOOL: min = false; max = true; break; in fillUndefinedComponents()
206 …Variable* fragColorVar = m_state.getVariableManager().allocate(VariableType(VariableType::TYPE_FLO… in generate()
221 main.setReturnType(VariableType(VariableType::TYPE_VOID)); in generate()
254 …Variable* glPosVariable = m_state.getVariableManager().allocate(VariableType(VariableType::TYPE_FL… in generate()
[all …]
DrsgVariableValue.cpp60 case VariableType::TYPE_FLOAT: in compareValueRangesAllTrue()
73 case VariableType::TYPE_INT: in compareValueRangesAllTrue()
74 case VariableType::TYPE_SAMPLER_2D: in compareValueRangesAllTrue()
75 case VariableType::TYPE_SAMPLER_CUBE: in compareValueRangesAllTrue()
88 case VariableType::TYPE_BOOL: in compareValueRangesAllTrue()
158 ValueRange::ValueRange (const VariableType& type) in ValueRange()
165 ValueRange::ValueRange (const VariableType& type, const ConstValueAccess& minVal, const ConstValueA… in ValueRange()
174 ValueRange::ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal) in ValueRange()
222 case VariableType::TYPE_FLOAT: in computeIntersection()
235 case VariableType::TYPE_INT: in computeIntersection()
[all …]
DrsgProgramExecutor.cpp47 VaryingStorage (const VariableType& type, int numVertices);
50 ValueAccess getValue (const VariableType& type, int vtxNdx);
51 ConstValueAccess getValue (const VariableType& type, int vtxNdx) const;
57 VaryingStorage::VaryingStorage (const VariableType& type, int numVertices) in VaryingStorage()
62 ValueAccess VaryingStorage::getValue (const VariableType& type, int vtxNdx) in getValue()
67 ConstValueAccess VaryingStorage::getValue (const VariableType& type, int vtxNdx) const in getValue()
78 VaryingStorage* getStorage (const VariableType& type, const char* name);
97 VaryingStorage* VaryingStore::getStorage (const VariableType& type, const char* name) in getStorage()
140 TCU_CHECK(valueRange.getType().getBaseType() == VariableType::TYPE_FLOAT); in interpolateVertexInput()
153 TCU_CHECK(dst.getType().getBaseType() == VariableType::TYPE_FLOAT); in interpolateFragmentInput()
[all …]
DrsgVariable.hpp54 Variable (const VariableType& type, Storage storage, const char* name);
57 const VariableType& getType (void) const { return m_type; } in getType()
71 VariableType m_type;
DrsgExpression.hpp119 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
137 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
156 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
283 VariableType m_valueType;
DrsgShader.hpp46 const VariableType& getReturnType (void) const { return m_returnType; } in getReturnType()
47 void setReturnType (const VariableType& type) { m_returnType = type; } in setReturnType()
59 VariableType m_returnType;
DrsgUtils.hpp46 int getTypeConstructorDepth (const VariableType& type);
48 VariableType computeRandomType (GeneratorState& state, int maxScalars);
DrsgVariableManager.cpp74 case VariableType::TYPE_ARRAY: in next()
82 case VariableType::TYPE_STRUCT: in next()
114 Variable* VariableScope::allocate (const VariableType& type, Variable::Storage storage, const char*… in allocate()
237 Variable* VariableManager::allocate (const VariableType& type) in allocate()
242 Variable* VariableManager::allocate (const VariableType& type, Variable::Storage storage, const cha… in allocate()
DrsgVariableManager.hpp66 …Variable* allocate (const VariableType& type, Variable::Storage storage, const char* name…
207 Variable* allocate (const VariableType& type);
208 …Variable* allocate (const VariableType& type, Variable::Storage storage, const char* nam…
DrsgStatement.cpp120 m_expression = generator.generate(ValueRange(VariableType(VariableType::TYPE_VOID))); in ExpressionStatement()
431 ValueRange range = ValueRange(VariableType::getScalarType(VariableType::TYPE_BOOL)); in createNextChild()
DrsgGeneratorState.hpp38 class VariableType;
DrsgVariable.cpp31 Variable::Variable (const VariableType& type, Storage storage, const char* name) in Variable()
/external/deqp/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingMiscTests.cpp175 enum class VariableType enum
3685 const std::vector<VariableType> g_ShaderRecordBlockTestVars1 =
3687 VariableType::FLOAT,
3688 VariableType::VEC2,
3689 VariableType::VEC3,
3690 VariableType::VEC4,
3692 VariableType::MAT2,
3693 VariableType::MAT2X2,
3694 VariableType::MAT2X3,
3695 VariableType::MAT2X4,
[all …]
/external/deqp/modules/glshared/
DglsRandomShaderCase.cpp165 TCU_CHECK(input->getVariable()->getType().getBaseType() == rsg::VariableType::TYPE_FLOAT); in init()
224 const rsg::VariableType& type = uniformIter->getVariable()->getType(); in init()
231 if (type == rsg::VariableType(rsg::VariableType::TYPE_SAMPLER_2D, 1)) in init()
233 else if (type == rsg::VariableType(rsg::VariableType::TYPE_SAMPLER_CUBE, 1)) in init()
378 case rsg::VariableType::TYPE_FLOAT: in setUniformValue()
389 case rsg::VariableType::TYPE_INT: in setUniformValue()
390 case rsg::VariableType::TYPE_BOOL: in setUniformValue()
391 case rsg::VariableType::TYPE_SAMPLER_2D: in setUniformValue()
392 case rsg::VariableType::TYPE_SAMPLER_CUBE: in setUniformValue()
415 case rsg::VariableType::TYPE_FLOAT: scalarType = "float"; vecType = "vec"; break; in operator <<()
[all …]
DglsRandomShaderProgram.cpp34 static rr::GenericVecType mapToGenericVecType (const rsg::VariableType& varType) in mapToGenericVecType()
47 static glu::DataType mapToBasicType (const rsg::VariableType& varType) in mapToBasicType()
59 else if (varType.getBaseType() == rsg::VariableType::TYPE_SAMPLER_2D) in mapToBasicType()
61 else if (varType.getBaseType() == rsg::VariableType::TYPE_SAMPLER_CUBE) in mapToBasicType()
141 …TCU_CHECK_INTERNAL(m_positionVar && m_positionVar->getType().getBaseType() == rsg::VariableType::T… in RandomShaderProgram()
142 …TCU_CHECK_INTERNAL(m_fragColorVar && m_fragColorVar->getType().getBaseType() == rsg::VariableType:… in RandomShaderProgram()
162 const rsg::VariableType& uniformType = uniformVar->getType(); in refreshUniforms()
184 const rsg::VariableType& attribType = attribVar->getType(); in shadeVertices()
225 const rsg::VariableType& varType = var->getType(); in shadeVertices()
263 const rsg::VariableType& varType = var->getType(); in shadeFragments()
DglsFragOpInteractionCase.cpp89 const rsg::VariableType& type = var->getType(); in computeVertexLayout()
92 …TCU_CHECK_INTERNAL(type.getBaseType() == rsg::VariableType::TYPE_FLOAT && de::inRange(type.getNumE… in computeVertexLayout()
335 case rsg::VariableType::TYPE_FLOAT: in setUniformValue()
346 case rsg::VariableType::TYPE_INT: in setUniformValue()
347 case rsg::VariableType::TYPE_BOOL: in setUniformValue()
348 case rsg::VariableType::TYPE_SAMPLER_2D: in setUniformValue()
349 case rsg::VariableType::TYPE_SAMPLER_CUBE: in setUniformValue()
540 const rsg::VariableType& varType = shaderIn->getVariable()->getType(); in iterate()
545 DE_ASSERT(varType.getBaseType() == rsg::VariableType::TYPE_FLOAT); in iterate()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp2754 QualType VariableType = VD->getType(); in DiagnoseForRangeReferenceVariableCopies() local
2801 << VD << VariableType << ReferenceReturnType; in DiagnoseForRangeReferenceVariableCopies()
2802 QualType NonReferenceType = VariableType.getNonReferenceType(); in DiagnoseForRangeReferenceVariableCopies()
2809 } else if (!VariableType->isRValueReferenceType()) { in DiagnoseForRangeReferenceVariableCopies()
2816 QualType NonReferenceType = VariableType.getNonReferenceType(); in DiagnoseForRangeReferenceVariableCopies()
2826 static bool hasTrivialABIAttr(QualType VariableType) { in hasTrivialABIAttr() argument
2827 if (CXXRecordDecl *RD = VariableType->getAsCXXRecordDecl()) in hasTrivialABIAttr()
2842 QualType VariableType = VD->getType(); in DiagnoseForRangeConstVariableCopies() local
2858 if (Ctx.getTypeSize(VariableType) <= 64 * 8 && in DiagnoseForRangeConstVariableCopies()
2859 (VariableType.isTriviallyCopyableType(Ctx) || in DiagnoseForRangeConstVariableCopies()
[all …]
/external/clang/lib/Sema/
DSemaStmt.cpp2454 QualType VariableType = VD->getType(); in DiagnoseForRangeReferenceVariableCopies() local
2499 << VD << VariableType << E->getType(); in DiagnoseForRangeReferenceVariableCopies()
2500 QualType NonReferenceType = VariableType.getNonReferenceType(); in DiagnoseForRangeReferenceVariableCopies()
2511 QualType NonReferenceType = VariableType.getNonReferenceType(); in DiagnoseForRangeReferenceVariableCopies()
2527 QualType VariableType = VD->getType(); in DiagnoseForRangeConstVariableCopies() local
2542 if (VariableType.isPODType(SemaRef.Context)) in DiagnoseForRangeConstVariableCopies()
2548 << VD << VariableType << InitExpr->getType(); in DiagnoseForRangeConstVariableCopies()
2550 << SemaRef.Context.getLValueReferenceType(VariableType) in DiagnoseForRangeConstVariableCopies()
2577 QualType VariableType = VD->getType(); in DiagnoseForRangeVariableCopies() local
2579 if (VariableType->isIncompleteType()) in DiagnoseForRangeVariableCopies()
[all …]

12