Lines Matching refs:numComponents
727 static string genFetch(const CaseDef &caseDef, int numComponents, const string& vecType, const string& coord, const string& lod)
736 for (int i = numComponents; i < 4; ++i) s << ", 0";
742 for (int i = numComponents; i < 4; ++i) s << ", 0";
771 static string getStoreValue(int descriptorType, int numComponents, const string& vecType, const string& bufType)
779 for (int i = numComponents; i < 4; ++i) s << ", 0";
1079 int numComponents = tcu::getPixelSize(mapVkFormat(format)) / tcu::getChannelSize(mapVkFormat(format).type);
1081 if (numComponents == 1)
1084 bufType = imgprefix + "vec" + std::to_string(numComponents);
1115 checks << " int idx = smod(gl_VertexIndex * " << numComponents << ", " << refDataNumElements << ");\n";
1117 checks << " int idx = smod(c * " << numComponents << ", " << refDataNumElements << ");\n";
1200 if (numComponents == 1)
1204 else if (numComponents == 2)
1247 if (numComponents > 1)
1255 if (numComponents > 2)
1273 checks << " int paddedinboundcoords = " << refDataNumElements / numComponents << ";\n";
1280 checks << " inboundcoords = " << layout.refData.size() / (formatIsR64(format) ? sizeof(deUint64) : sizeof(deUint32)) / numComponents << ";\n";
1347 checks << " temp = " << genFetch(m_data, numComponents, vecType, coord, "0") << ";\n";
1358 checks << " temp = " << genFetch(m_data, numComponents, vecType, coord, "0") << ";\n";
1371 if (m_data.formatQualifier && numComponents < 4)
1392 int mod = (int)((len / (formatIsR64(format) ? sizeof(deUint64) : sizeof(deUint32))) % numComponents);
1434 numComponents < 4)
1439 checks << " else if (temp == " << getStoreValue(m_data.descriptorType, numComponents, vecType, bufType) << ") temp = " << vecType << "(0);\n";
1443 for (int mask = (numComponents*numComponents) - 2; mask > 0; mask--) {
1473 checks << " if (c != 0) temp = " << genFetch(m_data, numComponents, vecType, coord0, "c") << "; else temp = " << vecType << "(0);\n";
1845 int numComponents = formatBytes / tcu::getChannelSize(mapVkFormat(m_data.format).type);
3230 if (((float *)ptr)[i * numComponents] != 1.0f)
3237 if (((deUint64 *)ptr)[i * numComponents] != 1)
3244 if (((deUint32 *)ptr)[i * numComponents] != 1)