Cycles: ifdef some extra code when building split kernels
This commit is contained in:
@@ -18,6 +18,8 @@ CCL_NAMESPACE_BEGIN
|
||||
|
||||
#undef USE_BAKE_JITTER
|
||||
|
||||
#ifndef __NO_BAKING__
|
||||
|
||||
ccl_device void compute_light_pass(KernelGlobals *kg, ShaderData *sd, PathRadiance *L, RNG rng,
|
||||
const bool is_ao, const bool is_sss, int sample)
|
||||
{
|
||||
@@ -525,6 +527,8 @@ ccl_device void kernel_bake_evaluate(KernelGlobals *kg, ccl_global uint4 *input,
|
||||
output[i] += make_float4(out.x, out.y, out.z, 1.0f) * output_fac;
|
||||
}
|
||||
|
||||
#endif /* __NO_BAKING__ */
|
||||
|
||||
ccl_device void kernel_shader_evaluate(KernelGlobals *kg,
|
||||
ccl_global uint4 *input,
|
||||
ccl_global float4 *output,
|
||||
|
Reference in New Issue
Block a user