| 941 | } |
| 942 | |
| 943 | GLSLCompiler::ExpressionType GLSLCompiler::m_convertExprType(const std::string& str) |
| 944 | { |
| 945 | static const std::vector<std::string> floatStructs = { |
| 946 | KEYWORD(mat2) |
| 947 | KEYWORD(mat3) |
| 948 | KEYWORD(mat4) |
| 949 | KEYWORD(mat2x2) |
| 950 | KEYWORD(mat2x3) |
| 951 | KEYWORD(mat2x4) |
| 952 | KEYWORD(mat3x2) |
| 953 | KEYWORD(mat3x3) |
| 954 | KEYWORD(mat3x4) |
| 955 | KEYWORD(mat4x2) |
| 956 | KEYWORD(mat4x3) |
| 957 | KEYWORD(mat4x4) |
| 958 | KEYWORD(vec2) |
| 959 | KEYWORD(vec3) |
| 960 | KEYWORD(vec4) |
| 961 | }; |
| 962 | static const std::vector<std::string> doubleStructs = { |
| 963 | KEYWORD(dmat2) |
| 964 | KEYWORD(dmat3) |
| 965 | KEYWORD(dmat4) |
| 966 | KEYWORD(dmat2x2) |
| 967 | KEYWORD(dmat2x3) |
| 968 | KEYWORD(dmat2x4) |
| 969 | KEYWORD(dmat3x2) |
| 970 | KEYWORD(dmat3x3) |
| 971 | KEYWORD(dmat3x4) |
| 972 | KEYWORD(dmat4x2) |
| 973 | KEYWORD(dmat4x3) |
| 974 | KEYWORD(dmat4x4) |
| 975 | KEYWORD(dvec2) |
| 976 | KEYWORD(dvec3) |
| 977 | KEYWORD(dvec4) |
| 978 | }; |
| 979 | static const std::vector<std::string> intStructs = { |
| 980 | KEYWORD(ivec2) |
| 981 | KEYWORD(ivec3) |
| 982 | KEYWORD(ivec4) |
| 983 | }; |
| 984 | static const std::vector<std::string> boolStructs = { |
| 985 | KEYWORD(bvec2) |
| 986 | KEYWORD(bvec3) |
| 987 | KEYWORD(bvec4) |
| 988 | }; |
| 989 | static const std::vector<std::string> uintStructs = { |
| 990 | KEYWORD(uvec2) |
| 991 | KEYWORD(uvec3) |
| 992 | KEYWORD(uvec4) |
| 993 | }; |
| 994 | |
| 995 | static const std::vector<std::pair<int, int>> floatStructSize = { |
| 996 | std::make_pair(2,2), |
| 997 | std::make_pair(3,3), |
| 998 | std::make_pair(4,4), |
| 999 | std::make_pair(2,2), |
| 1000 | std::make_pair(2,3), |
nothing calls this directly
no test coverage detected