Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | SET_CUBIC_SPLINE_WEIGHTS(u, t) |
Functions | |
template<typename T > | |
CCL_NAMESPACE_BEGIN ccl_device_forceinline T | tex_fetch (const TextureInfo &info, int index) |
ccl_device_inline int | svm_image_texture_wrap_periodic (int x, int width) |
ccl_device_inline int | svm_image_texture_wrap_clamp (int x, int width) |
ccl_device_inline float4 | svm_image_texture_read (const TextureInfo &info, int x, int y, int z) |
ccl_device_inline float4 | svm_image_texture_read_2d (int id, int x, int y) |
ccl_device_inline float4 | svm_image_texture_read_3d (int id, int x, int y, int z) |
static float | svm_image_texture_frac (float x, int *ix) |
ccl_device float4 | kernel_tex_image_interp (KernelGlobals, int id, float x, float y) |
ccl_device float4 | kernel_tex_image_interp_3d (KernelGlobals, int id, float3 P, int interp) |
Definition at line 128 of file cycles/kernel/device/oneapi/image.h.
ccl_device float4 kernel_tex_image_interp | ( | KernelGlobals | , |
int | id, | ||
float | x, | ||
float | y | ||
) |
Definition at line 137 of file cycles/kernel/device/oneapi/image.h.
References TextureInfo::height, TextureInfo::interpolation, INTERPOLATION_CLOSEST, INTERPOLATION_LINEAR, kernel_data_fetch, make_float4, r, SET_CUBIC_SPLINE_WEIGHTS, svm_image_texture_frac(), svm_image_texture_read_2d(), v, TextureInfo::width, x, and y.
ccl_device float4 kernel_tex_image_interp_3d | ( | KernelGlobals | , |
int | id, | ||
float3 | P, | ||
int | interp | ||
) |
Definition at line 284 of file cycles/kernel/device/oneapi/image.h.
References TextureInfo::data_type, TextureInfo::depth, TextureInfo::height, if(), IMAGE_DATA_TYPE_NANOVDB_FLOAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT3, IMAGE_DATA_TYPE_NANOVDB_FP16, IMAGE_DATA_TYPE_NANOVDB_FPN, interp(), TextureInfo::interpolation, INTERPOLATION_CLOSEST, INTERPOLATION_LINEAR, INTERPOLATION_NONE, kernel_data_fetch, make_float4, P(), r, SET_CUBIC_SPLINE_WEIGHTS, svm_image_texture_frac(), svm_image_texture_read_3d(), TEX_IMAGE_MISSING_A, TEX_IMAGE_MISSING_B, TEX_IMAGE_MISSING_G, TEX_IMAGE_MISSING_R, TextureInfo::transform_3d, transform_point(), TextureInfo::use_transform_3d, v, w(), TextureInfo::width, x, y, and z.
Definition at line 121 of file cycles/kernel/device/oneapi/image.h.
References float(), float_to_int(), and x.
Referenced by kernel_tex_image_interp(), and kernel_tex_image_interp_3d().
ccl_device_inline float4 svm_image_texture_read | ( | const TextureInfo & | info, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Definition at line 27 of file cycles/kernel/device/oneapi/image.h.
References TextureInfo::data_type, TextureInfo::height, IMAGE_DATA_TYPE_BYTE4, IMAGE_DATA_TYPE_FLOAT, IMAGE_DATA_TYPE_FLOAT4, IMAGE_DATA_TYPE_HALF, IMAGE_DATA_TYPE_HALF4, IMAGE_DATA_TYPE_USHORT, IMAGE_DATA_TYPE_USHORT4, make_float4, r, TextureInfo::width, x, y, and z.
Referenced by svm_image_texture_read_2d(), and svm_image_texture_read_3d().
ccl_device_inline float4 svm_image_texture_read_2d | ( | int | id, |
int | x, | ||
int | y | ||
) |
Definition at line 75 of file cycles/kernel/device/oneapi/image.h.
References TextureInfo::extension, EXTENSION_EXTEND, EXTENSION_REPEAT, TextureInfo::height, kernel_data_fetch, make_float4, svm_image_texture_read(), svm_image_texture_wrap_clamp(), svm_image_texture_wrap_periodic(), TextureInfo::width, x, and y.
Referenced by kernel_tex_image_interp().
ccl_device_inline float4 svm_image_texture_read_3d | ( | int | id, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Definition at line 97 of file cycles/kernel/device/oneapi/image.h.
References TextureInfo::depth, TextureInfo::extension, EXTENSION_EXTEND, EXTENSION_REPEAT, TextureInfo::height, kernel_data_fetch, make_float4, svm_image_texture_read(), svm_image_texture_wrap_clamp(), svm_image_texture_wrap_periodic(), TextureInfo::width, x, y, and z.
Referenced by kernel_tex_image_interp_3d().
ccl_device_inline int svm_image_texture_wrap_clamp | ( | int | x, |
int | width | ||
) |
Definition at line 22 of file cycles/kernel/device/oneapi/image.h.
References blender::math::clamp(), width, and x.
Referenced by svm_image_texture_read_2d(), and svm_image_texture_read_3d().
ccl_device_inline int svm_image_texture_wrap_periodic | ( | int | x, |
int | width | ||
) |
Definition at line 14 of file cycles/kernel/device/oneapi/image.h.
Referenced by svm_image_texture_read_2d(), and svm_image_texture_read_3d().
CCL_NAMESPACE_BEGIN ccl_device_forceinline T tex_fetch | ( | const TextureInfo & | info, |
int | index | ||
) |
Definition at line 9 of file cycles/kernel/device/oneapi/image.h.
References ccl_global, TextureInfo::data, and T.