| 339 | } |
| 340 | |
| 341 | void testPoint3Array(const TBlock<void,const Point3Array> & blk, Context * context, LineInfoArg * at) { |
| 342 | Point3Array arr; |
| 343 | for (int32_t x = 0; x != 10; ++x) { |
| 344 | Point3 p; |
| 345 | p.x = 1.0f; |
| 346 | p.y = 2.0f; |
| 347 | p.z = 3.0f; |
| 348 | arr.push_back(p); |
| 349 | } |
| 350 | vec4f args[1]; |
| 351 | args[0] = cast<Point3Array *>::from(&arr); |
| 352 | context->invoke(blk, args, nullptr, at); |
| 353 | } |
| 354 | |
| 355 | |
| 356 | float2 test_abi_mad2 ( float2 a, float2 b, float2 c ) { |