OLD | NEW |
1 /* | 1 /* |
2 Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al. | 2 Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al. |
3 All Rights Reserved. | 3 All Rights Reserved. |
4 | 4 |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions are | 6 modification, are permitted provided that the following conditions are |
7 met: | 7 met: |
8 * Redistributions of source code must retain the above copyright | 8 * Redistributions of source code must retain the above copyright |
9 notice, this list of conditions and the following disclaimer. | 9 notice, this list of conditions and the following disclaimer. |
10 * Redistributions in binary form must reproduce the above copyright | 10 * Redistributions in binary form must reproduce the above copyright |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 argwrite (0, false); | 833 argwrite (0, false); |
834 } | 834 } |
835 | 835 |
836 if (func()->readwrite_special_case()) { | 836 if (func()->readwrite_special_case()) { |
837 if (m_name == "fresnel") { | 837 if (m_name == "fresnel") { |
838 // This function has some output args | 838 // This function has some output args |
839 argwriteonly (3); | 839 argwriteonly (3); |
840 argwriteonly (4); | 840 argwriteonly (4); |
841 argwriteonly (5); | 841 argwriteonly (5); |
842 argwriteonly (6); | 842 argwriteonly (6); |
| 843 } else if (m_name == "sincos") { |
| 844 argwriteonly (1); |
| 845 argwriteonly (2); |
843 } else if (m_name == "getattribute" || m_name == "getmessage" || | 846 } else if (m_name == "getattribute" || m_name == "getmessage" || |
844 m_name == "gettextureinfo") { | 847 m_name == "gettextureinfo") { |
845 // these all write to their last argument | 848 // these all write to their last argument |
846 argwriteonly ((int)listlength(args())); | 849 argwriteonly ((int)listlength(args())); |
847 } else if (func()->texture_args()) { | 850 } else if (func()->texture_args()) { |
848 // texture-like function, look out for "alpha" | 851 // texture-like function, look out for "alpha" |
849 | 852 |
850 std::vector<ASTNode::ref> argvec; | 853 std::vector<ASTNode::ref> argvec; |
851 list_to_vec (args(), argvec); | 854 list_to_vec (args(), argvec); |
852 | 855 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 // "raylevel", "i", NULL, | 1102 // "raylevel", "i", NULL, |
1100 "reflect", "vvv", NULL, | 1103 "reflect", "vvv", NULL, |
1101 "refract", "vvvf", NULL, | 1104 "refract", "vvvf", NULL, |
1102 "regex_match", "iss", "isi[]s", NULL, | 1105 "regex_match", "iss", "isi[]s", NULL, |
1103 "regex_search", "iss", "isi[]s", NULL, | 1106 "regex_search", "iss", "isi[]s", NULL, |
1104 "rotate", "ppfpp", NULL, | 1107 "rotate", "ppfpp", NULL, |
1105 "round", ANY_ONE_FLOAT_BASED, NULL, | 1108 "round", ANY_ONE_FLOAT_BASED, NULL, |
1106 "setmessage", "xs?", "xs?[]", NULL, | 1109 "setmessage", "xs?", "xs?[]", NULL, |
1107 "sign", ANY_ONE_FLOAT_BASED, NULL, | 1110 "sign", ANY_ONE_FLOAT_BASED, NULL, |
1108 "sin", ANY_ONE_FLOAT_BASED, NULL, | 1111 "sin", ANY_ONE_FLOAT_BASED, NULL, |
| 1112 "sincos", "xfff", "xccc", "xppp", "xvvv", "xnnn", "!rw", NULL, |
1109 "sinh", ANY_ONE_FLOAT_BASED, NULL, | 1113 "sinh", ANY_ONE_FLOAT_BASED, NULL, |
1110 "smoothstep", "ffff", NULL, | 1114 "smoothstep", "ffff", NULL, |
1111 "snoise", NOISE_ARGS, NULL, | 1115 "snoise", NOISE_ARGS, NULL, |
1112 "sqrt", ANY_ONE_FLOAT_BASED, NULL, | 1116 "sqrt", ANY_ONE_FLOAT_BASED, NULL, |
1113 "startswith", "iss", NULL, | 1117 "startswith", "iss", NULL, |
1114 "step", "fff", NULL, | 1118 "step", "fff", NULL, |
1115 "strlen", "is", NULL, | 1119 "strlen", "is", NULL, |
1116 "substr", "ssii", NULL, | 1120 "substr", "ssii", NULL, |
1117 "surfacearea", "f", NULL, | 1121 "surfacearea", "f", NULL, |
1118 "tan", ANY_ONE_FLOAT_BASED, NULL, | 1122 "tan", ANY_ONE_FLOAT_BASED, NULL, |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 } | 1363 } |
1360 | 1364 |
1361 | 1365 |
1362 | 1366 |
1363 }; // namespace pvt | 1367 }; // namespace pvt |
1364 }; // namespace OSL | 1368 }; // namespace OSL |
1365 | 1369 |
1366 #ifdef OSL_NAMESPACE | 1370 #ifdef OSL_NAMESPACE |
1367 }; // end namespace OSL_NAMESPACE | 1371 }; // end namespace OSL_NAMESPACE |
1368 #endif | 1372 #endif |
OLD | NEW |