Lines Matching refs:shader
93 bool VariableSearchFilter::matchesFilter (const ProgramInterfaceDefinition::Shader* shader) const in matchesFilter()
95 DE_ASSERT(shader->getType() < glu::SHADERTYPE_LAST); in matchesFilter()
96 return (m_shaderTypeBits & (1u << shader->getType())) != 0; in matchesFilter()
139 bool shaderContainsIOBlocks (const ProgramInterfaceDefinition::Shader* shader) in shaderContainsIOBlocks() argument
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()
219 static std::string getShaderExtensionDeclarations (const ProgramInterfaceDefinition::Shader* shader) in getShaderExtensionDeclarations() argument
224 if (shader->getType() == glu::SHADERTYPE_GEOMETRY) in getShaderExtensionDeclarations()
228 else if (shader->getType() == glu::SHADERTYPE_TESSELLATION_CONTROL || in getShaderExtensionDeclarations()
229 shader->getType() == glu::SHADERTYPE_TESSELLATION_EVALUATION) in getShaderExtensionDeclarations()
234 if (shaderContainsIOBlocks(shader)) in getShaderExtensionDeclarations()
742 …iablePathComponent>& typePath, const ProgramInterfaceDefinition::Shader* shader, const std::string… in traverseShaderVariablePath() argument
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()
804 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in traverseProgramVariablePath() local
806 if (filter.matchesFilter(shader)) in traverseProgramVariablePath()
810 if (traverseShaderVariablePath(typePath, shader, path, filter)) in traverseProgramVariablePath()
842 static int getNumShaderBlocks (const ProgramInterfaceDefinition::Shader* shader, glu::Storage stora… in getNumShaderBlocks() argument
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()
862 static int getNumAtomicCounterBuffers (const ProgramInterfaceDefinition::Shader* shader) in getNumAtomicCounterBuffers() argument
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()
903 static int accumulateShader (const ProgramInterfaceDefinition::Shader* shader, in accumulateShader() argument
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()
993 static int getNumTypeInstances (const ProgramInterfaceDefinition::Shader* shader, glu::Storage stor… in getNumTypeInstances() argument
995 …return accumulateShader(shader, InterfaceBlockStorageFilter(storage), VariableDeclarationStorageFi… in getNumTypeInstances()
998 static int getNumTypeInstances (const ProgramInterfaceDefinition::Shader* shader, glu::Storage stor… in getNumTypeInstances() argument
1000 return getNumTypeInstances(shader, storage, dummyTrueConstantTypeFilter); in getNumTypeInstances()
1003 static int accumulateShaderStorage (const ProgramInterfaceDefinition::Shader* shader, glu::Storage … in accumulateShaderStorage() argument
1005 …return accumulateShader(shader, InterfaceBlockStorageFilter(storage), VariableDeclarationStorageFi… in accumulateShaderStorage()
1028 static int getNumComponents (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage) in getNumComponents() argument
1030 return accumulateShaderStorage(shader, storage, getNumDataTypeComponents); in getNumComponents()
1033 static int getNumVectors (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage) in getNumVectors() argument
1035 return accumulateShaderStorage(shader, storage, getNumDataTypeVectors); in getNumVectors()
1038 static int getNumDefaultBlockComponents (const ProgramInterfaceDefinition::Shader* shader, glu::Sto… in getNumDefaultBlockComponents() argument
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()
1049 static int getMaxBufferBinding (const ProgramInterfaceDefinition::Shader* shader, glu::Storage stor… in getMaxBufferBinding() argument
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 …const 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()
1120 static int getBufferMaxSize (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage) in getBufferMaxSize() argument
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 …maxSize = de::max(maxSize, getBufferSize(shader->getDefaultBlock().interfaceBlocks[ndx], shader->g… in getBufferMaxSize()
1131 static int getAtomicCounterMaxBinding (const ProgramInterfaceDefinition::Shader* shader) in getAtomicCounterMaxBinding() argument
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()
1147 static int getUniformMaxBinding (const ProgramInterfaceDefinition::Shader* shader, bool (*predicate… in getUniformMaxBinding() argument
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()
1162 static int getAtomicCounterMaxBufferSize (const ProgramInterfaceDefinition::Shader* shader) in getAtomicCounterMaxBufferSize() argument
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()
1225 static int getFragmentOutputMaxLocation (const ProgramInterfaceDefinition::Shader* shader) in getFragmentOutputMaxLocation() argument
1227 DE_ASSERT(shader->getType() == glu::SHADERTYPE_FRAGMENT); in getFragmentOutputMaxLocation()
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()
1292 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in getProgramInterfaceResourceList() local
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()
1321 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in getProgramInterfaceResourceList() local
1322 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in getProgramInterfaceResourceList()
1324 …const glu::InterfaceBlock& interfaceBlock = shader->getDefaultBlock().interfaceBlocks[interfaceNdx… in getProgramInterfaceResourceList()
1361 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in getProgramInterfaceResourceList() local
1363 if (shader->getType() != shaderType) 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()
1501 const ProgramInterfaceDefinition::Shader* shader = program->getShaders()[shaderNdx]; in generateProgramInterfaceProgramSources() local
1507 sourceBuf << glu::getGLSLVersionDeclaration(shader->getVersion()) << "\n" in generateProgramInterfaceProgramSources()
1508 << getShaderExtensionDeclarations(shader) in generateProgramInterfaceProgramSources()
1509 << getShaderTypeDeclarations(program, shader->getType()) in generateProgramInterfaceProgramSources()
1514 writeStructureDefinitions(sourceBuf, shader->getDefaultBlock()); in generateProgramInterfaceProgramSources()
1518 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in generateProgramInterfaceProgramSources()
1519 sourceBuf << shader->getDefaultBlock().variables[ndx] << ";\n"; in generateProgramInterfaceProgramSources()
1521 if (!shader->getDefaultBlock().variables.empty()) in generateProgramInterfaceProgramSources()
1526 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().interfaceBlocks.size(); ++ndx) in generateProgramInterfaceProgramSources()
1527 writeInterfaceBlock(sourceBuf, shader->getDefaultBlock().interfaceBlocks[ndx]); in generateProgramInterfaceProgramSources()
1538 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in generateProgramInterfaceProgramSources()
1540 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_IN || in generateProgramInterfaceProgramSources()
1541 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_PATCH_IN || in generateProgramInterfaceProgramSources()
1542 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_UNIFORM) in generateProgramInterfaceProgramSources()
1546 shader->getDefaultBlock().variables[ndx].name, in generateProgramInterfaceProgramSources()
1547 shader->getType(), in generateProgramInterfaceProgramSources()
1548 shader->getDefaultBlock().variables[ndx].storage, in generateProgramInterfaceProgramSources()
1550 shader->getDefaultBlock().variables[ndx].varType); in generateProgramInterfaceProgramSources()
1555 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in generateProgramInterfaceProgramSources()
1557 const glu::InterfaceBlock& interface = shader->getDefaultBlock().interfaceBlocks[interfaceNdx]; in generateProgramInterfaceProgramSources()
1563 shader->getType(), in generateProgramInterfaceProgramSources()
1571 switch (shader->getType()) in generateProgramInterfaceProgramSources()
1614 for (int ndx = 0; ndx < (int)shader->getDefaultBlock().variables.size(); ++ndx) in generateProgramInterfaceProgramSources()
1616 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_OUT || in generateProgramInterfaceProgramSources()
1617 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_PATCH_OUT) in generateProgramInterfaceProgramSources()
1621 shader->getDefaultBlock().variables[ndx].name, in generateProgramInterfaceProgramSources()
1622 shader->getType(), in generateProgramInterfaceProgramSources()
1623 shader->getDefaultBlock().variables[ndx].storage, in generateProgramInterfaceProgramSources()
1625 shader->getDefaultBlock().variables[ndx].varType); in generateProgramInterfaceProgramSources()
1630 …for (int interfaceNdx = 0; interfaceNdx < (int)shader->getDefaultBlock().interfaceBlocks.size(); +… in generateProgramInterfaceProgramSources()
1632 const glu::InterfaceBlock& interface = shader->getDefaultBlock().interfaceBlocks[interfaceNdx]; in generateProgramInterfaceProgramSources()
1635 writeInterfaceWriteExpression(usageBuf, "dummyValue", interface, shader->getType(), program); in generateProgramInterfaceProgramSources()
1642 if (shader->getType() == glu::SHADERTYPE_VERTEX) in generateProgramInterfaceProgramSources()
1644 else if (shader->getType() == glu::SHADERTYPE_GEOMETRY) in generateProgramInterfaceProgramSources()
1647 else if (shader->getType() == glu::SHADERTYPE_TESSELLATION_CONTROL) in generateProgramInterfaceProgramSources()
1655 else if (shader->getType() == glu::SHADERTYPE_TESSELLATION_EVALUATION) in generateProgramInterfaceProgramSources()
1662 if (shader->getType() == glu::SHADERTYPE_FRAGMENT) in generateProgramInterfaceProgramSources()
1664 else if (shader->getType() == glu::SHADERTYPE_COMPUTE) in generateProgramInterfaceProgramSources()
1676 if (shader->getType() == glu::SHADERTYPE_COMPUTE && !containsUserDefinedOutputs) in generateProgramInterfaceProgramSources()
1684 sources << glu::ShaderSource(shader->getType(), sourceBuf.str() + usageBuf.str()); in generateProgramInterfaceProgramSources()
1711 …nst ProgramInterfaceDefinition::Program* program, const ProgramInterfaceDefinition::Shader* shader) in getShaderResourceUsage() argument
1715 retVal.numInputs = getNumTypeInstances(shader, glu::STORAGE_IN); in getShaderResourceUsage()
1716 retVal.numInputVectors = getNumVectors(shader, glu::STORAGE_IN); in getShaderResourceUsage()
1717 retVal.numInputComponents = getNumComponents(shader, glu::STORAGE_IN); in getShaderResourceUsage()
1719 retVal.numOutputs = getNumTypeInstances(shader, glu::STORAGE_OUT); in getShaderResourceUsage()
1720 retVal.numOutputVectors = getNumVectors(shader, glu::STORAGE_OUT); in getShaderResourceUsage()
1721 retVal.numOutputComponents = getNumComponents(shader, glu::STORAGE_OUT); in getShaderResourceUsage()
1723 retVal.numPatchInputComponents = getNumComponents(shader, glu::STORAGE_PATCH_IN); in getShaderResourceUsage()
1724 retVal.numPatchOutputComponents = getNumComponents(shader, glu::STORAGE_PATCH_OUT); in getShaderResourceUsage()
1726 …retVal.numDefaultBlockUniformComponents = getNumDefaultBlockComponents(shader, glu::STORAGE_UNIFOR… in getShaderResourceUsage()
1727 retVal.numCombinedUniformComponents = getNumComponents(shader, glu::STORAGE_UNIFORM); in getShaderResourceUsage()
1728 retVal.numUniformVectors = getNumVectors(shader, glu::STORAGE_UNIFORM); in getShaderResourceUsage()
1730 …retVal.numSamplers = getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeSampler… in getShaderResourceUsage()
1731 retVal.numImages = getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeImage); in getShaderResourceUsage()
1733 retVal.numAtomicCounterBuffers = getNumAtomicCounterBuffers(shader); in getShaderResourceUsage()
1734 …retVal.numAtomicCounters = getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeAto… in getShaderResourceUsage()
1736 retVal.numUniformBlocks = getNumShaderBlocks(shader, glu::STORAGE_UNIFORM); in getShaderResourceUsage()
1737 retVal.numShaderStorageBlocks = getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getShaderResourceUsage()
1740 switch (shader->getType()) in getShaderResourceUsage()
1833 const ProgramInterfaceDefinition::Shader* const shader = program->getShaders()[shaderNdx]; in getCombinedProgramResourceUsage() local
1835 …axBinding = de::max(retVal.uniformBufferMaxBinding, getMaxBufferBinding(shader, glu::STORAGE_UNIF… in getCombinedProgramResourceUsage()
1836 …retVal.uniformBufferMaxSize = de::max(retVal.uniformBufferMaxSize, getBufferMaxSize(shader, glu:… in getCombinedProgramResourceUsage()
1837 retVal.numUniformBlocks += getNumShaderBlocks(shader, glu::STORAGE_UNIFORM); in getCombinedProgramResourceUsage()
1839 switch (shader->getType()) in getCombinedProgramResourceUsage()
1841 …RTEX: retVal.numCombinedVertexUniformComponents += getNumComponents(shader, glu::STORAGE_UNIF… in getCombinedProgramResourceUsage()
1842 …NT: retVal.numCombinedFragmentUniformComponents += getNumComponents(shader, glu::STORAGE_UNIF… in getCombinedProgramResourceUsage()
1843 …RY: retVal.numCombinedGeometryUniformComponents += getNumComponents(shader, glu::STORAGE_UNIF… in getCombinedProgramResourceUsage()
1844 …ROL: retVal.numCombinedTessControlUniformComponents += getNumComponents(shader, glu::STORAGE_UNIF… in getCombinedProgramResourceUsage()
1845 …UATION: retVal.numCombinedTessEvalUniformComponents += getNumComponents(shader, glu::STORAGE_UNIF… in getCombinedProgramResourceUsage()
1849 …ding = de::max(retVal.shaderStorageBufferMaxBinding, getMaxBufferBinding(shader, glu::STORAGE_BUFF… in getCombinedProgramResourceUsage()
1850 …erMaxSize = de::max(retVal.shaderStorageBufferMaxSize, getBufferMaxSize(shader, glu::STORAGE_BUFF… in getCombinedProgramResourceUsage()
1851 retVal.numShaderStorageBlocks += getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getCombinedProgramResourceUsage()
1853 if (shader->getType() == glu::SHADERTYPE_VERTEX) in getCombinedProgramResourceUsage()
1855 numVertexOutputComponents += getNumComponents(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1856 numVertexOutputVectors += getNumVectors(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1858 else if (shader->getType() == glu::SHADERTYPE_FRAGMENT) in getCombinedProgramResourceUsage()
1860 numFragmentInputComponents += getNumComponents(shader, glu::STORAGE_IN); in getCombinedProgramResourceUsage()
1861 numFragmentInputVectors += getNumVectors(shader, glu::STORAGE_IN); in getCombinedProgramResourceUsage()
1864 …retVal.numCombinedSamplers += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeSam… in getCombinedProgramResourceUsage()
1866 …fferMaxBinding = de::max(retVal.atomicCounterBufferMaxBinding, getAtomicCounterMaxBinding(shader)); in getCombinedProgramResourceUsage()
1867 …BufferMaxSize = de::max(retVal.atomicCounterBufferMaxSize, getAtomicCounterMaxBufferSize(shader)); in getCombinedProgramResourceUsage()
1868 retVal.numAtomicCounterBuffers += getNumAtomicCounterBuffers(shader); in getCombinedProgramResourceUsage()
1869 …retVal.numAtomicCounters += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeAt… in getCombinedProgramResourceUsage()
1870 …retVal.maxImageBinding = de::max(retVal.maxImageBinding, getUniformMaxBinding(shader, glu::isD… in getCombinedProgramResourceUsage()
1871 …retVal.numCombinedImages += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeIm… in getCombinedProgramResourceUsage()
1873 …retVal.numCombinedOutputResources += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDat… in getCombinedProgramResourceUsage()
1874 retVal.numCombinedOutputResources += getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getCombinedProgramResourceUsage()
1876 if (shader->getType() == glu::SHADERTYPE_FRAGMENT) in getCombinedProgramResourceUsage()
1878 retVal.numCombinedOutputResources += getNumVectors(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1879 …tOutputMaxBinding = de::max(retVal.fragmentOutputMaxBinding, getFragmentOutputMaxLocation(shader)); in getCombinedProgramResourceUsage()