Lines Matching refs:getDefaultBlock

141 	for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx)  in shaderContainsIOBlocks()
143 const glu::Storage storage = shader->getDefaultBlock().interfaceBlocks[ndx].storage; in shaderContainsIOBlocks()
745 for (int varNdx = 0; varNdx < (int)shader->getDefaultBlock().variables.size(); ++varNdx) in traverseShaderVariablePath()
746 if (filter.matchesFilter(shader->getDefaultBlock().variables[varNdx])) in traverseShaderVariablePath()
747 if (traverseVariablePath(typePath, path, shader->getDefaultBlock().variables[varNdx])) in traverseShaderVariablePath()
754 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in traverseShaderVariablePath()
756 if (!filter.matchesFilter(shader->getDefaultBlock().interfaceBlocks[interfaceNdx])) in traverseShaderVariablePath()
759 if (shader->getDefaultBlock().interfaceBlocks[interfaceNdx].interfaceName == blockName) in traverseShaderVariablePath()
766 …for (int varNdx = 0; varNdx < (int)shader->getDefaultBlock().interfaceBlocks[interfaceNdx].variabl… in traverseShaderVariablePath()
768 …if (shader->getDefaultBlock().interfaceBlocks[interfaceNdx].variables[varNdx].name == blockMemeber… in traverseShaderVariablePath()
770 …typePath.push_back(VariablePathComponent(&shader->getDefaultBlock().interfaceBlocks[interfaceNdx])… in traverseShaderVariablePath()
771 …return traverseVariablePath(typePath, blockMemberPath, shader->getDefaultBlock().interfaceBlocks[i… in traverseShaderVariablePath()
778 else if (shader->getDefaultBlock().interfaceBlocks[interfaceNdx].instanceName.empty()) in traverseShaderVariablePath()
783 …for (int varNdx = 0; varNdx < (int)shader->getDefaultBlock().interfaceBlocks[interfaceNdx].variabl… in traverseShaderVariablePath()
785 …if (shader->getDefaultBlock().interfaceBlocks[interfaceNdx].variables[varNdx].name == blockMemeber… in traverseShaderVariablePath()
787 …typePath.push_back(VariablePathComponent(&shader->getDefaultBlock().interfaceBlocks[interfaceNdx])… in traverseShaderVariablePath()
788 …return traverseVariablePath(typePath, path, shader->getDefaultBlock().interfaceBlocks[interfaceNdx… in traverseShaderVariablePath()
846 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx) in getNumShaderBlocks()
848 if (shader->getDefaultBlock().interfaceBlocks[ndx].storage == storage) in getNumShaderBlocks()
852 …for (int dimensionNdx = 0; dimensionNdx < (int)shader->getDefaultBlock().interfaceBlocks[ndx].dime… in getNumShaderBlocks()
853 numInstances *= shader->getDefaultBlock().interfaceBlocks[ndx].dimensions[dimensionNdx]; in getNumShaderBlocks()
866 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in getNumAtomicCounterBuffers()
868 …if (containsSubType(shader->getDefaultBlock().variables[ndx].varType, glu::TYPE_UINT_ATOMIC_COUNTE… in getNumAtomicCounterBuffers()
870 DE_ASSERT(shader->getDefaultBlock().variables[ndx].layout.binding != -1); in getNumAtomicCounterBuffers()
871 buffers.insert(shader->getDefaultBlock().variables[ndx].layout.binding); in getNumAtomicCounterBuffers()
910 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx) in accumulateShader()
912 if (ibFilter(shader->getDefaultBlock().interfaceBlocks[ndx])) in accumulateShader()
916 …for (int dimensionNdx = 0; dimensionNdx < (int)shader->getDefaultBlock().interfaceBlocks[ndx].dime… in accumulateShader()
917 numInstances *= shader->getDefaultBlock().interfaceBlocks[ndx].dimensions[dimensionNdx]; in accumulateShader()
919 …for (int varNdx = 0; varNdx < (int)shader->getDefaultBlock().interfaceBlocks[ndx].variables.size()… in accumulateShader()
920 …retVal += numInstances * accumulateComplexType(shader->getDefaultBlock().interfaceBlocks[ndx].vari… in accumulateShader()
924 for (int varNdx = 0; varNdx < (int)shader->getDefaultBlock().variables.size(); ++varNdx) in accumulateShader()
925 if (vdFilter(shader->getDefaultBlock().variables[varNdx])) in accumulateShader()
926 retVal += accumulateComplexType(shader->getDefaultBlock().variables[varNdx].varType, dMap); in accumulateShader()
1042 for (int varNdx = 0; varNdx < (int)shader->getDefaultBlock().variables.size(); ++varNdx) in getNumDefaultBlockComponents()
1043 if (shader->getDefaultBlock().variables[varNdx].storage == storage) in getNumDefaultBlockComponents()
1044 …retVal += accumulateComplexType(shader->getDefaultBlock().variables[varNdx].varType, getNumDataTyp… in getNumDefaultBlockComponents()
1053 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx) in getMaxBufferBinding()
1055 if (shader->getDefaultBlock().interfaceBlocks[ndx].storage == storage) in getMaxBufferBinding()
1057 …onst int binding = (shader->getDefaultBlock().interfaceBlocks[ndx].layout.binding == -1) ? (0) :… in getMaxBufferBinding()
1060 …for (int dimensionNdx = 0; dimensionNdx < (int)shader->getDefaultBlock().interfaceBlocks[ndx].dime… in getMaxBufferBinding()
1061 numInstances *= shader->getDefaultBlock().interfaceBlocks[ndx].dimensions[dimensionNdx]; in getMaxBufferBinding()
1124 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx) in getBufferMaxSize()
1125 if (shader->getDefaultBlock().interfaceBlocks[ndx].storage == storage) in getBufferMaxSize()
1126 …ize = de::max(maxSize, getBufferSize(shader->getDefaultBlock().interfaceBlocks[ndx], shader->getDe… in getBufferMaxSize()
1135 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in getAtomicCounterMaxBinding()
1137 …if (containsSubType(shader->getDefaultBlock().variables[ndx].varType, glu::TYPE_UINT_ATOMIC_COUNTE… in getAtomicCounterMaxBinding()
1139 DE_ASSERT(shader->getDefaultBlock().variables[ndx].layout.binding != -1); in getAtomicCounterMaxBinding()
1140 maxBinding = de::max(maxBinding, shader->getDefaultBlock().variables[ndx].layout.binding); in getAtomicCounterMaxBinding()
1151 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in getUniformMaxBinding()
1153 …const int binding = (shader->getDefaultBlock().variables[ndx].layout.binding == -1) ? (0) : (shad… in getUniformMaxBinding()
1154 …const int numInstances = getNumTypeInstances(shader->getDefaultBlock().variables[ndx].varType, pre… in getUniformMaxBinding()
1167 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in getAtomicCounterMaxBufferSize()
1169 …if (containsSubType(shader->getDefaultBlock().variables[ndx].varType, glu::TYPE_UINT_ATOMIC_COUNTE… in getAtomicCounterMaxBufferSize()
1171 const int bufferBinding = shader->getDefaultBlock().variables[ndx].layout.binding; in getAtomicCounterMaxBufferSize()
1172 …const int offset = (shader->getDefaultBlock().variables[ndx].layout.offset == -1) ? (0) : (shader… in getAtomicCounterMaxBufferSize()
1173 …const int size = offset + 4 * getNumTypeInstances(shader->getDefaultBlock().variables[ndx].varTy… in getAtomicCounterMaxBufferSize()
1175 DE_ASSERT(shader->getDefaultBlock().variables[ndx].layout.binding != -1); in getAtomicCounterMaxBufferSize()
1231 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in getFragmentOutputMaxLocation()
1233 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_OUT) in getFragmentOutputMaxLocation()
1236 const int outputLocation = (shader->getDefaultBlock().variables[ndx].layout.location == -1) in getFragmentOutputMaxLocation()
1238 : (shader->getDefaultBlock().variables[ndx].layout.location); in getFragmentOutputMaxLocation()
1241 DE_ASSERT(!shader->getDefaultBlock().variables[ndx].varType.isStructType()); in getFragmentOutputMaxLocation()
1243 const int locationSlotsTaken = (shader->getDefaultBlock().variables[ndx].varType.isArrayType()) in getFragmentOutputMaxLocation()
1244 ? (shader->getDefaultBlock().variables[ndx].varType.getArraySize()) in getFragmentOutputMaxLocation()
1294 …for (int variableNdx = 0; variableNdx < (int)shader->getDefaultBlock().variables.size(); ++variabl… in getProgramInterfaceResourceList()
1295 if (shader->getDefaultBlock().variables[variableNdx].storage == storage) in getProgramInterfaceResourceList()
1297 shader->getDefaultBlock().variables[variableNdx].name, in getProgramInterfaceResourceList()
1298 shader->getDefaultBlock().variables[variableNdx].varType, in getProgramInterfaceResourceList()
1301 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in getProgramInterfaceResourceList()
1303 …const glu::InterfaceBlock& interfaceBlock = shader->getDefaultBlock().interfaceBlocks[interfaceNdx… in getProgramInterfaceResourceList()
1322 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in getProgramInterfaceResourceList()
1324 …const glu::InterfaceBlock& interfaceBlock = shader->getDefaultBlock().interfaceBlocks[interfaceNdx… in getProgramInterfaceResourceList()
1366 …for (int variableNdx = 0; variableNdx < (int)shader->getDefaultBlock().variables.size(); ++variabl… in getProgramInterfaceResourceList()
1368 const glu::Storage variableStorage = shader->getDefaultBlock().variables[variableNdx].storage; in getProgramInterfaceResourceList()
1371 shader->getDefaultBlock().variables[variableNdx].name, in getProgramInterfaceResourceList()
1372 shader->getDefaultBlock().variables[variableNdx].varType, in getProgramInterfaceResourceList()
1376 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in getProgramInterfaceResourceList()
1378 …const glu::InterfaceBlock& interfaceBlock = shader->getDefaultBlock().interfaceBlocks[interfaceNdx… in getProgramInterfaceResourceList()
1499 writeStructureDefinitions(sourceBuf, shader->getDefaultBlock()); in generateProgramInterfaceProgramSources()
1503 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in generateProgramInterfaceProgramSources()
1504 sourceBuf << shader->getDefaultBlock().variables[ndx] << ";\n"; in generateProgramInterfaceProgramSources()
1506 if (!shader->getDefaultBlock().variables.empty()) in generateProgramInterfaceProgramSources()
1511 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx) in generateProgramInterfaceProgramSources()
1512 writeInterfaceBlock(sourceBuf, shader->getDefaultBlock().interfaceBlocks[ndx]); in generateProgramInterfaceProgramSources()
1522 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in generateProgramInterfaceProgramSources()
1524 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_IN || in generateProgramInterfaceProgramSources()
1525 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_PATCH_IN || in generateProgramInterfaceProgramSources()
1526 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_UNIFORM) in generateProgramInterfaceProgramSources()
1530 shader->getDefaultBlock().variables[ndx].name, in generateProgramInterfaceProgramSources()
1532 shader->getDefaultBlock().variables[ndx].storage, in generateProgramInterfaceProgramSources()
1534 shader->getDefaultBlock().variables[ndx].varType); in generateProgramInterfaceProgramSources()
1539 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in generateProgramInterfaceProgramSources()
1541 const glu::InterfaceBlock& interface = shader->getDefaultBlock().interfaceBlocks[interfaceNdx]; in generateProgramInterfaceProgramSources()
1598 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in generateProgramInterfaceProgramSources()
1600 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_OUT || in generateProgramInterfaceProgramSources()
1601 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_PATCH_OUT) in generateProgramInterfaceProgramSources()
1605 shader->getDefaultBlock().variables[ndx].name, in generateProgramInterfaceProgramSources()
1607 shader->getDefaultBlock().variables[ndx].storage, in generateProgramInterfaceProgramSources()
1609 shader->getDefaultBlock().variables[ndx].varType); in generateProgramInterfaceProgramSources()
1614 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in generateProgramInterfaceProgramSources()
1616 const glu::InterfaceBlock& interface = shader->getDefaultBlock().interfaceBlocks[interfaceNdx]; in generateProgramInterfaceProgramSources()