Home
last modified time | relevance | path

Searched refs:constUnion (Results 1 – 11 of 11) sorted by relevance

/external/angle/src/compiler/translator/
DOutputHLSL.h86 void writeSingleConstant(TInfoSinkBase &out, const TConstantUnion *const constUnion);
88 const TConstantUnion *const constUnion,
126 const TConstantUnion *constUnion);
DOutputHLSL.cpp261 void OutputHLSL::writeSingleConstant(TInfoSinkBase &out, const TConstantUnion *const constUnion) in writeSingleConstant() argument
263 ASSERT(constUnion != nullptr); in writeSingleConstant()
264 switch (constUnion->getType()) in writeSingleConstant()
267 writeFloat(out, constUnion->getFConst()); in writeSingleConstant()
270 out << constUnion->getIConst(); in writeSingleConstant()
273 out << constUnion->getUConst(); in writeSingleConstant()
276 out << constUnion->getBConst(); in writeSingleConstant()
284 const TConstantUnion *const constUnion, in writeConstantUnionArray() argument
287 const TConstantUnion *constUnionIterated = constUnion; in writeConstantUnionArray()
3339 const TConstantUnion *const constUnion) in writeConstantUnion() argument
[all …]
DOutputSPIRV.cpp253 const TConstantUnion *constUnion,
1022 const TConstantUnion *constUnion, in createConstant() argument
1048 createConstant(*fieldType, fieldType->getBasicType(), constUnion, false)); in createConstant()
1050 constUnion += fieldType->getObjectSize(); in createConstant()
1059 for (size_t component = 0; component < size; ++component, ++constUnion) in createConstant()
1065 bool valid = castConstant.cast(expectedBasicType, *constUnion); in createConstant()
DIntermNode.cpp43 TConstantUnion *constUnion = new TConstantUnion[size]; in Vectorize() local
45 constUnion[i] = constant; in Vectorize()
47 return constUnion; in Vectorize()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DintermOut.cpp1236 …d OutputConstantUnion(TInfoSink& out, const TIntermTyped* node, const TConstUnionArray& constUnion, in OutputConstantUnion() argument
1243 switch (constUnion[i].getType()) { in OutputConstantUnion()
1245 if (constUnion[i].getBConst()) in OutputConstantUnion()
1257 OutputDouble(out, constUnion[i].getDConst(), extra); in OutputConstantUnion()
1264 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getI8Const(), "const int8_t"); in OutputConstantUnion()
1273 snprintf(buf, maxSize, "%u (%s)", constUnion[i].getU8Const(), "const uint8_t"); in OutputConstantUnion()
1282 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getI16Const(), "const int16_t"); in OutputConstantUnion()
1291 snprintf(buf, maxSize, "%u (%s)", constUnion[i].getU16Const(), "const uint16_t"); in OutputConstantUnion()
1300 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getIConst(), "const int"); in OutputConstantUnion()
1309 snprintf(buf, maxSize, "%u (%s)", constUnion[i].getUConst(), "const uint"); in OutputConstantUnion()
[all …]
DParseHelper.cpp5278 const TIntermConstantUnion* constUnion = node->getAsConstantUnion(); in setLayoutQualifier() local
5281 if (constUnion) { in setLayoutQualifier()
5282 value = constUnion->getConstArray()[0].getIConst(); in setLayoutQualifier()
5283 if (! constUnion->isLiteral()) { in setLayoutQualifier()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DintermOut.cpp1245 …d OutputConstantUnion(TInfoSink& out, const TIntermTyped* node, const TConstUnionArray& constUnion, in OutputConstantUnion() argument
1252 switch (constUnion[i].getType()) { in OutputConstantUnion()
1254 if (constUnion[i].getBConst()) in OutputConstantUnion()
1266 OutputDouble(out, constUnion[i].getDConst(), extra); in OutputConstantUnion()
1273 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getI8Const(), "const int8_t"); in OutputConstantUnion()
1282 snprintf(buf, maxSize, "%u (%s)", constUnion[i].getU8Const(), "const uint8_t"); in OutputConstantUnion()
1291 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getI16Const(), "const int16_t"); in OutputConstantUnion()
1300 snprintf(buf, maxSize, "%u (%s)", constUnion[i].getU16Const(), "const uint16_t"); in OutputConstantUnion()
1309 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getIConst(), "const int"); in OutputConstantUnion()
1318 snprintf(buf, maxSize, "%u (%s)", constUnion[i].getUConst(), "const uint"); in OutputConstantUnion()
[all …]
DParseHelper.cpp5570 const TIntermConstantUnion* constUnion = node->getAsConstantUnion(); in setLayoutQualifier() local
5573 if (constUnion) { in setLayoutQualifier()
5574 value = constUnion->getConstArray()[0].getIConst(); in setLayoutQualifier()
5575 if (! constUnion->isLiteral()) { in setLayoutQualifier()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DEmitMetal.cpp174 const TConstantUnion *emitConstantUnionArray(const TConstantUnion *const constUnion,
177 const TConstantUnion *emitConstantUnion(const TType &type, const TConstantUnion *constUnion);
179 void emitSingleConstant(const TConstantUnion *const constUnion);
1327 void GenMetalTraverser::emitSingleConstant(const TConstantUnion *const constUnion) in emitSingleConstant() argument
1329 switch (constUnion->getType()) in emitSingleConstant()
1333 mOut << (constUnion->getBConst() ? "true" : "false"); in emitSingleConstant()
1339 mOut << constUnion->getFConst() << "f"; in emitSingleConstant()
1345 mOut << constUnion->getIConst(); in emitSingleConstant()
1351 mOut << constUnion->getUConst() << "u"; in emitSingleConstant()
1363 const TConstantUnion *const constUnion, in emitConstantUnionArray() argument
[all …]
/external/deqp-deps/glslang/glslang/HLSL/
DhlslParseHelper.cpp7182 const TIntermConstantUnion* constUnion = node->getAsConstantUnion(); in setLayoutQualifier() local
7184 if (constUnion) { in setLayoutQualifier()
7185 value = constUnion->getConstArray()[0].getIConst(); in setLayoutQualifier()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/
DhlslParseHelper.cpp7186 const TIntermConstantUnion* constUnion = node->getAsConstantUnion(); in setLayoutQualifier() local
7188 if (constUnion) { in setLayoutQualifier()
7189 value = constUnion->getConstArray()[0].getIConst(); in setLayoutQualifier()