Lines Matching refs:storage

63 VariableSearchFilter VariableSearchFilter::createStorageFilter (glu::Storage storage)
65 DE_ASSERT(storage < glu::STORAGE_LAST);
68 filter.m_storageBits = (1u << storage);
72 VariableSearchFilter VariableSearchFilter::createShaderTypeStorageFilter (glu::ShaderType type, glu::Storage storage)
74 return logicalAnd(createShaderTypeFilter(type), createStorageFilter(storage));
101 DE_ASSERT(variable.storage < glu::STORAGE_LAST);
102 return (m_storageBits & (1u << variable.storage)) != 0;
107 DE_ASSERT(block.storage < glu::STORAGE_LAST);
108 return (m_storageBits & (1u << block.storage)) != 0;
143 const glu::Storage storage = shader->getDefaultBlock().interfaceBlocks[ndx].storage;
144 if (storage == glu::STORAGE_IN ||
145 storage == glu::STORAGE_OUT ||
146 storage == glu::STORAGE_PATCH_IN ||
147 storage == glu::STORAGE_PATCH_OUT)
383 buf << glu::getStorageName(interfaceBlock.storage) << " " << interfaceBlock.interfaceName << "\n"
402 return interface.storage == glu::STORAGE_UNIFORM ||
403 interface.storage == glu::STORAGE_IN ||
404 interface.storage == glu::STORAGE_PATCH_IN ||
405 (interface.storage == glu::STORAGE_BUFFER && (interface.memoryAccessQualifierFlags & glu::MEMORYACCESSQUALIFIER_WRITEONLY_BIT) == 0);
410 return interface.storage == glu::STORAGE_OUT ||
411 interface.storage == glu::STORAGE_PATCH_OUT ||
412 (interface.storage == glu::STORAGE_BUFFER && (interface.memoryAccessQualifierFlags & glu::MEMORYACCESSQUALIFIER_READONLY_BIT) == 0);
420 glu::Storage storage,
454 storage,
467 storage,
471 else if (storage == glu::STORAGE_BUFFER)
478 storage,
484 DE_ASSERT(storage == glu::STORAGE_IN);
493 storage,
504 storage,
518 storage,
547 block.storage,
572 block.storage,
589 glu::Storage storage,
613 storage,
626 storage,
630 else if (storage == glu::STORAGE_BUFFER)
637 storage,
643 DE_ASSERT(storage == glu::STORAGE_OUT);
652 storage,
680 block.storage,
705 block.storage,
869 static int getNumShaderBlocks (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
875 if (shader->getDefaultBlock().interfaceBlocks[ndx].storage == storage)
984 InterfaceBlockStorageFilter (glu::Storage storage)
985 : m_storage(storage)
991 return m_storage == b.storage;
1001 VariableDeclarationStorageFilter (glu::Storage storage)
1002 : m_storage(storage)
1008 return m_storage == d.storage;
1020 static int getNumTypeInstances (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage, bool (*predicate)(glu::DataType))
1022 return accumulateShader(shader, InterfaceBlockStorageFilter(storage), VariableDeclarationStorageFilter(storage), InstanceCounter(predicate));
1025 static int getNumTypeInstances (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
1027 return getNumTypeInstances(shader, storage, unusedTrueConstantTypeFilter);
1030 static int accumulateShaderStorage (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage, int (*typeMap)(glu::DataType))
1032 return accumulateShader(shader, InterfaceBlockStorageFilter(storage), VariableDeclarationStorageFilter(storage), typeMap);
1055 static int getNumComponents (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
1057 return accumulateShaderStorage(shader, storage, getNumDataTypeComponents);
1060 static int getNumVectors (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
1062 return accumulateShaderStorage(shader, storage, getNumDataTypeVectors);
1065 static int getNumDefaultBlockComponents (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
1070 if (shader->getDefaultBlock().variables[varNdx].storage == storage)
1076 static int getMaxBufferBinding (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
1082 if (shader->getDefaultBlock().interfaceBlocks[ndx].storage == storage)
1147 static int getBufferMaxSize (const ProgramInterfaceDefinition::Shader* shader, glu::Storage storage)
1152 if (shader->getDefaultBlock().interfaceBlocks[ndx].storage == storage)
1260 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_OUT)
1286 const bool isTopLevelBufferVariable = (interfaceBlock.storage == glu::STORAGE_BUFFER);
1315 const glu::Storage storage = (interface == PROGRAMINTERFACE_UNIFORM) ? (glu::STORAGE_UNIFORM) : (glu::STORAGE_BUFFER);
1322 if (shader->getDefaultBlock().variables[variableNdx].storage == storage)
1331 if (interfaceBlock.storage == storage)
1344 const glu::Storage storage = (interface == PROGRAMINTERFACE_UNIFORM_BLOCK) ? (glu::STORAGE_UNIFORM) : (glu::STORAGE_BUFFER);
1352 if (interfaceBlock.storage == storage)
1395 const glu::Storage variableStorage = shader->getDefaultBlock().variables[variableNdx].storage;
1406 if (interfaceBlock.storage == queryStorage || interfaceBlock.storage == queryPatchStorage)
1567 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_IN ||
1568 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_PATCH_IN ||
1569 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_UNIFORM)
1575 shader->getDefaultBlock().variables[ndx].storage,
1643 if (shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_OUT ||
1644 shader->getDefaultBlock().variables[ndx].storage == glu::STORAGE_PATCH_OUT)
1650 shader->getDefaultBlock().variables[ndx].storage,