Lines Matching defs:var

1038 string getAPIName (const BufferBlock& block, const BufferVar& var, const glu::TypeComponentVector& accessPath)
1045 name << var.getName();
1051 const VarType curType = glu::getVarType(var.getType(), accessPath.begin(), pathComp);
1070 string getShaderName (const BufferBlock& block, int instanceNdx, const BufferVar& var, const glu::TypeComponentVector& accessPath)
1086 name << var.getName();
1092 const VarType curType = glu::getVarType(var.getType(), accessPath.begin(), pathComp);
2546 const BufferVarLayoutEntry& var = layout.bufferVars[varNdx];
2548 if (var.blockNdx < 0 || isUnsizedArray(var))
2551 const BlockLayoutEntry& block = layout.blocks[var.blockNdx];
2552 const bool isMatrix = glu::isDataTypeMatrix(var.type);
2553 const int numVecs = isMatrix ? (var.isRowMajor ? glu::getDataTypeMatrixNumRows(var.type) : glu::getDataTypeMatrixNumColumns(var.type)) : 1;
2554 const int numComps = isMatrix ? (var.isRowMajor ? glu::getDataTypeMatrixNumColumns(var.type) : glu::getDataTypeMatrixNumRows(var.type)) : glu::getDataTypeScalarSize(var.type);
2555 const int numElements = var.arraySize;
2556 const int topLevelSize = var.topLevelArraySize;
2557 const int arrayStride = var.arrayStride;
2558 const int topLevelStride = var.topLevelArrayStride;
2566 minOffset = de::min(minOffset, (numVecs-1)*var.matrixStride);
2568 minOffset = de::min(minOffset, (topLevelSize-1)*topLevelStride + (numElements-1)*arrayStride + (numVecs-1)*var.matrixStride);
2571 maxOffset = de::max(maxOffset, (numVecs-1)*var.matrixStride + vecSize);
2574 maxOffset = de::max(maxOffset, (topLevelSize-1)*topLevelStride + (numElements-1)*arrayStride + (numVecs-1)*var.matrixStride + vecSize);
2576 if (var.offset+minOffset < 0 || var.offset+maxOffset > block.size)
2578 log << TestLog::Message << "Error: Variable '" << var.name << "' out of block bounds" << TestLog::EndMessage;