|
Blender V5.0
|
#include "kernel/svm/util.h"Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline float | fetch_float (KernelGlobals kg, const int offset) |
| ccl_device_inline float | float_ramp_lookup (KernelGlobals kg, const int offset, float f, bool interpolate, bool extrapolate, const int table_size) |
| ccl_device_inline float4 | rgb_ramp_lookup (KernelGlobals kg, const int offset, float f, bool interpolate, bool extrapolate, const int table_size) |
| ccl_device_noinline int | svm_node_rgb_ramp (KernelGlobals kg, ccl_private float *stack, const uint4 node, int offset) |
| ccl_device_noinline int | svm_node_curves (KernelGlobals kg, ccl_private float *stack, const uint4 node, int offset) |
| ccl_device_noinline int | svm_node_curve (KernelGlobals kg, ccl_private float *stack, const uint4 node, int offset) |
| CCL_NAMESPACE_BEGIN ccl_device_inline float fetch_float | ( | KernelGlobals | kg, |
| const int | offset ) |
Definition at line 13 of file ramp.h.
References __uint_as_float, ccl_device_inline, kernel_data_fetch, and uint4::x.
Referenced by float_ramp_lookup().
| ccl_device_inline float float_ramp_lookup | ( | KernelGlobals | kg, |
| const int | offset, | ||
| float | f, | ||
| bool | interpolate, | ||
| bool | extrapolate, | ||
| const int | table_size ) |
Definition at line 19 of file ramp.h.
References ccl_device_inline, clamp(), fetch_float(), float, float_to_int(), i, and saturatef.
Referenced by FloatCurveNode::constant_fold(), RGBRampNode::constant_fold(), and svm_node_curve().
| ccl_device_inline float4 rgb_ramp_lookup | ( | KernelGlobals | kg, |
| const int | offset, | ||
| float | f, | ||
| bool | interpolate, | ||
| bool | extrapolate, | ||
| const int | table_size ) |
Definition at line 57 of file ramp.h.
References ccl_device_inline, clamp(), fetch_node_float(), float, float_to_int(), i, and saturatef.
Referenced by svm_node_curves(), and svm_node_rgb_ramp().
| ccl_device_noinline int svm_node_curve | ( | KernelGlobals | kg, |
| ccl_private float * | stack, | ||
| const uint4 | node, | ||
| int | offset ) |
Definition at line 155 of file ramp.h.
References __int_as_float, ccl_device_noinline, ccl_private, float_ramp_lookup(), in, max, min, read_node(), stack_load_float(), stack_store_float(), svm_unpack_node_uchar4(), v, uint4::w, uint4::x, uint4::y, and uint4::z.
Referenced by svm_eval_nodes().
| ccl_device_noinline int svm_node_curves | ( | KernelGlobals | kg, |
| ccl_private float * | stack, | ||
| const uint4 | node, | ||
| int | offset ) |
Definition at line 123 of file ramp.h.
References __int_as_float, b, ccl_device_noinline, ccl_private, make_float3(), read_node(), rgb_ramp_lookup(), stack_load_float(), stack_load_float3(), stack_store_float3(), svm_unpack_node_uchar4(), uint4::w, float3::x, float4::x, uint4::x, float3::y, float4::y, uint4::y, float3::z, float4::z, and uint4::z.
Referenced by svm_eval_nodes().
| ccl_device_noinline int svm_node_rgb_ramp | ( | KernelGlobals | kg, |
| ccl_private float * | stack, | ||
| const uint4 | node, | ||
| int | offset ) |
Definition at line 95 of file ramp.h.
References ccl_device_noinline, ccl_private, make_float3(), read_node(), rgb_ramp_lookup(), stack_load_float(), stack_store_float(), stack_store_float3(), stack_valid(), svm_unpack_node_uchar3(), float4::w, uint4::x, uint4::y, and uint4::z.
Referenced by svm_eval_nodes().