/third_party/glslang/glslang/Include/ |
D | Types.h | 1360 TArraySizes* arraySizes; variable 1377 arraySizes = nullptr; in initType() 1415 return matrixCols == 0 && vectorSize == 1 && arraySizes == nullptr && userDef == nullptr; in isScalar() 1434 …arraySizes(nullptr), structure(nullptr), fieldName(nullptr), typeName(nullptr), typeParameters(nul… in POOL_ALLOCATOR_NEW_DELETE() 1445 …arraySizes(nullptr), structure(nullptr), fieldName(nullptr), typeName(nullptr), typeParameters(nul… in basicType() 1458 …arraySizes(p.arraySizes), structure(nullptr), fieldName(nullptr), typeName(nullptr), typeParameter… in TType() 1491 arraySizes(as), structure(nullptr), fieldName(nullptr), typeName(nullptr), in basicType() 1505 arraySizes = nullptr; 1508 arraySizes = new TArraySizes; 1509 arraySizes->copyDereferenced(*type.arraySizes); [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | blocklayoutHLSL.cpp | 30 const std::vector<unsigned int> &arraySizes, in getBlockLayoutInfo() argument 46 if (!isPacked() || gl::IsMatrixType(type) || !arraySizes.empty()) in getBlockLayoutInfo() 55 if (!arraySizes.empty()) in getBlockLayoutInfo() 61 else if (!arraySizes.empty()) in getBlockLayoutInfo() 79 const std::vector<unsigned int> &arraySizes, in advanceOffset() argument 86 if (!arraySizes.empty()) in advanceOffset() 88 unsigned int arraySize = gl::ArraySizeProduct(arraySizes); in advanceOffset() 154 encoder->encodeType(variable.type, variable.arraySizes, false); in HLSLVariableRegisterCount()
|
D | ShaderVars.cpp | 63 arraySizes.push_back(arraySizeIn); in ShaderVariable() 73 arraySizes(other.arraySizes), in ShaderVariable() 104 arraySizes = other.arraySizes; in operator =() 133 mappedName != other.mappedName || arraySizes != other.arraySizes || in operator ==() 158 arraySizes.clear(); in setArraySize() 161 arraySizes.push_back(size); in setArraySize() 167 return gl::InnerArraySizeProduct(arraySizes); in getInnerArraySizeProduct() 172 return gl::ArraySizeProduct(arraySizes); in getArraySizeProduct() 179 arraySizes.pop_back(); in indexIntoArray() 184 ASSERT(arraySizes.size() > arrayNestingIndex); in getNestedArraySize() [all …]
|
D | StaticType.h | 70 const unsigned int *arraySizes, in BuildStaticArrayMangledName() argument 83 arrayName.name[4] = static_cast<char>('0' + arraySizes[0]); in BuildStaticArrayMangledName() 105 const unsigned int *arraySizes, 113 arraySizes, 147 const unsigned int *arraySizes, 155 TSpan<const unsigned int>(arraySizes, numArraySizes), 156 …yInstance<basicType, precision, qualifier, primarySize, secondarySize, arraySizes, numArraySizes>.… 181 const unsigned int *arraySizes, 188 static_assert(arraySizes[0] < 10, "only single-digit dimensions are supported in static types"); in GetArray() 190 arraySizes, numArraySizes>; in GetArray()
|
D | blocklayout.h | 80 const std::vector<unsigned int> &arraySizes, 86 const std::vector<unsigned int> &arraySizes); 105 const std::vector<unsigned int> &arraySizes, 110 const std::vector<unsigned int> &arraySizes, 129 const std::vector<unsigned int> &arraySizes, 135 const std::vector<unsigned int> &arraySizes, in advanceOffset() argument 155 const std::vector<unsigned int> &arraySizes, 160 const std::vector<unsigned int> &arraySizes, 236 const std::vector<unsigned int> &arraySizes) in visitNamedOpaqueObject() argument 242 const std::vector<unsigned int> &arraySizes) = 0; [all …]
|
D | blocklayout.cpp | 91 if (variable.arraySizes.size() > 1u) in TraverseStructArrayVariable() 122 if (arrayNestingIndex + 2u < variable.arraySizes.size()) in TraverseArrayOfArraysVariable() 184 const std::vector<unsigned int> &arraySizes, in encodeType() argument 190 getBlockLayoutInfo(type, arraySizes, isRowMajorMatrix, &arrayStride, &matrixStride); in encodeType() 197 advanceOffset(type, arraySizes, isRowMajorMatrix, arrayStride, matrixStride); in encodeType() 204 const std::vector<unsigned int> &arraySizes) in encodeArrayOfPreEncodedStructs() argument 206 const unsigned int innerArraySizeProduct = gl::InnerArraySizeProduct(arraySizes); in encodeArrayOfPreEncodedStructs() 207 const unsigned int outermostArraySize = gl::OutermostArraySize(arraySizes); in encodeArrayOfPreEncodedStructs() 269 const std::vector<unsigned int> &arraySizes, in getBlockLayoutInfo() argument 292 const std::vector<unsigned int> &arraySizes, in getBlockLayoutInfo() argument [all …]
|
D | ValidateTypeSizeLimitations.cpp | 157 const TSpan<const unsigned int> &arraySizes = type.getArraySizes(); in setFieldOrVariableProperties() local 158 if (!arraySizes.empty()) in setFieldOrVariableProperties() 160 variableOut->arraySizes.assign(arraySizes.begin(), arraySizes.end()); in setFieldOrVariableProperties()
|
D | Declarator.cpp | 21 const TVector<unsigned int> *arraySizes, in TDeclarator() argument 23 : mName(name), mArraySizes(arraySizes), mLine(line) in TDeclarator()
|
D | Declarator.h | 26 const TVector<unsigned int> *arraySizes, 32 const TVector<unsigned int> *arraySizes() const { return mArraySizes; } in arraySizes() function
|
D | BuildSPIRV.h | 98 TSpan<const unsigned int> arraySizes; member 141 !type.arraySizes.empty()); in operator() 155 (type.block == nullptr && !type.arraySizes.empty() && type.secondarySize > 1 && in operator() 161 if (!type.arraySizes.empty()) in operator() 163 result = angle::ComputeGenericHash(type.arraySizes.data(), in operator() 164 type.arraySizes.size() * sizeof(type.arraySizes[0])); in operator()
|
D | BuildSPIRV.cpp | 25 if (a.arraySizes != b.arraySizes) in operator ==() 101 const TSpan<const unsigned int> arraySizes, in ToShaderVariable() argument 107 var.arraySizes = {arraySizes.begin(), arraySizes.end()}; in ToShaderVariable() 140 return ToShaderVariable(type.block, glType, type.arraySizes, isRowMajor); in SpirvTypeToShaderVariable() 177 fieldInfo = encoder->encodeArrayOfPreEncodedStructs(structSize, fieldVar.arraySizes); in Encode() 183 encoder->encodeType(fieldVar.type, fieldVar.arraySizes, fieldVar.isRowMajorLayout); in Encode() 227 element.arraySizes.clear(); in GetArrayStrideInBlock() 237 encoder->encodeType(var.type, var.arraySizes, var.isRowMajorLayout); in GetArrayStrideInBlock() 529 spirvType.arraySizes = type.getArraySizes(); in getSpirvType() 733 if (!type.arraySizes.empty()) in declareType() [all …]
|
D | blocklayoutHLSL.h | 48 const std::vector<unsigned int> &arraySizes, 53 const std::vector<unsigned int> &arraySizes,
|
D | Types.cpp | 195 makeArrays(*p.arraySizes); in TType() 923 arraySizes = nullptr; in initialize() 937 arraySizes = nullptr; in initializeBasicType() 962 arraySizes = sizes; in setArraySizes() 967 return arraySizes && !arraySizes->empty(); in isArray() 972 arraySizes = nullptr; in clearArrayness()
|
D | ShaderStorageBlockOutputHLSL.cpp | 114 std::vector<unsigned int> arraySizes; in GetBlockMemberInfoByType() local 118 arraySizes.assign(typeArraySizes.begin(), typeArraySizes.end()); in GetBlockMemberInfoByType() 120 return encoder->encodeType(GLVariableType(type), arraySizes, rowMajor); in GetBlockMemberInfoByType() 608 const TSpan<const unsigned int> &arraySizes = type.getArraySizes(); in writeEOpIndexDirectOrIndirectOutput() local 609 for (unsigned int i = 0; i < arraySizes.size() - 1; i++) in writeEOpIndexDirectOrIndirectOutput() 611 right = Mul(CreateUIntNode(arraySizes[i]), right); in writeEOpIndexDirectOrIndirectOutput()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingDescriptorSetRandomTests.cpp | 186 arraySizes(numSets), in RandomLayout() 194 vector<vector<deUint32> > arraySizes; member in vkt::BindingModel::__anon58367a680111::RandomLayout 448 vector<deUint32> &arraySizes = randomLayout.arraySizes[s]; in generateRandomLayout() local 464 arraySizes = vector<deUint32>(numBindings); in generateRandomLayout() 477 vector<deUint32> &arraySizes = randomLayout.arraySizes[s]; in generateRandomLayout() local 496 arraySizes[b] = 0; in generateRandomLayout() 506 arraySizes[b] = 0; in generateRandomLayout() 544 … arraySizes[b] = randRange(&rnd, 0, de::min(maxArray, caseDef.maxPerStageUniformBuffers - numUBO)); in generateRandomLayout() 545 binding.descriptorCount = arraySizes[b] ? arraySizes[b] : 1; in generateRandomLayout() 552 …arraySizes[b] = randRange(&rnd, 0, de::min(maxArray, caseDef.maxPerStageStorageBuffers - numSSBO)); in generateRandomLayout() [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/ |
D | RewriteRowMajorMatrices.cpp | 228 const TSpan<const unsigned int> &arraySizes = mBaseExpressionType.getArraySizes(); in getNextElement() local 231 if (mArrayIndices.back() >= arraySizes.back()) in getNextElement() 242 incrementIndices(arraySizes); in getNextElement() 257 TVector<unsigned int> arraySizes(baseTypeArraySizes.begin(), baseTypeArraySizes.end()); in constructReadTransformExpression() local 263 TVector<unsigned int> accumulatedArraySizes(arraySizes.size() - 1); in constructReadTransformExpression() 267 accumulatedArraySizes[0] = arraySizes[0]; in constructReadTransformExpression() 269 for (size_t index = 1; index + 1 < arraySizes.size(); ++index) in constructReadTransformExpression() 271 accumulatedArraySizes[index] = accumulatedArraySizes[index - 1] * arraySizes[index]; in constructReadTransformExpression() 274 return constructReadTransformExpressionHelper(arraySizes, accumulatedArraySizes, baseType, in constructReadTransformExpression() 290 void incrementIndices(const TSpan<const unsigned int> &arraySizes) in incrementIndices() argument [all …]
|
/third_party/glslang/glslang/MachineIndependent/ |
D | SymbolTable.cpp | 163 if (arraySizes) { in buildMangledName() 166 for (int i = 0; i < arraySizes->getNumDims(); ++i) { in buildMangledName() 167 if (arraySizes->getDimNode(i)) { in buildMangledName() 168 if (arraySizes->getDimNode(i)->getAsSymbolNode()) in buildMangledName() 169 … snprintf(buf, maxSize, "s%d", arraySizes->getDimNode(i)->getAsSymbolNode()->getId()); in buildMangledName() 171 snprintf(buf, maxSize, "s%p", arraySizes->getDimNode(i)); in buildMangledName() 173 snprintf(buf, maxSize, "%d", arraySizes->getDimSize(i)); in buildMangledName()
|
/third_party/skia/third_party/externals/angle2/include/GLSLANG/ |
D | ShaderVars.h | 77 bool isArrayOfArrays() const { return arraySizes.size() >= 2u; } in isArrayOfArrays() 78 bool isArray() const { return !arraySizes.empty(); } in isArray() 89 unsigned int getOutermostArraySize() const { return isArray() ? arraySizes.back() : 0; } in getOutermostArraySize() 188 std::vector<unsigned int> arraySizes; member
|
/third_party/glslang/glslang/HLSL/ |
D | hlslGrammar.cpp | 448 TArraySizes* arraySizes = nullptr; in acceptDeclaration() local 449 acceptArraySpecifier(arraySizes); in acceptDeclaration() 459 variableType.transferArraySizes(arraySizes); in acceptDeclaration() 1042 TArraySizes* arraySizes = new TArraySizes; in acceptTessellationPatchTemplateType() local 1043 arraySizes->addInnerSize(size->getAsConstantUnion()->getConstArray()[0].getIConst()); in acceptTessellationPatchTemplateType() 1044 type.transferArraySizes(arraySizes); in acceptTessellationPatchTemplateType() 1208 TArraySizes *arraySizes = nullptr; // TODO: array in acceptSamplerTypeDX9() local 1216 type.shallowCopy(TType(sampler, EvqUniform, arraySizes)); in acceptSamplerTypeDX9() 1254 TArraySizes* arraySizes = nullptr; // TODO: array in acceptSamplerType() local 1259 type.shallowCopy(TType(sampler, EvqUniform, arraySizes)); in acceptSamplerType() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineImageTests.cpp | 442 std::vector<int> arraySizes; in createImageSizeTests() local 543 arraySizes.push_back(3); in createImageSizeTests() 544 arraySizes.push_back(6); in createImageSizeTests() 548 arraySizes.push_back(6); in createImageSizeTests() 553 arraySizes.push_back(6); in createImageSizeTests() 554 arraySizes.push_back(6 * 6); in createImageSizeTests() 558 arraySizes.push_back(1); in createImageSizeTests() 564 for (size_t arraySizeNdx = 0; arraySizeNdx < arraySizes.size(); arraySizeNdx++) in createImageSizeTests() 567 getSizeName(imageViewType, imageSizes[sizeNdx], arraySizes[arraySizeNdx]).c_str(), in createImageSizeTests() 575 arraySizes[arraySizeNdx])); in createImageSizeTests()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
D | RewriteArrayOfArrayOfOpaqueUniforms.cpp | 281 const TSpan<const unsigned int> &arraySizes = type.getArraySizes(); in visitDeclaration() local 282 mUniformMap[uniformVariable].mSubArraySizes.resize(arraySizes.size()); in visitDeclaration() 284 for (size_t dimension = 0; dimension < arraySizes.size(); ++dimension) in visitDeclaration() 287 runningProduct *= arraySizes[dimension]; in visitDeclaration()
|
D | EmulateGLFragColorBroadcast.cpp | 133 var.arraySizes.push_back(maxDrawBuffers); in EmulateGLFragColorBroadcast() 134 ASSERT(var.arraySizes.size() == 1u); in EmulateGLFragColorBroadcast()
|
/third_party/skia/third_party/externals/angle2/src/common/ |
D | utilities.cpp | 964 unsigned int ArraySizeProduct(const std::vector<unsigned int> &arraySizes) in ArraySizeProduct() argument 967 for (unsigned int arraySize : arraySizes) in ArraySizeProduct() 974 unsigned int InnerArraySizeProduct(const std::vector<unsigned int> &arraySizes) in InnerArraySizeProduct() argument 977 for (size_t index = 0; index + 1 < arraySizes.size(); ++index) in InnerArraySizeProduct() 979 arraySizeProduct *= arraySizes[index]; in InnerArraySizeProduct() 984 unsigned int OutermostArraySize(const std::vector<unsigned int> &arraySizes) in OutermostArraySize() argument 986 return arraySizes.empty() || arraySizes.back() == 0 ? 1 : arraySizes.back(); in OutermostArraySize()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | VaryingPacking.cpp | 40 vx.arraySizes.clear(); in ComparePackedVarying() 47 vy.arraySizes.clear(); in ComparePackedVarying() 170 std::vector<unsigned int> arr = backVarying->arraySizes; in StripVaryingArrayDimension() 178 std::vector<unsigned int> arr = frontVarying->arraySizes; in StripVaryingArrayDimension() 183 return frontVarying ? frontVarying->arraySizes : backVarying->arraySizes; in StripVaryingArrayDimension() 670 std::vector<unsigned int> arraySizes = StripVaryingArrayDimension( in collectVarying() local 672 const bool isArray = !arraySizes.empty(); in collectVarying() 673 const GLuint arraySize = isArray ? arraySizes[0] : 1; in collectVarying() 690 unsigned int structFieldArraySize = fieldVarying.arraySizes[0]; in collectVarying()
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluVarType.cpp | 362 std::vector<int> arraySizes; in operator <<() local 367 arraySizes.push_back(curType->getArraySize()); in operator <<() 392 …for (std::vector<int>::const_iterator sizeIter = arraySizes.begin(); sizeIter != arraySizes.end();… in operator <<()
|