Lines Matching defs:coord
727 static string genFetch(const CaseDef &caseDef, int numComponents, const string& vecType, const string& coord, const string& lod)
735 s << vecType << "(ubo0_1.val[" << coord << "]";
741 s << vecType << "(ssbo0_1.val[" << coord << "]";
746 s << "texelFetch(texbo0_1, " << coord << ")";
749 s << "imageLoad(image0_1, " << coord << ")";
753 s << "texelFetch(texture0_1, " << coord << ")";
755 s << "texelFetch(texture0_1, " << coord << ", " << lod << ")";
758 s << "imageLoad(image0_1, " << coord << ")";
793 static string genStore(int descriptorType, const string& vecType, const string& bufType, const string& coord)
801 s << "ssbo0_1.val[" << coord << "] = " << bufType << "(" << storeValue << ")";
804 s << "imageStore(image0_1, " << coord << ", " << vecType << "(" << storeValue << "))";
807 s << "imageStore(image0_1, " << coord << ", " << vecType << "(" << storeValue << "))";
814 static string genAtomic(int descriptorType, const string& bufType, const string& coord)
822 s << "atomicAdd(ssbo0_1.val[" << coord << "], " << bufType << "(10))";
825 s << "imageAtomicAdd(image0_1, " << coord << ", " << bufType << "(10))";
828 s << "imageAtomicAdd(image0_1, " << coord << ", " << bufType << "(10))";
889 string coord = "ivec" + to_string(numCoords) + "(";
894 coord += c;
896 coord += "0";
898 coord += ", ";
900 coord += ")";
905 coord += ", ";
907 coord += c;
909 coord += "0";
911 return coord;
923 string coord = "vec" + to_string(numCoords) + "(";
928 coord += c;
930 coord += "0.25";
932 coord += " / float(" + to_string(caseDef.imageDim[dim]) + ")";
934 coord += ", ";
936 coord += ")";
937 return coord;
1297 // Treat i==3 coord (cube array layer) like i == 2
1302 string coord = genCoord("c", numCoords, m_data.samples, i);
1307 checks << " if (c < 0 || c >= " << inboundcoords << ") " << genStore(m_data.descriptorType, vecType, bufType, coord) << ";\n";
1311 checks << " if (c < 0 || c >= " << inboundcoords << ") " << genAtomic(m_data.descriptorType, bufType, coord) << ";\n";
1318 // Treat i==3 coord (cube array layer) like i == 2
1333 string coord = genCoord("c", numCoords, m_data.samples, i);
1347 checks << " temp = " << genFetch(m_data, numComponents, vecType, coord, "0") << ";\n";
1358 checks << " temp = " << genFetch(m_data, numComponents, vecType, coord, "0") << ";\n";
1376 // multisample coord doesn't have defined behavior for OOB, so just set temp to 0.