Blender V4.3
aov_passes.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include "kernel/geom/geom.h"
8
9#include "kernel/film/write.h"
10
12
16 const int aov_id,
17 const float value)
18{
20 film_write_pass_float(buffer + kernel_data.film.pass_aov_value + aov_id, value);
21}
22
26 const int aov_id,
27 const float3 color)
28{
30 film_write_pass_float4(buffer + kernel_data.film.pass_aov_color + aov_id,
31 make_float4(color.x, color.y, color.z, 1.0f));
32}
33
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Brightness Control the brightness and contrast of the input color Vector Map input vector components with curves Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert Invert a color
ccl_device_inline void film_write_aov_pass_color(KernelGlobals kg, ConstIntegratorState state, ccl_global float *ccl_restrict render_buffer, const int aov_id, const float3 color)
Definition aov_passes.h:23
CCL_NAMESPACE_BEGIN ccl_device_inline void film_write_aov_pass_value(KernelGlobals kg, ConstIntegratorState state, ccl_global float *ccl_restrict render_buffer, const int aov_id, const float value)
Definition aov_passes.h:13
#define kernel_data
const KernelGlobalsCPU *ccl_restrict KernelGlobals
#define ccl_restrict
#define ccl_device_inline
#define ccl_global
#define CCL_NAMESPACE_END
ccl_device_forceinline float4 make_float4(const float x, const float y, const float z, const float w)
ccl_gpu_kernel_postfix ccl_global KernelWorkTile const int ccl_global float * render_buffer
static ulong state[N]
const IntegratorStateCPU *ccl_restrict ConstIntegratorState
Definition state.h:229
CCL_NAMESPACE_BEGIN ccl_device_forceinline ccl_global float * film_pass_pixel_render_buffer(KernelGlobals kg, ConstIntegratorState state, ccl_global float *ccl_restrict render_buffer)
Definition write.h:17
ccl_device_inline void film_write_pass_float4(ccl_global float *ccl_restrict buffer, float4 value)
Definition write.h:71
ccl_device_inline void film_write_pass_float(ccl_global float *ccl_restrict buffer, float value)
Definition write.h:39