|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device float4 | film_get_pass_result (KernelGlobals *kg, ccl_global float *buffer, float sample_scale, int index, bool use_display_sample_scale) |
| ccl_device float4 | film_map (KernelGlobals *kg, float4 rgba_in, float scale) |
| ccl_device uchar4 | film_float_to_byte (float4 color) |
| ccl_device void | kernel_film_convert_to_byte (KernelGlobals *kg, ccl_global uchar4 *rgba, ccl_global float *buffer, float sample_scale, int x, int y, int offset, int stride) |
| ccl_device void | kernel_film_convert_to_half_float (KernelGlobals *kg, ccl_global uchar4 *rgba, ccl_global float *buffer, float sample_scale, int x, int y, int offset, int stride) |
| ccl_device uchar4 film_float_to_byte | ( | float4 | color | ) |
Definition at line 77 of file kernel_film.h.
References result, and saturate().
Referenced by kernel_film_convert_to_byte().
| CCL_NAMESPACE_BEGIN ccl_device float4 film_get_pass_result | ( | KernelGlobals * | kg, |
| ccl_global float * | buffer, | ||
| float | sample_scale, | ||
| int | index, | ||
| bool | use_display_sample_scale | ||
| ) |
Definition at line 19 of file kernel_film.h.
References alpha, buffer, ccl_global, float4_to_float3(), kernel_data, make_float4, safe_divide_even_color(), float3::x, float3::y, and float3::z.
Referenced by kernel_film_convert_to_byte(), and kernel_film_convert_to_half_float().
| ccl_device float4 film_map | ( | KernelGlobals * | kg, |
| float4 | rgba_in, | ||
| float | scale | ||
| ) |
Definition at line 62 of file kernel_film.h.
References color_linear_to_srgb(), result, and saturate().
Referenced by kernel_film_convert_to_byte().
| ccl_device void kernel_film_convert_to_byte | ( | KernelGlobals * | kg, |
| ccl_global uchar4 * | rgba, | ||
| ccl_global float * | buffer, | ||
| float | sample_scale, | ||
| int | x, | ||
| int | y, | ||
| int | offset, | ||
| int | stride | ||
| ) |
Definition at line 90 of file kernel_film.h.
References buffer, film_float_to_byte(), film_get_pass_result(), film_map(), kernel_data, kg, stride, x, and y.
Referenced by convert_to_byte().
| ccl_device void kernel_film_convert_to_half_float | ( | KernelGlobals * | kg, |
| ccl_global uchar4 * | rgba, | ||
| ccl_global float * | buffer, | ||
| float | sample_scale, | ||
| int | x, | ||
| int | y, | ||
| int | offset, | ||
| int | stride | ||
| ) |
Definition at line 113 of file kernel_film.h.
References buffer, ccl_global, film_get_pass_result(), float4_store_half(), kernel_data, kg, stride, x, and y.
Referenced by convert_to_half_float().