MCPcopy Create free account
hub / github.com/blender/cycles / is_optix_specific_kernel

Function is_optix_specific_kernel

src/device/optix/queue.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static bool is_optix_specific_kernel(DeviceKernel kernel, bool osl_shading, bool osl_camera)
25{
26# ifdef WITH_OSL
27 /* OSL uses direct callables to execute, so shading needs to be done in OptiX if OSL is used. */
28 if (osl_shading && device_kernel_has_shading(kernel)) {
29 return true;
30 }
31 if (osl_camera && kernel == DEVICE_KERNEL_INTEGRATOR_INIT_FROM_CAMERA) {
32 return true;
33 }
34# else
35 (void)osl_shading;
36 (void)osl_camera;
37# endif
38
39 return device_kernel_has_intersection(kernel);
40}
41
42bool OptiXDeviceQueue::enqueue(DeviceKernel kernel,
43 const int work_size,

Callers 1

enqueueMethod · 0.85

Calls 2

Tested by

no test coverage detected