Blender
V3.3
|
Public Member Functions | |
ImageFieldsFunction (const int interpolation, const int extension, Image &image, ImageUser image_user) | |
~ImageFieldsFunction () override | |
void | call (IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override |
![]() | |
virtual | ~MultiFunction () |
void | call_auto (IndexMask mask, MFParams params, MFContext context) const |
virtual void | call (IndexMask mask, MFParams params, MFContext context) const =0 |
virtual uint64_t | hash () const |
virtual bool | equals (const MultiFunction &UNUSED(other)) const |
int | param_amount () const |
IndexRange | param_indices () const |
MFParamType | param_type (int param_index) const |
StringRefNull | param_name (int param_index) const |
StringRefNull | name () const |
virtual std::string | debug_name () const |
bool | depends_on_context () const |
const MFSignature & | signature () const |
ExecutionHints | execution_hints () const |
Static Public Member Functions | |
static fn::MFSignature | create_signature () |
static int | wrap_periodic (int x, const int width) |
static int | wrap_clamp (const int x, const int width) |
static float4 | image_pixel_lookup (const ImBuf *ibuf, const int px, const int py) |
static float | frac (const float x, int *ix) |
static float4 | image_cubic_texture_lookup (const ImBuf *ibuf, const float px, const float py, const int extension) |
static float4 | image_linear_texture_lookup (const ImBuf *ibuf, const float px, const float py, const int extension) |
static float4 | image_closest_texture_lookup (const ImBuf *ibuf, const float px, const float py, const int extension) |
Additional Inherited Members | |
![]() | |
void | set_signature (const MFSignature *signature) |
virtual ExecutionHints | get_execution_hints () const |
Definition at line 46 of file node_geo_image_texture.cc.
|
inline |
Definition at line 56 of file node_geo_image_texture.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BLI_thread_lock(), BLI_thread_unlock(), create_signature(), IMB_float_from_rect(), LOCK_IMAGE, ImBuf::rect_float, blender::fn::MultiFunction::set_signature(), and blender::fn::MultiFunction::signature().
|
inlineoverride |
Definition at line 87 of file node_geo_image_texture.cc.
References BKE_image_release_ibuf().
|
inlineoverride |
Definition at line 288 of file node_geo_image_texture.cc.
References Image::alpha_mode, Image::colorspace_settings, blender::MutableSpan< T >::data(), IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, IMA_ALPHA_PREMUL, IMA_ALPHA_STRAIGHT, image_closest_texture_lookup(), image_cubic_texture_lookup(), image_linear_texture_lookup(), IMB_colormanagement_space_name_is_data(), mask(), ColorManagedColorspaceSettings::name, params, SHD_INTERP_CLOSEST, SHD_INTERP_CUBIC, SHD_INTERP_LINEAR, SHD_INTERP_SMART, and straight_to_premul_v4().
|
inlinestatic |
Definition at line 92 of file node_geo_image_texture.cc.
References blender::fn::MultiFunction::signature().
Referenced by ImageFieldsFunction().
|
inlinestatic |
Definition at line 123 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 252 of file node_geo_image_texture.cc.
References ATTR_FALLTHROUGH, frac(), height, image_pixel_lookup(), SHD_IMAGE_EXTENSION_CLIP, SHD_IMAGE_EXTENSION_EXTEND, SHD_IMAGE_EXTENSION_REPEAT, width, wrap_clamp(), wrap_periodic(), ImBuf::x, and ImBuf::y.
Referenced by call().
|
inlinestatic |
Definition at line 130 of file node_geo_image_texture.cc.
References frac(), height, image_pixel_lookup(), SHD_IMAGE_EXTENSION_CLIP, SHD_IMAGE_EXTENSION_EXTEND, SHD_IMAGE_EXTENSION_REPEAT, v, width, wrap_clamp(), wrap_periodic(), ImBuf::x, and ImBuf::y.
Referenced by call().
|
inlinestatic |
Definition at line 210 of file node_geo_image_texture.cc.
References frac(), height, image_pixel_lookup(), SHD_IMAGE_EXTENSION_CLIP, SHD_IMAGE_EXTENSION_EXTEND, SHD_IMAGE_EXTENSION_REPEAT, width, wrap_clamp(), wrap_periodic(), ImBuf::x, and ImBuf::y.
Referenced by call().
|
inlinestatic |
Definition at line 115 of file node_geo_image_texture.cc.
References ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().
|
inlinestatic |
Definition at line 110 of file node_geo_image_texture.cc.
References blender::math::clamp(), width, and x.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().
|
inlinestatic |
Definition at line 101 of file node_geo_image_texture.cc.
Referenced by image_closest_texture_lookup(), image_cubic_texture_lookup(), and image_linear_texture_lookup().