Lines Matching refs:retVal
542 int retVal = 0; in getNumShaderBlocks() local
553 retVal += numInstances; in getNumShaderBlocks()
557 return retVal; in getNumShaderBlocks()
636 int retVal = 0; in getNumTypeInstances() local
648 …retVal += numInstances * getNumTypeInstances(shader->getDefaultBlock().interfaceBlocks[ndx].variab… in getNumTypeInstances()
654 retVal += getNumTypeInstances(shader->getDefaultBlock().variables[varNdx].varType, predicate); in getNumTypeInstances()
656 return retVal; in getNumTypeInstances()
661 int retVal = 0; in getMappedBasicTypeSum() local
673 …retVal += numInstances * getMappedBasicTypeSum(shader->getDefaultBlock().interfaceBlocks[ndx].vari… in getMappedBasicTypeSum()
679 retVal += getMappedBasicTypeSum(shader->getDefaultBlock().variables[varNdx].varType, typeMap); in getMappedBasicTypeSum()
681 return retVal; in getMappedBasicTypeSum()
716 int retVal = 0; in getNumDefaultBlockComponents() local
720 …retVal += getMappedBasicTypeSum(shader->getDefaultBlock().variables[varNdx].varType, getNumDataTyp… in getNumDefaultBlockComponents()
722 return retVal; in getNumDefaultBlockComponents()
1317 ProgramInterfaceDefinition::ShaderResourceUsage retVal; in getShaderResourceUsage() local
1319 …retVal.numInputs = getNumTypeInstances(shader, glu::STORAGE_IN, dummyConstantTypeFilter<true>… in getShaderResourceUsage()
1320 retVal.numInputVectors = getNumVectors(shader, glu::STORAGE_IN); in getShaderResourceUsage()
1321 retVal.numInputComponents = getNumComponents(shader, glu::STORAGE_IN); in getShaderResourceUsage()
1323 …retVal.numOutputs = getNumTypeInstances(shader, glu::STORAGE_OUT, dummyConstantTypeFilter<tru… in getShaderResourceUsage()
1324 retVal.numOutputVectors = getNumVectors(shader, glu::STORAGE_OUT); in getShaderResourceUsage()
1325 retVal.numOutputComponents = getNumComponents(shader, glu::STORAGE_OUT); in getShaderResourceUsage()
1327 …retVal.numDefaultBlockUniformComponents = getNumDefaultBlockComponents(shader, glu::STORAGE_UNIFOR… in getShaderResourceUsage()
1328 retVal.numCombinedUniformComponents = getNumComponents(shader, glu::STORAGE_UNIFORM); in getShaderResourceUsage()
1329 retVal.numUniformVectors = getNumVectors(shader, glu::STORAGE_UNIFORM); in getShaderResourceUsage()
1331 …retVal.numSamplers = getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeSampler… in getShaderResourceUsage()
1332 retVal.numImages = getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeImage); in getShaderResourceUsage()
1334 retVal.numAtomicCounterBuffers = getNumAtomicCounterBuffers(shader); in getShaderResourceUsage()
1335 …retVal.numAtomicCounters = getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeAto… in getShaderResourceUsage()
1337 retVal.numUniformBlocks = getNumShaderBlocks(shader, glu::STORAGE_UNIFORM); in getShaderResourceUsage()
1338 retVal.numShaderStorageBlocks = getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getShaderResourceUsage()
1340 return retVal; in getShaderResourceUsage()
1345 ProgramInterfaceDefinition::ProgramResourceUsage retVal; in getCombinedProgramResourceUsage() local
1347 …retVal.uniformBufferMaxBinding = -1; // max binding is inclusive upper bound. Allow 0 bindings … in getCombinedProgramResourceUsage()
1348 retVal.uniformBufferMaxSize = 0; in getCombinedProgramResourceUsage()
1349 retVal.numUniformBlocks = 0; in getCombinedProgramResourceUsage()
1350 retVal.numCombinedVertexUniformComponents = 0; in getCombinedProgramResourceUsage()
1351 retVal.numCombinedFragmentUniformComponents = 0; in getCombinedProgramResourceUsage()
1352 retVal.shaderStorageBufferMaxBinding = -1; // see above in getCombinedProgramResourceUsage()
1353 retVal.shaderStorageBufferMaxSize = 0; in getCombinedProgramResourceUsage()
1354 retVal.numShaderStorageBlocks = 0; in getCombinedProgramResourceUsage()
1355 retVal.numVaryingComponents = 0; in getCombinedProgramResourceUsage()
1356 retVal.numVaryingVectors = 0; in getCombinedProgramResourceUsage()
1357 retVal.numCombinedSamplers = 0; in getCombinedProgramResourceUsage()
1358 retVal.atomicCounterBufferMaxBinding = -1; // see above in getCombinedProgramResourceUsage()
1359 retVal.atomicCounterBufferMaxSize = 0; in getCombinedProgramResourceUsage()
1360 retVal.numAtomicCounterBuffers = 0; in getCombinedProgramResourceUsage()
1361 retVal.numAtomicCounters = 0; in getCombinedProgramResourceUsage()
1362 retVal.maxImageBinding = -1; // see above in getCombinedProgramResourceUsage()
1363 retVal.numCombinedImages = 0; in getCombinedProgramResourceUsage()
1364 retVal.numCombinedOutputResources = 0; in getCombinedProgramResourceUsage()
1365 retVal.numXFBInterleavedComponents = 0; in getCombinedProgramResourceUsage()
1366 retVal.numXFBSeparateAttribs = 0; in getCombinedProgramResourceUsage()
1367 retVal.numXFBSeparateComponents = 0; in getCombinedProgramResourceUsage()
1368 retVal.fragmentOutputMaxBinding = -1; // see above in getCombinedProgramResourceUsage()
1374 …retVal.uniformBufferMaxBinding = de::max(retVal.uniformBufferMaxBinding, getMaxBufferBinding(shad… in getCombinedProgramResourceUsage()
1375 …retVal.uniformBufferMaxSize = de::max(retVal.uniformBufferMaxSize, getBufferMaxSize(shader, glu:… in getCombinedProgramResourceUsage()
1376 retVal.numUniformBlocks += getNumShaderBlocks(shader, glu::STORAGE_UNIFORM); in getCombinedProgramResourceUsage()
1379 retVal.numCombinedVertexUniformComponents += getNumComponents(shader, glu::STORAGE_UNIFORM); in getCombinedProgramResourceUsage()
1382 retVal.numCombinedFragmentUniformComponents += getNumComponents(shader, glu::STORAGE_UNIFORM); in getCombinedProgramResourceUsage()
1384 …retVal.shaderStorageBufferMaxBinding = de::max(retVal.shaderStorageBufferMaxBinding, getMaxBufferB… in getCombinedProgramResourceUsage()
1385 …retVal.shaderStorageBufferMaxSize = de::max(retVal.shaderStorageBufferMaxSize, getBufferMaxSize(s… in getCombinedProgramResourceUsage()
1386 retVal.numShaderStorageBlocks += getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getCombinedProgramResourceUsage()
1390 retVal.numVaryingComponents += getNumComponents(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1391 retVal.numVaryingVectors += getNumVectors(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1394 …retVal.numCombinedSamplers += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeSam… in getCombinedProgramResourceUsage()
1396 …retVal.atomicCounterBufferMaxBinding = de::max(retVal.atomicCounterBufferMaxBinding, getAtomicCoun… in getCombinedProgramResourceUsage()
1397 …retVal.atomicCounterBufferMaxSize = de::max(retVal.atomicCounterBufferMaxSize, getAtomicCounterMa… in getCombinedProgramResourceUsage()
1398 retVal.numAtomicCounterBuffers += getNumAtomicCounterBuffers(shader); in getCombinedProgramResourceUsage()
1399 …retVal.numAtomicCounters += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeAt… in getCombinedProgramResourceUsage()
1400 …retVal.maxImageBinding = de::max(retVal.maxImageBinding, getUniformMaxBinding(shader, glu::isD… in getCombinedProgramResourceUsage()
1401 …retVal.numCombinedImages += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDataTypeIm… in getCombinedProgramResourceUsage()
1403 …retVal.numCombinedOutputResources += getNumTypeInstances(shader, glu::STORAGE_UNIFORM, glu::isDat… in getCombinedProgramResourceUsage()
1404 retVal.numCombinedOutputResources += getNumShaderBlocks(shader, glu::STORAGE_BUFFER); in getCombinedProgramResourceUsage()
1408 retVal.numCombinedOutputResources += getNumVectors(shader, glu::STORAGE_OUT); in getCombinedProgramResourceUsage()
1409 …retVal.fragmentOutputMaxBinding = de::max(retVal.fragmentOutputMaxBinding, getFragmentOutputMaxLoc… in getCombinedProgramResourceUsage()
1414 retVal.numXFBInterleavedComponents = getNumXFBComponents(program); in getCombinedProgramResourceUsage()
1417 retVal.numXFBSeparateAttribs = (int)program->getTransformFeedbackVaryings().size(); in getCombinedProgramResourceUsage()
1418 retVal.numXFBSeparateComponents = getNumMaxXFBOutputComponents(program); in getCombinedProgramResourceUsage()
1421 return retVal; in getCombinedProgramResourceUsage()