Cycles: add Optix support in the kernel
This adds all the kernel side changes for the Optix backend. Ref D5363
This commit is contained in:

committed by
Brecht Van Lommel

parent
7eb293a37b
commit
53932f1f06
@@ -48,10 +48,16 @@ ccl_device void shader_setup_object_transforms(KernelGlobals *kg, ShaderData *sd
|
||||
}
|
||||
#endif
|
||||
|
||||
ccl_device_noinline void shader_setup_from_ray(KernelGlobals *kg,
|
||||
ShaderData *sd,
|
||||
const Intersection *isect,
|
||||
const Ray *ray)
|
||||
#ifdef __KERNEL_OPTIX__
|
||||
ccl_device_inline
|
||||
#else
|
||||
ccl_device_noinline
|
||||
#endif
|
||||
void
|
||||
shader_setup_from_ray(KernelGlobals *kg,
|
||||
ShaderData *sd,
|
||||
const Intersection *isect,
|
||||
const Ray *ray)
|
||||
{
|
||||
PROFILING_INIT(kg, PROFILING_SHADER_SETUP);
|
||||
|
||||
|
Reference in New Issue
Block a user