Home
last modified time | relevance | path

Searched refs:interfaceBlock (Results 1 – 25 of 36) sorted by relevance

12

/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DRecordUniformBlocksWithLargeArrayMember.cpp108 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 …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DResourcesHLSL.cpp71 static TString InterfaceBlockStructName(const TInterfaceBlock &interfaceBlock) in InterfaceBlockStructName() argument
73 return DecoratePrivate(interfaceBlock.name()) + "_type"; in InterfaceBlockStructName()
706 const TInterfaceBlock &interfaceBlock = *blockReference.second->block; in uniformBlocksHeader() local
710 interfaceBlocks += uniformBlockStructString(interfaceBlock); in uniformBlocksHeader()
715 if (uniformBlockOptimizedMap.count(interfaceBlock.uniqueId().get()) != 0) in uniformBlocksHeader()
725 interfaceBlock, instanceVariable, structuredBufferRegister + arrayIndex, in uniformBlocksHeader()
733 interfaceBlock, instanceVariable, structuredBufferRegister, GL_INVALID_INDEX); in uniformBlocksHeader()
736 mUniformBlockRegisterMap[interfaceBlock.name().data()] = structuredBufferRegister; in uniformBlocksHeader()
737 mUniformBlockUseStructuredBufferMap[interfaceBlock.name().data()] = true; in uniformBlocksHeader()
742 mUniformBlockRegisterMap[interfaceBlock.name().data()] = activeRegister; in uniformBlocksHeader()
[all …]
DCollectVariables.cpp86 const TInterfaceBlock *interfaceBlock, in FindVariableInInterfaceBlock() argument
89 ASSERT(interfaceBlock); in FindVariableInInterfaceBlock()
90 InterfaceBlock *namedBlock = FindVariable(interfaceBlock->name(), infoList); in FindVariableInInterfaceBlock()
160 InterfaceBlock *interfaceBlock) const;
418 const TInterfaceBlock *interfaceBlock = symbol->getType().getInterfaceBlock(); in visitSymbol() local
422 if (interfaceBlock) in visitSymbol()
424 var = FindShaderIOBlockVariable(interfaceBlock->name(), mInputVaryings); in visitSymbol()
433 if (interfaceBlock) in visitSymbol()
435 var = FindShaderIOBlockVariable(interfaceBlock->name(), mOutputVaryings); in visitSymbol()
527 if (interfaceBlock) in visitSymbol()
[all …]
DShaderStorageBlockOutputHLSL.cpp79 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in GetBlockLayoutInfo() local
80 ASSERT(interfaceBlock); in GetBlockLayoutInfo()
81 *storage = interfaceBlock->blockStorage(); in GetBlockLayoutInfo()
123 const TField *GetFieldMemberInShaderStorageBlock(const TInterfaceBlock *interfaceBlock, in GetFieldMemberInShaderStorageBlock() argument
126 for (const TField *field : interfaceBlock->fields()) in GetFieldMemberInShaderStorageBlock()
271 void GetShaderStorageBlockMembersInfo(const TInterfaceBlock *interfaceBlock, in GetShaderStorageBlockMembersInfo() argument
276 const InterfaceBlock *block = FindInterfaceBlock(interfaceBlock, shaderStorageBlocks); in GetShaderStorageBlockMembersInfo()
283 const TField *field = interfaceBlock->fields()[index]; in GetShaderStorageBlockMembersInfo()
288 BlockInfoVisitor visitor("", interfaceBlock->blockStorage(), shaderVarToFieldMap, blockInfoOut); in GetShaderStorageBlockMembersInfo()
435 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in collectShaderStorageBlocks() local
[all …]
DResourcesHLSL.h74 TString uniformBlockString(const TInterfaceBlock &interfaceBlock,
78 TString uniformBlockWithOneLargeArrayMemberString(const TInterfaceBlock &interfaceBlock,
83 TString shaderStorageBlockString(const TInterfaceBlock &interfaceBlock,
87 TString uniformBlockMembersString(const TInterfaceBlock &interfaceBlock,
89 TString uniformBlockStructString(const TInterfaceBlock &interfaceBlock);
DValidateTypeSizeLimitations.cpp112 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in setFieldOrVariableProperties() local
134 else if (interfaceBlock && isShaderIOBlock) in setFieldOrVariableProperties()
137 if (interfaceBlock->symbolType() != SymbolType::Empty) in setFieldOrVariableProperties()
139 variableOut->structOrBlockName = interfaceBlock->name().data(); in setFieldOrVariableProperties()
141 const TFieldList &fields = interfaceBlock->fields(); in setFieldOrVariableProperties()
DValidateAST.cpp414 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in visitVariableNeedingDeclaration() local
415 const TFieldList &fieldList = interfaceBlock->fields(); in visitVariableNeedingDeclaration()
418 if (mNamelessInterfaceBlocks.count(interfaceBlock) == 0) in visitVariableNeedingDeclaration()
555 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in getStructOrInterfaceBlock() local
557 ASSERT(structure != nullptr || interfaceBlock != nullptr); in getStructOrInterfaceBlock()
566 else if (interfaceBlock != nullptr) in getStructOrInterfaceBlock()
568 structOrBlock = interfaceBlock; in getStructOrInterfaceBlock()
569 *typeNameOut = interfaceBlock->name(); in getStructOrInterfaceBlock()
907 const TInterfaceBlock *interfaceBlock = variable->getType().getInterfaceBlock(); in visitDeclaration() local
909 if (variable->symbolType() == SymbolType::Empty && interfaceBlock != nullptr) in visitDeclaration()
[all …]
DOutputVulkanGLSL.cpp63 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in writeLayoutQualifier() local
64 TLayoutBlockStorage storage = interfaceBlock->blockStorage(); in writeLayoutQualifier()
77 if (interfaceBlock->blockStorage() != EbsUnspecified) in writeLayoutQualifier()
DOutputHLSL.cpp79 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in IsInStd140UniformBlock() local
80 if (interfaceBlock) in IsInStd140UniformBlock()
82 return (interfaceBlock->blockStorage() == EbsStd140); in IsInStd140UniformBlock()
551 const TInterfaceBlock *interfaceBlock = in generateStructMapping() local
557 if (mReferencedUniformBlocks.count(interfaceBlock->uniqueId().get()) == 0) in generateStructMapping()
1204 const TInterfaceBlock *interfaceBlock = variableType.getInterfaceBlock(); in visitSymbol() local
1206 if (interfaceBlock) in visitSymbol()
1208 if (mReferencedUniformBlocks.count(interfaceBlock->uniqueId().get()) == 0) in visitSymbol()
1215 mReferencedUniformBlocks[interfaceBlock->uniqueId().get()] = in visitSymbol()
1216 new TReferencedBlock(interfaceBlock, instanceVariable); in visitSymbol()
[all …]
DOutputGLSLBase.cpp648 const TInterfaceBlock *interfaceBlock = in visitBinary() local
651 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary()
1190 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in declareInterfaceBlockLayout() local
1195 switch (interfaceBlock->blockStorage()) in declareInterfaceBlockLayout()
1220 if (interfaceBlock->blockBinding() >= 0) in declareInterfaceBlockLayout()
1223 out << "binding = " << interfaceBlock->blockBinding(); in declareInterfaceBlockLayout()
1257 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in declareInterfaceBlock() local
1260 out << hashName(interfaceBlock) << "{\n"; in declareInterfaceBlock()
1261 const TFieldList &fields = interfaceBlock->fields(); in declareInterfaceBlock()
DOutputTree.cpp284 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()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DCollectVariables_test.cpp333 const InterfaceBlock &interfaceBlock = interfaceBlocks[0]; in TEST_F() local
335 EXPECT_EQ(0u, interfaceBlock.arraySize); in TEST_F()
336 EXPECT_EQ(BLOCKLAYOUT_SHARED, interfaceBlock.layout); in TEST_F()
337 EXPECT_EQ("b", interfaceBlock.name); in TEST_F()
338 EXPECT_TRUE(interfaceBlock.staticUse); in TEST_F()
339 EXPECT_TRUE(interfaceBlock.active); in TEST_F()
341 ASSERT_EQ(1u, interfaceBlock.fields.size()); in TEST_F()
343 const ShaderVariable &field = interfaceBlock.fields[0]; in TEST_F()
370 const InterfaceBlock &interfaceBlock = interfaceBlocks[0]; in TEST_F() local
372 EXPECT_EQ(0u, interfaceBlock.arraySize); in TEST_F()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DReduceInterfaceBlocks.cpp45 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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DShaderD3D.cpp329 for (const sh::InterfaceBlock &interfaceBlock : mState.getUniformBlocks()) in compile() local
331 if (interfaceBlock.active) in compile()
335 sh::GetUniformBlockRegister(compilerHandle, interfaceBlock.name, &index); in compile()
338 sh::ShouldUniformBlockUseStructuredBuffer(compilerHandle, interfaceBlock.name); in compile()
340 mUniformBlockRegisterMap[interfaceBlock.name] = index; in compile()
341 mUniformBlockUseStructuredBufferMap[interfaceBlock.name] = useStructuredBuffer; in compile()
348 for (const sh::InterfaceBlock &interfaceBlock : mState.getShaderStorageBlocks()) in compile() local
350 if (interfaceBlock.active) in compile()
354 sh::GetShaderStorageBlockRegister(compilerHandle, interfaceBlock.name, &index); in compile()
357 mShaderStorageBlockRegisterMap[interfaceBlock.name] = index; in compile()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DTypes.h246 …rray(false), arraySize(0), maxArraySize(0), arrayInformationType(0), interfaceBlock(0), layoutQual… in POOL_ALLOCATOR_NEW_DELETE()
253 …), array(a), arraySize(0), maxArraySize(0), arrayInformationType(0), interfaceBlock(0), layoutQual… in type()
260 …rray(false), arraySize(0), maxArraySize(0), arrayInformationType(0), interfaceBlock(0), layoutQual… in type()
269 interfaceBlock(interfaceBlockIn), layoutQualifier(layoutQualifierIn), structure(0), mangled(0) in TType()
326 return interfaceBlock->objectSize(); in getElementSize()
344 const TFieldList& fields = isInterfaceBlock() ? interfaceBlock->fields() : structure->fields(); in samplerRegisterCount()
362 const TFieldList& fields = isInterfaceBlock() ? interfaceBlock->fields() : structure->fields(); in elementRegisterCount()
384 if(interfaceBlock && !isInterfaceBlock()) in blockRegisterCount()
387 const TFieldList& fieldList = interfaceBlock->fields(); in blockRegisterCount()
441 TInterfaceBlock *getInterfaceBlock() const { return interfaceBlock; } in getInterfaceBlock()
[all …]
DSymbolTable.cpp39 …arrayInformationType(0), interfaceBlock(0), layoutQualifier(p.layoutQualifier), structure(0), mang… in TType()
80 case EbtInterfaceBlock: mangledName += interfaceBlock->mangledName(); break; in buildMangledName()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DProgramLinkedResources.cpp582 size_t getBlockInfo(const sh::InterfaceBlock &interfaceBlock);
593 for (const sh::InterfaceBlock &interfaceBlock : interfaceBlocks) in getShaderBlockInfo() local
595 if (!IsActiveInterfaceBlock(interfaceBlock)) in getShaderBlockInfo()
598 if (mBlockSizes.count(interfaceBlock.name) > 0) in getShaderBlockInfo()
601 size_t dataSize = getBlockInfo(interfaceBlock); in getShaderBlockInfo()
602 mBlockSizes[interfaceBlock.name] = dataSize; in getShaderBlockInfo()
606 size_t InterfaceBlockInfo::getBlockInfo(const sh::InterfaceBlock &interfaceBlock) in getBlockInfo() argument
608 ASSERT(IsActiveInterfaceBlock(interfaceBlock)); in getBlockInfo()
616 if (interfaceBlock.layout == sh::BLOCKLAYOUT_STD140) in getBlockInfo()
620 else if (interfaceBlock.layout == sh::BLOCKLAYOUT_STD430) in getBlockInfo()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fProgramInterfaceDefinitionUtil.cpp376 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 …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DForcePrecisionQualifier.cpp72 const TInterfaceBlock *interfaceBlock = type.getInterfaceBlock(); in visitDeclaration() local
73 const TFieldList &fields = interfaceBlock->fields(); in visitDeclaration()
DInitializeVariables.cpp63 const TInterfaceBlock &interfaceBlock = *type.getInterfaceBlock(); in AddZeroInitSequence() local
64 const TFieldList &fieldList = interfaceBlock.fields(); in AddZeroInitSequence()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp529 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 …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
Dframe_capture_utils.cpp872 for (const sh::InterfaceBlock &interfaceBlock : interfaceBlocks) in SerializeInterfaceBlocksVector() local
875 json->addString("Name", interfaceBlock.name); in SerializeInterfaceBlocksVector()
876 json->addString("MappedName", interfaceBlock.mappedName); in SerializeInterfaceBlocksVector()
877 json->addString("InstanceName", interfaceBlock.instanceName); in SerializeInterfaceBlocksVector()
878 json->addScalar("ArraySize", interfaceBlock.arraySize); in SerializeInterfaceBlocksVector()
879 json->addCString("Layout", BlockLayoutTypeToString(interfaceBlock.layout)); in SerializeInterfaceBlocksVector()
880 json->addScalar("Binding", interfaceBlock.binding); in SerializeInterfaceBlocksVector()
881 json->addScalar("StaticUse", interfaceBlock.staticUse); in SerializeInterfaceBlocksVector()
882 json->addScalar("Active", interfaceBlock.active); in SerializeInterfaceBlocksVector()
883 json->addCString("BlockType", BlockTypeToString(interfaceBlock.blockType)); in SerializeInterfaceBlocksVector()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DRewriteRowMajorMatrices.cpp202 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()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
DDeclarePerVertexBlocks.cpp338 TInterfaceBlock *interfaceBlock = in declarePerVertex() local
343 new TType(interfaceBlock, qualifier, TLayoutQualifier::Create()); in declarePerVertex()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermNode_util.cpp282 TInterfaceBlock *interfaceBlock = new TInterfaceBlock( in DeclareInterfaceBlock() local
286 TType *interfaceBlockType = new TType(interfaceBlock, qualifier, layoutQualifier); in DeclareInterfaceBlock()

12