|
Blender V5.3
|
Inherits blender::fn::multi_function::MultiFunction.
Public Member Functions | |
| ImageFieldsFunction (const int8_t interpolation, const int8_t extension, Image &image, ImageUser image_user) | |
| ~ImageFieldsFunction () override | |
| template<typename BufferT> | |
| void | sample_buffer (const BufferT *buffer, const IndexMask &mask, const VArray< float3 > &vectors, int width, int height, MutableSpan< float4 > &color_data) const |
| void | call (const IndexMask &mask, mf::Params params, mf::Context) const override |
| Public Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| virtual | ~MultiFunction ()=default |
| void | call_auto (const IndexMask &mask, Params params, Context context) const |
| virtual void | call (const IndexMask &mask, Params params, Context context) const =0 |
| virtual void | hash_unique (UniqueHashBytes &hash) const |
| virtual bool | equals (const MultiFunction &other) const |
| int | param_amount () const |
| IndexRange | param_indices () const |
| ParamType | param_type (int param_index) const |
| StringRefNull | param_name (int param_index) const |
| StringRefNull | name () const |
| virtual std::string | debug_name () const |
| const Signature & | signature () const |
| ExecutionHints | execution_hints () const |
| virtual void | prepare_for_execution () const |
Static Public Member Functions | |
| static int | wrap_periodic (int x, const int width) |
| static int | wrap_clamp (const int x, const int width) |
| static int | wrap_mirror (const int x, const int width) |
| static float4 | image_pixel_lookup (const float *buffer, const int width, const int height, const int px, const int py) |
| static float4 | image_pixel_lookup (const uint8_t *buffer, const int width, const int height, const int px, const int py) |
| static float | frac (const float x, int *ix) |
| template<typename BufferT> | |
| static float4 | image_cubic_texture_lookup (const BufferT *buffer, const int width, const int height, const float2 coord, const int extension) |
| template<typename BufferT> | |
| static float4 | image_linear_texture_lookup (const BufferT *buffer, const int width, const int height, const float2 coord, const int8_t extension) |
| template<typename BufferT> | |
| static float4 | image_closest_texture_lookup (const BufferT *buffer, const int width, const int height, const float2 coord, const int extension) |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| void | set_signature (const Signature *signature) |
| virtual ExecutionHints | get_execution_hints () const |
Definition at line 55 of file node_geo_image_texture.cc.
|
inline |
Definition at line 65 of file node_geo_image_texture.cc.
References blender::BKE_image_acquire_ibuf(), blender::fn::multi_function::MultiFunction::set_signature(), and blender::fn::multi_function::MultiFunction::signature().
|
inlineoverride |
Definition at line 90 of file node_geo_image_texture.cc.
References blender::BKE_image_release_ibuf().
|
inlineoverride |
Definition at line 358 of file node_geo_image_texture.cc.
References BLI_assert_unreachable, blender::IMA_ALPHA_CHANNEL_PACKED, blender::IMA_ALPHA_IGNORE, blender::IMA_ALPHA_PREMUL, blender::IMA_ALPHA_STRAIGHT, blender::IMB_colormanagement_space_name_is_data(), sample_buffer(), and blender::straight_to_premul_v4().
|
inlinestatic |
Definition at line 139 of file node_geo_image_texture.cc.
References float, and blender::x.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().
|
inlinestatic |
Definition at line 286 of file node_geo_image_texture.cc.
References ATTR_FALLTHROUGH, frac(), image_pixel_lookup(), blender::SHD_IMAGE_EXTENSION_CLIP, blender::SHD_IMAGE_EXTENSION_EXTEND, blender::SHD_IMAGE_EXTENSION_MIRROR, blender::SHD_IMAGE_EXTENSION_REPEAT, wrap_clamp(), wrap_mirror(), and wrap_periodic().
Referenced by sample_buffer().
|
inlinestatic |
Definition at line 147 of file node_geo_image_texture.cc.
References frac(), image_pixel_lookup(), blender::SHD_IMAGE_EXTENSION_CLIP, blender::SHD_IMAGE_EXTENSION_EXTEND, blender::SHD_IMAGE_EXTENSION_MIRROR, blender::SHD_IMAGE_EXTENSION_REPEAT, blender::v, wrap_clamp(), wrap_mirror(), and wrap_periodic().
Referenced by sample_buffer().
|
inlinestatic |
Definition at line 238 of file node_geo_image_texture.cc.
References frac(), image_pixel_lookup(), blender::SHD_IMAGE_EXTENSION_CLIP, blender::SHD_IMAGE_EXTENSION_EXTEND, blender::SHD_IMAGE_EXTENSION_MIRROR, blender::SHD_IMAGE_EXTENSION_REPEAT, wrap_clamp(), wrap_mirror(), and wrap_periodic().
Referenced by sample_buffer().
|
inlinestatic |
Definition at line 118 of file node_geo_image_texture.cc.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().
|
inlinestatic |
Definition at line 127 of file node_geo_image_texture.cc.
References blender::rgba_uchar_to_float().
|
inline |
Definition at line 327 of file node_geo_image_texture.cc.
References image_closest_texture_lookup(), image_cubic_texture_lookup(), image_linear_texture_lookup(), blender::SHD_INTERP_CLOSEST, blender::SHD_INTERP_CUBIC, blender::SHD_INTERP_LINEAR, and blender::SHD_INTERP_SMART.
Referenced by call().
|
inlinestatic |
Definition at line 104 of file node_geo_image_texture.cc.
References blender::x.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().
|
inlinestatic |
Definition at line 109 of file node_geo_image_texture.cc.
References blender::x.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().
|
inlinestatic |
Definition at line 95 of file node_geo_image_texture.cc.
References blender::x.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().