25 #define CURVE_NUM_BEZIER_SUBDIVISIONS 3
26 #define CURVE_NUM_BEZIER_SUBDIVISIONS_UNSTABLE (CURVE_NUM_BEZIER_SUBDIVISIONS + 1)
27 #define CURVE_NUM_BEZIER_STEPS 2
28 #define CURVE_NUM_JACOBIAN_ITERATIONS 5
37 const float s = 1.0f - u;
38 const float n0 = -
t * s * s;
39 const float n1 = 2.0f +
t *
t * (3.0f *
t - 5.0f);
40 const float n2 = 2.0f + s * s * (3.0f * s - 5.0f);
41 const float n3 = -s *
t *
t;
48 const float s = 1.0f - u;
49 const float n0 = -s * s + 2.0f * s *
t;
50 const float n1 = 2.0f *
t * (3.0f *
t - 5.0f) + 3.0f *
t *
t;
51 const float n2 = 2.0f * s * (3.0f *
t + 2.0f) - 3.0f * s * s;
52 const float n3 = -2.0f * s *
t +
t *
t;
60 const float n0 = -3.0f *
t + 2.0f;
61 const float n1 = 9.0f *
t - 5.0f;
62 const float n2 = -9.0f *
t + 4.0f;
63 const float n3 = 3.0f *
t - 1.0f;
71 const float pp =
dot(p, p);
72 const float pdp =
dot(p, dp);
73 return (pp * dp - pdp * p) / (pp *
sqrtf(pp));
85 const float cylinder_radius,
94 const float rl = 1.0f /
len(cylinder_end - cylinder_start);
95 const float3 P0 = cylinder_start, dP = (cylinder_end - cylinder_start) * rl;
96 const float3 O = -P0, dO = ray_dir;
98 const float dOdO =
dot(dO, dO);
99 const float OdO =
dot(dO, O);
100 const float OO =
dot(O, O);
101 const float dOz =
dot(dP, dO);
102 const float Oz =
dot(dP, O);
104 const float A = dOdO -
sqr(dOz);
105 const float B = 2.0f * (OdO - dOz * Oz);
106 const float C = OO -
sqr(Oz) -
sqr(cylinder_radius);
109 const float D =
B *
B - 4.0f *
A *
C;
130 const float rcp_2A = 1.0f / (2.0f *
A);
131 const float t0 = (-
B - Q) * rcp_2A;
132 const float t1 = (-
B + Q) * rcp_2A;
136 *u0_o = (t0 * dOz + Oz) * rl;
137 const float3 Pr = t0 * ray_dir;
138 const float3 Pl = (*u0_o) * (cylinder_end - cylinder_start) + cylinder_start;
144 *u1_o = (t1 * dOz + Oz) * rl;
145 const float3 Pr = t1 * ray_dir;
146 const float3 Pl = (*u1_o) * (cylinder_end - cylinder_start) + cylinder_start;
159 const float ON =
dot(O,
N);
160 const float DN =
dot(
D,
N);
161 const float min_rcp_input = 1e-18f;
162 const bool eps =
fabsf(DN) < min_rcp_input;
163 const float t = -ON / DN;
164 const float lower = (
eps || DN < 0.0f) ? -FLT_MAX :
t;
165 const float upper = (
eps || DN > 0.0f) ? FLT_MAX :
t;
171 const float4
curve[4],
174 const bool use_backfacing,
177 const float length_ray_dir =
len(ray_dir);
182 const float4 box_abs =
max(
fabs(box_min),
fabs(box_max));
183 const float P_err = 16.0f * FLT_EPSILON *
184 max(box_abs.x,
max(box_abs.y,
max(box_abs.z, box_abs.w)));
185 const float radius_max = box_max.w;
189 const float3 dQdt = ray_dir;
190 const float Q_err = 16.0f * FLT_EPSILON * length_ray_dir *
t;
192 const float4 P4 = catmull_rom_basis_eval(
curve, u);
193 const float4 dPdu4 = catmull_rom_basis_derivative(
curve, u);
197 const float radius = P4.w;
198 const float dradiusdu = dPdu4.w;
203 const float len_R =
len(
R);
204 const float R_err =
max(Q_err, P_err);
205 const float3 dRdu = -dPdu;
209 const float3 dTdu = dnormalize(dPdu, ddPdu);
210 const float cos_err = P_err /
len(dPdu);
212 const float f =
dot(
R,
T);
213 const float f_err = len_R * P_err + R_err + cos_err * (1.0f + len_R);
214 const float dfdu =
dot(dRdu,
T) +
dot(
R, dTdu);
215 const float dfdt =
dot(dRdt,
T);
218 const float dKdu = (
dot(
R, dRdu) - f * dfdu);
219 const float dKdt = (
dot(
R, dRdt) - f * dfdt);
222 const float g =
sqrtf(
K) - radius;
223 const float g_err = R_err + f_err + 16.0f * FLT_EPSILON * radius_max;
224 const float dgdu = dKdu * rsqrt_K - dradiusdu;
225 const float dgdt = dKdt * rsqrt_K;
227 const float invdet = 1.0f / (dfdu * dgdt - dgdu * dfdt);
228 u -= (dgdt * f - dfdt * g) * invdet;
229 t -= (-dgdu * f + dfdu * g) * invdet;
233 if (!(0.0f <=
t && t <= isect->
t)) {
236 if (!(u >= 0.0f && u <= 1.0f)) {
242 const float3 U = dradiusdu *
R + dPdu;
245 if (!use_backfacing &&
dot(ray_dir, Ng) > 0.0f) {
267 const float dt =
dot(
center - ray_orig, ray_dir) /
dot(ray_dir, ray_dir);
268 const float3 ref = ray_orig + ray_dir * dt;
275 const bool use_backfacing =
false;
295 const float step = i * step_size;
298 const float dscale = (
u1 - u0) * (1.0f / 3.0f) * step_size;
299 const float vu0 =
mix(u0,
u1, step);
300 const float vu1 =
mix(u0,
u1, step + step_size);
302 const float4 P0 = catmull_rom_basis_eval(
curve, vu0);
303 const float4 dP0du = dscale * catmull_rom_basis_derivative(
curve, vu0);
304 const float4 P3 = catmull_rom_basis_eval(
curve, vu1);
305 const float4 dP3du = dscale * catmull_rom_basis_derivative(
curve, vu1);
307 const float4 P1 = P0 + dP0du;
308 const float4 P2 = P3 - dP3du;
315 const float maxr12 =
sqrtf(
max(rr1, rr2));
316 const float one_plus_ulp = 1.0f + 2.0f * FLT_EPSILON;
317 const float one_minus_ulp = 1.0f - 2.0f * FLT_EPSILON;
318 float r_outer =
max(
max(P0.w, P1.w),
max(P2.w, P3.w)) + maxr12;
319 float r_inner =
min(
min(P0.w, P1.w),
min(P2.w, P3.w)) - maxr12;
320 r_outer = one_plus_ulp * r_outer;
321 r_inner =
max(0.0f, one_minus_ulp * r_inner);
326 float u_outer0, u_outer1;
327 float3 Ng_outer0, Ng_outer1;
344 const float2 h0 = half_plane_intersect(
347 const float2 h1 = half_plane_intersect(
350 valid = tp.
x <= tp.
y;
356 u_outer0 =
clamp(u_outer0, 0.0f, 1.0f);
357 u_outer1 =
clamp(u_outer1, 0.0f, 1.0f);
363 float u_inner0, u_inner1;
364 float3 Ng_inner0, Ng_inner1;
377 const bool unstable0 = (!valid_inner) |
379 const bool unstable1 = (!valid_inner) |
385 const bool unstable0 =
true;
386 const bool unstable1 =
true;
392 bool valid0 = valid && (tp0.
x <= tp0.
y);
393 bool valid1 = valid && (tp1.
x <= tp1.
y);
394 if (!(valid0 || valid1)) {
399 bool recurse =
false;
403 if (depth >= termDepth) {
404 found |= curve_intersect_iterative(
405 ray_dir, dt,
curve, u_outer0, tp0.
x, use_backfacing, isect);
412 if (valid1 && (tp1.
x + dt <= isect->
t)) {
415 if (depth >= termDepth) {
416 found |= curve_intersect_iterative(
417 ray_dir, dt,
curve, u_outer1, tp1.
y, use_backfacing, isect);
425 stack[depth].u0 = u0;
426 stack[depth].u1 =
u1;
427 stack[depth].i = i + 1;
438 u0 = stack[depth].u0;
439 u1 = stack[depth].u1;
455 const float2 dp = p2 - p1;
456 const float num = dp.
x * p1.
y - dp.
y * p1.
x;
457 const float den2 =
dot(dp, dp);
458 return num * num <=
r *
r * den2;
477 const float3 va = quad_v0 - O;
478 const float3 vb = quad_v1 - O;
479 const float3 vc = quad_v2 - O;
480 const float3 vd = quad_v3 - O;
482 const float3 edb = vb - vd;
484 const float3 v0 = (WW <= 0.0f) ? va : vc;
485 const float3 v1 = (WW <= 0.0f) ? vb : vd;
486 const float3 v2 = (WW <= 0.0f) ? vd : vb;
495 if (!(
max(
U,
V) <= 0.0f)) {
501 const float den =
dot(Ng,
D);
502 const float rcpDen = 1.0f / den;
505 const float t = rcpDen *
dot(v0, Ng);
506 if (!(0.0f <=
t &&
t <= ray_tfar)) {
511 if (!(den != 0.0f)) {
519 *u_o = (WW <= 0.0f) ? *u_o : 1.0f - *u_o;
520 *v_o = (WW <= 0.0f) ? *v_o : 1.0f - *v_o;
530 ray_space[2] = ray_dir;
543 const float ray_tfar,
550 ribbon_ray_space(ray_dir, ray_space);
552 curve[0] = ribbon_to_ray_space(ray_space, ray_org,
curve[0]);
553 curve[1] = ribbon_to_ray_space(ray_space, ray_org,
curve[1]);
554 curve[2] = ribbon_to_ray_space(ray_space, ray_org,
curve[2]);
555 curve[3] = ribbon_to_ray_space(ray_space, ray_org,
curve[3]);
558 const float eps = 4.0f * FLT_EPSILON *
max(
max(mx.x, mx.y),
max(mx.z, mx.w));
559 const float step_size = 1.0f / (
float)
N;
562 float4 p0 = catmull_rom_basis_eval(
curve, 0.0f);
565 const float4 p1 = catmull_rom_basis_eval(
curve, step_size);
571 for (
int i = 0; i <
N; i++) {
572 const float u = i * step_size;
573 const float4 p1 = catmull_rom_basis_eval(
curve, u + step_size);
574 const bool valid = cylinder_culling_test(
591 bool valid0 = ribbon_intersect_quad(isect->
t, lp0, lp1, up1, up0, &vu, &vv, &vt);
595 const float avoidance_factor = 2.0f;
596 if (avoidance_factor != 0.0f) {
597 float r =
mix(p0.w, p1.w, vu);
598 valid0 = vt > avoidance_factor *
r;
602 vv = 2.0f * vv - 1.0f;
606 isect->
u = u + vu * step_size;
632 # ifndef __KERNEL_OPTIX__
635 if (time < prim_time.x || time > prim_time.
y) {
661 motion_curve_keys(
kg, fobject, prim,
time, ka, k0, k1, kb,
curve);
664 # ifdef __VISIBILITY_FLAG__
672 const int subdivisions =
kernel_data.bvh.curve_subdivisions;
673 if (ribbon_intersect(
P, dir, isect->
t, subdivisions,
curve, isect)) {
674 isect->
prim = curveAddr;
683 if (curve_intersect_recursive(
P, dir,
curve, isect)) {
684 isect->
prim = curveAddr;
704 # ifdef __OBJECT_MOTION__
733 motion_curve_keys(
kg, sd->object, sd->prim, sd->time, ka, k0, k1, kb, P_curve);
740 const float4 dPdu4 = catmull_rom_basis_derivative(P_curve, isect->
u);
747 const float sine = isect->
v;
748 const float cosine =
safe_sqrtf(1.0f - sine * sine);
757 const float dPdu_radius = dPdu4.w;
759 P += sd->N * dPdu_radius;
777 sd->dPdv =
cross(dPdu, sd->Ng);
781 # ifdef __OBJECT_MOTION__
typedef float(TangentPoint)[2]
MINLINE float safe_sqrtf(float a)
NSNotificationCenter * center
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble GLdouble r _GL_VOID_RET _GL_VOID GLfloat GLfloat r _GL_VOID_RET _GL_VOID GLint GLint r _GL_VOID_RET _GL_VOID GLshort GLshort r _GL_VOID_RET _GL_VOID GLdouble GLdouble r
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble u1
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble v1
ATTR_WARN_UNUSED_RESULT const BMVert * v2
#define CURVE_NUM_BEZIER_SUBDIVISIONS_UNSTABLE
#define CURVE_NUM_BEZIER_STEPS
#define CURVE_NUM_JACOBIAN_ITERATIONS
#define CURVE_NUM_BEZIER_SUBDIVISIONS
@ OBJECT_INVERSE_TRANSFORM
ccl_device_inline Transform object_fetch_transform(KernelGlobals *kg, int object, enum ObjectTransform type)
#define kernel_tex_fetch(tex, index)
#define ccl_device_forceinline
#define ccl_device_inline
#define CCL_NAMESPACE_END
#define make_float2(x, y)
#define make_float4(x, y, z, w)
#define make_float3(x, y, z)
@ PRIMITIVE_MOTION_CURVE_RIBBON
#define PRIMITIVE_UNPACK_SEGMENT(type)
Segment< FEdge *, Vec3r > segment
__forceinline avxf cross(const avxf &a, const avxf &b)
ccl_device_inline int __float_as_int(float f)
ccl_device_inline float sqr(float a)
ccl_device_inline float inversesqrtf(float f)
ccl_device_inline float3 float4_to_float3(const float4 a)
ccl_device_inline int clamp(int a, int mn, int mx)
ccl_device_inline float2 normalize(const float2 &a)
ccl_device_inline float dot(const float2 &a, const float2 &b)
ccl_device_inline float2 normalize_len(const float2 &a, float *t)
ccl_device_inline float2 fabs(const float2 &a)
ccl_device_inline float max3(float3 a)
CCL_NAMESPACE_BEGIN struct View V
BLI_INLINE float D(const float *data, const int res[3], int x, int y, int z)