Lines Matching refs:retVal
844 int retVal = 0; in getNumShaderBlocks() local
855 retVal += numInstances; in getNumShaderBlocks()
859 return retVal; in getNumShaderBlocks()
908 int retVal = 0; in accumulateShader() local
920 …retVal += numInstances * accumulateComplexType(shader->getDefaultBlock().interfaceBlocks[ndx].vari… in accumulateShader()
926 retVal += accumulateComplexType(shader->getDefaultBlock().variables[varNdx].varType, dMap); in accumulateShader()
928 return retVal; in accumulateShader()
1040 int retVal = 0; in getNumDefaultBlockComponents() local
1044 …retVal += accumulateComplexType(shader->getDefaultBlock().variables[varNdx].varType, getNumDataTyp… in getNumDefaultBlockComponents()
1046 return retVal; in getNumDefaultBlockComponents()
1713 ProgramInterfaceDefinition::ShaderResourceUsage retVal; in getShaderResourceUsage() local
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()
1752 retVal.numInputs += 1; in getShaderResourceUsage()
1753 retVal.numInputVectors += 1; in getShaderResourceUsage()
1754 retVal.numInputComponents += 4; in getShaderResourceUsage()
1757 retVal.numOutputs += 1; in getShaderResourceUsage()
1758 retVal.numOutputVectors += 1; in getShaderResourceUsage()
1759 retVal.numOutputComponents += 4; in getShaderResourceUsage()
1764 retVal.numInputs += 1 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1765 retVal.numInputVectors += 1 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1766 retVal.numInputComponents += 4 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1769 retVal.numOutputs += 1 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1770 retVal.numOutputVectors += 1 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1771 retVal.numOutputComponents += 4 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1776 retVal.numInputs += 1 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1777 retVal.numInputVectors += 1 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1778 retVal.numInputComponents += 4 * program->getTessellationNumOutputPatchVertices(); in getShaderResourceUsage()
1781 retVal.numOutputs += 1; in getShaderResourceUsage()
1782 retVal.numOutputVectors += 1; in getShaderResourceUsage()
1783 retVal.numOutputComponents += 4; in getShaderResourceUsage()
1794 return retVal; in getShaderResourceUsage()
1799 ProgramInterfaceDefinition::ProgramResourceUsage retVal; in getCombinedProgramResourceUsage() local
1805 …retVal.uniformBufferMaxBinding = -1; // max binding is inclusive upper bound. Allow 0 bindings… in getCombinedProgramResourceUsage()
1806 retVal.uniformBufferMaxSize = 0; in getCombinedProgramResourceUsage()
1807 retVal.numUniformBlocks = 0; in getCombinedProgramResourceUsage()
1808 retVal.numCombinedVertexUniformComponents = 0; in getCombinedProgramResourceUsage()
1809 retVal.numCombinedFragmentUniformComponents = 0; in getCombinedProgramResourceUsage()
1810 retVal.numCombinedGeometryUniformComponents = 0; in getCombinedProgramResourceUsage()
1811 retVal.numCombinedTessControlUniformComponents = 0; in getCombinedProgramResourceUsage()
1812 retVal.numCombinedTessEvalUniformComponents = 0; in getCombinedProgramResourceUsage()
1813 retVal.shaderStorageBufferMaxBinding = -1; // see above in getCombinedProgramResourceUsage()
1814 retVal.shaderStorageBufferMaxSize = 0; in getCombinedProgramResourceUsage()
1815 retVal.numShaderStorageBlocks = 0; in getCombinedProgramResourceUsage()
1816 retVal.numVaryingComponents = 0; in getCombinedProgramResourceUsage()
1817 retVal.numVaryingVectors = 0; in getCombinedProgramResourceUsage()
1818 retVal.numCombinedSamplers = 0; in getCombinedProgramResourceUsage()
1819 retVal.atomicCounterBufferMaxBinding = -1; // see above in getCombinedProgramResourceUsage()
1820 retVal.atomicCounterBufferMaxSize = 0; in getCombinedProgramResourceUsage()
1821 retVal.numAtomicCounterBuffers = 0; in getCombinedProgramResourceUsage()
1822 retVal.numAtomicCounters = 0; in getCombinedProgramResourceUsage()
1823 retVal.maxImageBinding = -1; // see above in getCombinedProgramResourceUsage()
1824 retVal.numCombinedImages = 0; in getCombinedProgramResourceUsage()
1825 retVal.numCombinedOutputResources = 0; in getCombinedProgramResourceUsage()
1826 retVal.numXFBInterleavedComponents = 0; in getCombinedProgramResourceUsage()
1827 retVal.numXFBSeparateAttribs = 0; in getCombinedProgramResourceUsage()
1828 retVal.numXFBSeparateComponents = 0; in getCombinedProgramResourceUsage()
1829 retVal.fragmentOutputMaxBinding = -1; // see above in getCombinedProgramResourceUsage()
1835 …retVal.uniformBufferMaxBinding = de::max(retVal.uniformBufferMaxBinding, getMaxBufferBinding(shad… in getCombinedProgramResourceUsage()
1836 …retVal.uniformBufferMaxSize = de::max(retVal.uniformBufferMaxSize, getBufferMaxSize(shader, glu:… in getCombinedProgramResourceUsage()
1837 retVal.numUniformBlocks += getNumShaderBlocks(shader, glu::STORAGE_UNIFORM); in getCombinedProgramResourceUsage()
1841 …case glu::SHADERTYPE_VERTEX: retVal.numCombinedVertexUniformComponents += getNumComponents(sh… in getCombinedProgramResourceUsage()
1842 …case glu::SHADERTYPE_FRAGMENT: retVal.numCombinedFragmentUniformComponents += getNumComponent… in getCombinedProgramResourceUsage()
1843 …case glu::SHADERTYPE_GEOMETRY: retVal.numCombinedGeometryUniformComponents += getNumComponent… in getCombinedProgramResourceUsage()
1844 …case glu::SHADERTYPE_TESSELLATION_CONTROL: retVal.numCombinedTessControlUniformComponents += getN… in getCombinedProgramResourceUsage()
1845 …case glu::SHADERTYPE_TESSELLATION_EVALUATION: retVal.numCombinedTessEvalUniformComponents += getN… in getCombinedProgramResourceUsage()
1849 …retVal.shaderStorageBufferMaxBinding = de::max(retVal.shaderStorageBufferMaxBinding, getMaxBufferB… in getCombinedProgramResourceUsage()
1850 …retVal.shaderStorageBufferMaxSize = de::max(retVal.shaderStorageBufferMaxSize, getBufferMaxSize(s… in getCombinedProgramResourceUsage()
1851 retVal.numShaderStorageBlocks += getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getCombinedProgramResourceUsage()
1864 …retVal.numCombinedSamplers += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeSam… in getCombinedProgramResourceUsage()
1866 …retVal.atomicCounterBufferMaxBinding = de::max(retVal.atomicCounterBufferMaxBinding, getAtomicCoun… in getCombinedProgramResourceUsage()
1867 …retVal.atomicCounterBufferMaxSize = de::max(retVal.atomicCounterBufferMaxSize, getAtomicCounterMa… 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()
1878 retVal.numCombinedOutputResources += getNumVectors(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1879 …retVal.fragmentOutputMaxBinding = de::max(retVal.fragmentOutputMaxBinding, getFragmentOutputMaxLoc… in getCombinedProgramResourceUsage()
1884 retVal.numXFBInterleavedComponents = getNumXFBComponents(program); in getCombinedProgramResourceUsage()
1887 retVal.numXFBSeparateAttribs = (int)program->getTransformFeedbackVaryings().size(); in getCombinedProgramResourceUsage()
1888 retVal.numXFBSeparateComponents = getNumMaxXFBOutputComponents(program); in getCombinedProgramResourceUsage()
1892 retVal.numVaryingComponents = de::max(numVertexOutputComponents, numFragmentInputComponents); in getCombinedProgramResourceUsage()
1893 retVal.numVaryingVectors = de::max(numVertexOutputVectors, numFragmentInputVectors); in getCombinedProgramResourceUsage()
1895 return retVal; in getCombinedProgramResourceUsage()