Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_aov.h
| Show All 32 Lines | |||||
| { | { | ||||
| float3 val = stack_load_float3(stack, node.y); | float3 val = stack_load_float3(stack, node.y); | ||||
| if (render_buffer && !INTEGRATOR_STATE_IS_NULL) { | if (render_buffer && !INTEGRATOR_STATE_IS_NULL) { | ||||
| const uint32_t render_pixel_index = INTEGRATOR_STATE(path, render_pixel_index); | const uint32_t render_pixel_index = INTEGRATOR_STATE(path, render_pixel_index); | ||||
| const uint64_t render_buffer_offset = (uint64_t)render_pixel_index * | const uint64_t render_buffer_offset = (uint64_t)render_pixel_index * | ||||
| kernel_data.film.pass_stride; | kernel_data.film.pass_stride; | ||||
| ccl_global float *buffer = render_buffer + render_buffer_offset + | ccl_global float *buffer = render_buffer + render_buffer_offset + | ||||
| (kernel_data.film.pass_aov_color + 4 * node.z); | (kernel_data.film.pass_aov_color + node.z); | ||||
| kernel_write_pass_float4(buffer, make_float4(val.x, val.y, val.z, 1.0f)); | kernel_write_pass_float3(buffer, make_float3(val.x, val.y, val.z)); | ||||
| } | } | ||||
| } | } | ||||
| ccl_device void svm_node_aov_value(INTEGRATOR_STATE_CONST_ARGS, | ccl_device void svm_node_aov_value(INTEGRATOR_STATE_CONST_ARGS, | ||||
| ShaderData *sd, | ShaderData *sd, | ||||
| float *stack, | float *stack, | ||||
| uint4 node, | uint4 node, | ||||
| ccl_global float *render_buffer) | ccl_global float *render_buffer) | ||||
| Show All 13 Lines | |||||