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:
Patrick Mours
2019-09-12 14:46:47 +02:00
committed by Brecht Van Lommel
parent 7eb293a37b
commit 53932f1f06
10 changed files with 828 additions and 200 deletions

View File

@@ -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);