28 const int center_step = (num_steps - 1) / 2;
29 if (
step == center_step) {
34 if (
step < center_step) {
37 return step * num_verts;
41 KernelGlobals kg,
int offset,
const int numverts,
const int numsteps,
int step,
const int prim)
43 offset += motion_point_offset_for_step(numverts, numsteps,
step);
58 const int maxstep = numsteps - 1;
59 const int step =
min((
int)(time * maxstep), maxstep - 1);
60 const float t =
time * maxstep -
step;
64 const float4 point = motion_point_for_step(kg, offset, numverts, numsteps,
step, prim);
65 const float4 next_point = motion_point_for_step(kg, offset, numverts, numsteps,
step + 1, prim);
68 return (1.0f - t) * point + t * next_point;
#define ccl_device_forceinline
#define kernel_data_fetch(name, index)
#define ccl_device_inline
#define CCL_NAMESPACE_END
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
std::string time(const std::tm &date_time, TimeFormat format=TimeFormat::H24)