/external/angle/src/compiler/translator/tree_ops/hlsl/ |
D | RecordUniformBlocksWithLargeArrayMember.cpp | 108 static bool CanTranslateUniformBlockToStructuredBuffer(const TInterfaceBlock &interfaceBlock) in CanTranslateUniformBlockToStructuredBuffer() argument 110 const TLayoutBlockStorage blockStorage = interfaceBlock.blockStorage(); in CanTranslateUniformBlockToStructuredBuffer() 112 if (blockStorage == EbsStd140 && interfaceBlock.fields().size() == 1u) in CanTranslateUniformBlockToStructuredBuffer() 114 const TType &fieldType = *interfaceBlock.fields()[0]->type(); in CanTranslateUniformBlockToStructuredBuffer() 152 static bool IsInterfaceBlockWithLargeArrayField(const TInterfaceBlock &interfaceBlock) in IsInterfaceBlockWithLargeArrayField() argument 154 const TFieldList &fields = interfaceBlock.fields(); in IsInterfaceBlockWithLargeArrayField() 176 const TInterfaceBlock *interfaceBlock = variableType.getInterfaceBlock(); in visitSymbol() local 177 if (interfaceBlock) in visitSymbol() 179 if (CanTranslateUniformBlockToStructuredBuffer(*interfaceBlock)) in visitSymbol() 181 if (mUniformBlockMayTranslation.count(interfaceBlock->uniqueId().get()) == 0) in visitSymbol() [all …]
|
/external/angle/src/compiler/translator/hlsl/ |
D | ResourcesHLSL.cpp | 71 static TString InterfaceBlockStructName(const TInterfaceBlock &interfaceBlock) in InterfaceBlockStructName() argument 73 return DecoratePrivate(interfaceBlock.name()) + "_type"; in InterfaceBlockStructName() 720 const TInterfaceBlock &interfaceBlock = *blockReference.second->block; in uniformBlocksHeader() local 724 interfaceBlocks += uniformBlockStructString(interfaceBlock); in uniformBlocksHeader() 729 if (uniformBlockOptimizedMap.count(interfaceBlock.uniqueId().get()) != 0) in uniformBlocksHeader() 739 interfaceBlock, instanceVariable, structuredBufferRegister + arrayIndex, in uniformBlocksHeader() 747 interfaceBlock, instanceVariable, structuredBufferRegister, GL_INVALID_INDEX); in uniformBlocksHeader() 750 mUniformBlockRegisterMap[interfaceBlock.name().data()] = structuredBufferRegister; in uniformBlocksHeader() 751 mUniformBlockUseStructuredBufferMap[interfaceBlock.name().data()] = true; in uniformBlocksHeader() 756 mUniformBlockRegisterMap[interfaceBlock.name().data()] = activeRegister; in uniformBlocksHeader() [all …]
|
D | ShaderStorageBlockOutputHLSL.cpp | 82 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in GetBlockLayoutInfo() local 83 ASSERT(interfaceBlock); in GetBlockLayoutInfo() 84 *storage = interfaceBlock->blockStorage(); in GetBlockLayoutInfo() 126 const TField *GetFieldMemberInShaderStorageBlock(const TInterfaceBlock *interfaceBlock, in GetFieldMemberInShaderStorageBlock() argument 129 for (const TField *field : interfaceBlock->fields()) in GetFieldMemberInShaderStorageBlock() 274 void GetShaderStorageBlockMembersInfo(const TInterfaceBlock *interfaceBlock, in GetShaderStorageBlockMembersInfo() argument 279 const InterfaceBlock *block = FindInterfaceBlock(interfaceBlock, shaderStorageBlocks); in GetShaderStorageBlockMembersInfo() 286 const TField *field = interfaceBlock->fields()[index]; in GetShaderStorageBlockMembersInfo() 291 BlockInfoVisitor visitor("", interfaceBlock->blockStorage(), shaderVarToFieldMap, blockInfoOut); in GetShaderStorageBlockMembersInfo() 438 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in collectShaderStorageBlocks() local [all …]
|
D | ResourcesHLSL.h | 77 TString uniformBlockString(const TInterfaceBlock &interfaceBlock, 81 TString uniformBlockWithOneLargeArrayMemberString(const TInterfaceBlock &interfaceBlock, 86 TString shaderStorageBlockString(const TInterfaceBlock &interfaceBlock, 90 TString uniformBlockMembersString(const TInterfaceBlock &interfaceBlock, 92 TString uniformBlockStructString(const TInterfaceBlock &interfaceBlock);
|
D | OutputHLSL.cpp | 80 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in IsInStd140UniformBlock() local 81 if (interfaceBlock) in IsInStd140UniformBlock() 83 return (interfaceBlock->blockStorage() == EbsStd140); in IsInStd140UniformBlock() 578 const TInterfaceBlock *interfaceBlock = in generateStructMapping() local 584 if (mReferencedUniformBlocks.count(interfaceBlock->uniqueId().get()) == 0) in generateStructMapping() 1356 const TInterfaceBlock *interfaceBlock = variableType.getInterfaceBlock(); in visitSymbol() local 1358 if (interfaceBlock) in visitSymbol() 1360 if (mReferencedUniformBlocks.count(interfaceBlock->uniqueId().get()) == 0) in visitSymbol() 1367 mReferencedUniformBlocks[interfaceBlock->uniqueId().get()] = in visitSymbol() 1368 new TReferencedBlock(interfaceBlock, instanceVariable); in visitSymbol() [all …]
|
/external/angle/src/tests/compiler_tests/ |
D | CollectVariables_test.cpp | 339 const InterfaceBlock &interfaceBlock = interfaceBlocks[0]; in TEST_F() local 341 EXPECT_EQ(0u, interfaceBlock.arraySize); in TEST_F() 342 EXPECT_EQ(BLOCKLAYOUT_SHARED, interfaceBlock.layout); in TEST_F() 343 EXPECT_EQ("b", interfaceBlock.name); in TEST_F() 344 EXPECT_TRUE(interfaceBlock.staticUse); in TEST_F() 345 EXPECT_TRUE(interfaceBlock.active); in TEST_F() 347 ASSERT_EQ(1u, interfaceBlock.fields.size()); in TEST_F() 349 const ShaderVariable &field = interfaceBlock.fields[0]; in TEST_F() 376 const InterfaceBlock &interfaceBlock = interfaceBlocks[0]; in TEST_F() local 378 EXPECT_EQ(0u, interfaceBlock.arraySize); in TEST_F() [all …]
|
/external/angle/src/compiler/translator/ |
D | CollectVariables.cpp | 88 const TInterfaceBlock *interfaceBlock, in FindVariableInInterfaceBlock() argument 91 ASSERT(interfaceBlock); in FindVariableInInterfaceBlock() 92 InterfaceBlock *namedBlock = FindVariable(interfaceBlock->name(), infoList); in FindVariableInInterfaceBlock() 163 InterfaceBlock *interfaceBlock) const; 423 const TInterfaceBlock *interfaceBlock = symbol->getType().getInterfaceBlock(); in visitSymbol() local 427 if (interfaceBlock) in visitSymbol() 429 var = FindShaderIOBlockVariable(interfaceBlock->name(), mInputVaryings); in visitSymbol() 438 if (interfaceBlock) in visitSymbol() 440 var = FindShaderIOBlockVariable(interfaceBlock->name(), mOutputVaryings); in visitSymbol() 532 if (interfaceBlock) in visitSymbol() [all …]
|
D | ValidateTypeSizeLimitations.cpp | 146 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in setFieldOrVariableProperties() local 168 else if (interfaceBlock && isShaderIOBlock) in setFieldOrVariableProperties() 171 if (interfaceBlock->symbolType() != SymbolType::Empty) in setFieldOrVariableProperties() 173 variableOut->structOrBlockName = interfaceBlock->name().data(); in setFieldOrVariableProperties() 175 const TFieldList &fields = interfaceBlock->fields(); in setFieldOrVariableProperties()
|
D | ValidateAST.cpp | 577 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in visitVariableNeedingDeclaration() local 578 const TFieldList &fieldList = interfaceBlock->fields(); in visitVariableNeedingDeclaration() 581 if (mNamelessInterfaceBlocks.count(interfaceBlock) == 0) in visitVariableNeedingDeclaration() 720 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in getStructOrInterfaceBlock() local 722 ASSERT(structure != nullptr || interfaceBlock != nullptr); in getStructOrInterfaceBlock() 731 else if (interfaceBlock != nullptr) in getStructOrInterfaceBlock() 733 structOrBlock = interfaceBlock; in getStructOrInterfaceBlock() 734 *typeNameOut = interfaceBlock->name(); in getStructOrInterfaceBlock() 1154 const TInterfaceBlock *interfaceBlock = variable->getType().getInterfaceBlock(); in visitDeclaration() local 1156 if (variable->symbolType() == SymbolType::Empty && interfaceBlock != nullptr) in visitDeclaration() [all …]
|
D | OutputTree.cpp | 284 const TInterfaceBlock *interfaceBlock = node->getLeft()->getType().getInterfaceBlock(); in visitBinary() local 285 ASSERT(structure || interfaceBlock); in visitBinary() 287 const TFieldList &fields = structure ? structure->fields() : interfaceBlock->fields(); in visitBinary()
|
/external/angle/src/compiler/translator/tree_ops/msl/ |
D | ReduceInterfaceBlocks.cpp | 45 if (const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock()) in visitDeclarationPre() local 51 *new TStructure(&mSymbolTable, interfaceBlock->name(), in visitDeclarationPre() 52 &interfaceBlock->fields(), interfaceBlock->symbolType()); in visitDeclarationPre() 56 mSymbolTable, structure, mIdGen.createNewName(interfaceBlock->name()), in visitDeclarationPre() 58 mLiftedMap[interfaceBlock] = &instanceVar; in visitDeclarationPre() 70 *new TStructure(&mSymbolTable, interfaceBlock->name(), in visitDeclarationPre() 71 &interfaceBlock->fields(), interfaceBlock->symbolType()); in visitDeclarationPre()
|
/external/angle/src/libANGLE/renderer/d3d/ |
D | ShaderD3D.cpp | 353 for (const sh::InterfaceBlock &interfaceBlock : mState.getUniformBlocks()) in compile() local 355 if (interfaceBlock.active) in compile() 359 sh::GetUniformBlockRegister(compilerHandle, interfaceBlock.name, &index); in compile() 362 sh::ShouldUniformBlockUseStructuredBuffer(compilerHandle, interfaceBlock.name); in compile() 364 mUniformBlockRegisterMap[interfaceBlock.name] = index; in compile() 365 mUniformBlockUseStructuredBufferMap[interfaceBlock.name] = useStructuredBuffer; in compile() 372 for (const sh::InterfaceBlock &interfaceBlock : mState.getShaderStorageBlocks()) in compile() local 374 if (interfaceBlock.active) in compile() 378 sh::GetShaderStorageBlockRegister(compilerHandle, interfaceBlock.name, &index); in compile() 381 mShaderStorageBlockRegisterMap[interfaceBlock.name] = index; in compile()
|
/external/angle/src/libANGLE/ |
D | ProgramLinkedResources.cpp | 580 size_t getBlockInfo(const sh::InterfaceBlock &interfaceBlock); 591 for (const sh::InterfaceBlock &interfaceBlock : interfaceBlocks) in getShaderBlockInfo() local 593 if (!IsActiveInterfaceBlock(interfaceBlock)) in getShaderBlockInfo() 596 if (mBlockSizes.count(interfaceBlock.name) > 0) in getShaderBlockInfo() 599 size_t dataSize = getBlockInfo(interfaceBlock); in getShaderBlockInfo() 600 mBlockSizes[interfaceBlock.name] = dataSize; in getShaderBlockInfo() 604 size_t InterfaceBlockInfo::getBlockInfo(const sh::InterfaceBlock &interfaceBlock) in getBlockInfo() argument 606 ASSERT(IsActiveInterfaceBlock(interfaceBlock)); in getBlockInfo() 614 if (interfaceBlock.layout == sh::BLOCKLAYOUT_STD140) in getBlockInfo() 618 else if (interfaceBlock.layout == sh::BLOCKLAYOUT_STD430) in getBlockInfo() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fProgramInterfaceDefinitionUtil.cpp | 376 static void writeInterfaceBlock (std::ostringstream& buf, const glu::InterfaceBlock& interfaceBlock) in writeInterfaceBlock() argument 378 buf << interfaceBlock.layout; in writeInterfaceBlock() 380 if (interfaceBlock.layout != glu::Layout()) in writeInterfaceBlock() 383 buf << glu::getStorageName(interfaceBlock.storage) << " " << interfaceBlock.interfaceName << "\n" in writeInterfaceBlock() 386 for (int ndx = 0; ndx < (int)interfaceBlock.variables.size(); ++ndx) in writeInterfaceBlock() 387 buf << glu::indent(1) << interfaceBlock.variables[ndx] << ";\n"; in writeInterfaceBlock() 391 if (!interfaceBlock.instanceName.empty()) in writeInterfaceBlock() 392 buf << " " << interfaceBlock.instanceName; in writeInterfaceBlock() 394 for (int dimensionNdx = 0; dimensionNdx < (int)interfaceBlock.dimensions.size(); ++dimensionNdx) in writeInterfaceBlock() 395 buf << "[" << interfaceBlock.dimensions[dimensionNdx] << "]"; in writeInterfaceBlock() [all …]
|
/external/angle/src/compiler/translator/tree_ops/ |
D | ForcePrecisionQualifier.cpp | 72 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in visitDeclaration() local 73 const TFieldList &fields = interfaceBlock->fields(); in visitDeclaration()
|
D | InitializeVariables.cpp | 64 const TInterfaceBlock &interfaceBlock = *type.getInterfaceBlock(); in AddZeroInitSequence() local 65 const TFieldList &fieldList = interfaceBlock.fields(); in AddZeroInitSequence()
|
/external/angle/src/common/ |
D | CompiledShaderState.cpp | 312 for (const sh::InterfaceBlock &interfaceBlock : uniformBlocks) in serialize() local 314 WriteShInterfaceBlock(&stream, interfaceBlock); in serialize() 318 for (const sh::InterfaceBlock &interfaceBlock : shaderStorageBlocks) in serialize() local 320 WriteShInterfaceBlock(&stream, interfaceBlock); in serialize() 487 for (sh::InterfaceBlock &interfaceBlock : uniformBlocks) in deserialize() 489 LoadShInterfaceBlock(&stream, &interfaceBlock); in deserialize() 494 for (sh::InterfaceBlock &interfaceBlock : shaderStorageBlocks) in deserialize() 496 LoadShInterfaceBlock(&stream, &interfaceBlock); in deserialize()
|
/external/skia/include/sksl/ |
D | DSLType.h | 189 bool interfaceBlock, 263 bool interfaceBlock, 285 bool interfaceBlock,
|
D | DSLModifiers.h | 60 bool interfaceBlock,
|
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/ |
D | vktTransformFeedbackFuzzLayoutCase.cpp | 529 int computeInterfaceBlockAlignment(const InterfaceBlock& interfaceBlock) in computeInterfaceBlockAlignment() argument 533 …for (InterfaceBlock::ConstIterator memberIter = interfaceBlock.begin(); memberIter != interfaceBlo… in computeInterfaceBlockAlignment() 698 const InterfaceBlock& interfaceBlock = shaderInterface.getInterfaceBlock(blockNdx); in computeXfbLayout() local 699 const int xfbBuffer = interfaceBlock.getXfbBuffer(); in computeXfbLayout() 711 InterfaceBlock& interfaceBlock = shaderInterface.getInterfaceBlockForModify(blockNdx); in computeXfbLayout() local 713 if (interfaceBlock.getXfbBuffer() == xfbBufferAnalyzed) in computeXfbLayout() 715 const bool hasInstanceName = interfaceBlock.hasInstanceName(); in computeXfbLayout() 716 const std::string blockPrefix = hasInstanceName ? (interfaceBlock.getBlockName() + ".") : ""; in computeXfbLayout() 717 const int numInstances = interfaceBlock.isArray() ? interfaceBlock.getArraySize() : 1; in computeXfbLayout() 721 int interfaceAlignement = computeInterfaceBlockAlignment(interfaceBlock); in computeXfbLayout() [all …]
|
/external/angle/src/compiler/translator/glsl/ |
D | OutputGLSLBase.cpp | 691 const TInterfaceBlock *interfaceBlock = in visitBinary() local 694 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary() 1233 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in declareInterfaceBlockLayout() local 1238 switch (interfaceBlock->blockStorage()) in declareInterfaceBlockLayout() 1263 if (interfaceBlock->blockBinding() >= 0) in declareInterfaceBlockLayout() 1266 out << "binding = " << interfaceBlock->blockBinding(); in declareInterfaceBlockLayout() 1312 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in declareInterfaceBlock() local 1315 out << hashName(interfaceBlock) << "{\n"; in declareInterfaceBlock() 1316 const TFieldList &fields = interfaceBlock->fields(); in declareInterfaceBlock()
|
/external/skia/src/sksl/ir/ |
D | SkSLVariable.h | 125 virtual InterfaceBlock* interfaceBlock() const { return nullptr; } in interfaceBlock() function 159 InterfaceBlock* interfaceBlock() const override { return fInterfaceBlockElement; } in interfaceBlock() function
|
/external/skia/resources/sksl/errors/ |
D | DuplicateRTAdjust.sksl | 3 } interfaceBlock;
|
/external/angle/src/libANGLE/capture/ |
D | serialize.cpp | 902 for (const sh::InterfaceBlock &interfaceBlock : interfaceBlocks) in SerializeInterfaceBlocksVector() local 905 json->addString("Name", interfaceBlock.name); in SerializeInterfaceBlocksVector() 906 json->addString("MappedName", interfaceBlock.mappedName); in SerializeInterfaceBlocksVector() 907 json->addString("InstanceName", interfaceBlock.instanceName); in SerializeInterfaceBlocksVector() 908 json->addScalar("ArraySize", interfaceBlock.arraySize); in SerializeInterfaceBlocksVector() 909 json->addCString("Layout", BlockLayoutTypeToString(interfaceBlock.layout)); in SerializeInterfaceBlocksVector() 910 json->addScalar("Binding", interfaceBlock.binding); in SerializeInterfaceBlocksVector() 911 json->addScalar("StaticUse", interfaceBlock.staticUse); in SerializeInterfaceBlocksVector() 912 json->addScalar("Active", interfaceBlock.active); in SerializeInterfaceBlocksVector() 913 json->addCString("BlockType", BlockTypeToString(interfaceBlock.blockType)); in SerializeInterfaceBlocksVector() [all …]
|
/external/angle/src/compiler/translator/tree_ops/glsl/apple/ |
D | RewriteRowMajorMatrices.cpp | 202 const TInterfaceBlock *interfaceBlock = asBinary->getLeft()->getType().getInterfaceBlock(); in IsConvertedField() local 203 ASSERT(interfaceBlock); in IsConvertedField() 210 const TField *field = interfaceBlock->fields()[fieldIndex]; in IsConvertedField() 643 const TInterfaceBlock *interfaceBlock = symbol->getType().getInterfaceBlock(); in convertNamelessInterfaceBlockField() local 657 if (iter.first->getType().getInterfaceBlock() != interfaceBlock) in convertNamelessInterfaceBlockField() 665 const TVector<TField *> fields = interfaceBlock->fields(); in convertNamelessInterfaceBlockField()
|