Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/device/optix/kernel.cu
| Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| const uint prim = optixGetPrimitiveIndex(); | const uint prim = optixGetPrimitiveIndex(); | ||||
| const uint type = kernel_tex_fetch(__prim_type, prim); | const uint type = kernel_tex_fetch(__prim_type, prim); | ||||
| if (type & (PRIMITIVE_CURVE_RIBBON | PRIMITIVE_MOTION_CURVE_RIBBON)) { | if (type & (PRIMITIVE_CURVE_RIBBON | PRIMITIVE_MOTION_CURVE_RIBBON)) { | ||||
| optix_intersection_curve(prim, type); | optix_intersection_curve(prim, type); | ||||
| } | } | ||||
| } | } | ||||
| extern "C" __global__ void __intersection__curve_all() | |||||
| { | |||||
| const uint prim = optixGetPrimitiveIndex(); | |||||
| const uint type = kernel_tex_fetch(__prim_type, prim); | |||||
| optix_intersection_curve(prim, type); | |||||
| } | |||||
| #endif | #endif | ||||