|
Blender
V2.93
|
#include "kernel/kernel_textures.h"Go to the source code of this file.
Macros | |
| #define | KERNEL_TEX(type, name) +1 |
| #define | tex_fetch(type, info, index) ((ccl_global type *)(kg->buffers[info->cl_buffer] + info->data))[(index)] |
| #define | SET_CUBIC_SPLINE_WEIGHTS(u, t) |
| #define | NANOVDB_ACCESS_POINTER NULL |
Functions | |
| ccl_device_inline ccl_global TextureInfo * | kernel_tex_info (KernelGlobals *kg, uint id) |
| 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 (KernelGlobals *kg, const ccl_global TextureInfo *info, void *acc, int x, int y, int z) |
| ccl_device_inline float4 | svm_image_texture_read_2d (KernelGlobals *kg, int id, void *acc, int x, int y) |
| ccl_device_inline float4 | svm_image_texture_read_3d (KernelGlobals *kg, int id, void *acc, int x, int y, int z) |
| ccl_device_inline float | svm_image_texture_frac (float x, int *ix) |
| ccl_device float4 | kernel_tex_image_interp (KernelGlobals *kg, int id, float x, float y) |
| ccl_device float4 | kernel_tex_image_interp_3d (KernelGlobals *kg, int id, float3 P, int interp) |
| #define KERNEL_TEX | ( | type, | |
| name | |||
| ) | +1 |
| #define NANOVDB_ACCESS_POINTER NULL |
| #define SET_CUBIC_SPLINE_WEIGHTS | ( | u, | |
| t | |||
| ) |
Definition at line 193 of file kernel_opencl_image.h.
| #define tex_fetch | ( | type, | |
| info, | |||
| index | |||
| ) | ((ccl_global type *)(kg->buffers[info->cl_buffer] + info->data))[(index)] |
Definition at line 46 of file kernel_opencl_image.h.
| ccl_device float4 kernel_tex_image_interp | ( | KernelGlobals * | kg, |
| int | id, | ||
| float | x, | ||
| float | y | ||
| ) |
Definition at line 202 of file kernel_opencl_image.h.
References ccl_global, EXTENSION_CLIP, INTERPOLATION_CLOSEST, INTERPOLATION_LINEAR, kernel_tex_info(), kg, make_float4, NULL, r, SET_CUBIC_SPLINE_WEIGHTS, svm_image_texture_frac(), svm_image_texture_read_2d(), v, x, and y.
| ccl_device float4 kernel_tex_image_interp_3d | ( | KernelGlobals * | kg, |
| int | id, | ||
| float3 | P, | ||
| int | interp | ||
| ) |
Definition at line 255 of file kernel_opencl_image.h.
References ccl_global, EXTENSION_CLIP, if(), IMAGE_DATA_TYPE_NANOVDB_FLOAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT3, interp(), INTERPOLATION_CLOSEST, INTERPOLATION_LINEAR, INTERPOLATION_NONE, kernel_tex_info(), kg, make_float4, NANOVDB_ACCESS_POINTER, P(), r, SET_CUBIC_SPLINE_WEIGHTS, svm_image_texture_frac(), svm_image_texture_read_3d(), transform_point(), v, w(), x, y, and z.
| ccl_device_inline ccl_global TextureInfo* kernel_tex_info | ( | KernelGlobals * | kg, |
| uint | id | ||
| ) |
Definition at line 36 of file kernel_opencl_image.h.
References ccl_global, and kg.
Referenced by kernel_tex_image_interp(), kernel_tex_image_interp_3d(), svm_image_texture_read_2d(), and svm_image_texture_read_3d().
| ccl_device_inline float svm_image_texture_frac | ( | float | x, |
| int * | ix | ||
| ) |
Definition at line 186 of file kernel_opencl_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 | ( | KernelGlobals * | kg, |
| const ccl_global TextureInfo * | info, | ||
| void * | acc, | ||
| int | x, | ||
| int | y, | ||
| int | z | ||
| ) |
Definition at line 62 of file kernel_opencl_image.h.
References IMAGE_DATA_TYPE_BYTE4, IMAGE_DATA_TYPE_FLOAT, IMAGE_DATA_TYPE_FLOAT4, IMAGE_DATA_TYPE_HALF, IMAGE_DATA_TYPE_HALF4, IMAGE_DATA_TYPE_NANOVDB_FLOAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT3, IMAGE_DATA_TYPE_USHORT, IMAGE_DATA_TYPE_USHORT4, make_float4, r, tex_fetch, 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 | ( | KernelGlobals * | kg, |
| int | id, | ||
| void * | acc, | ||
| int | x, | ||
| int | y | ||
| ) |
Definition at line 135 of file kernel_opencl_image.h.
References ccl_global, EXTENSION_REPEAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT3, kernel_tex_info(), kg, svm_image_texture_read(), svm_image_texture_wrap_clamp(), svm_image_texture_wrap_periodic(), x, and y.
Referenced by kernel_tex_image_interp().
| ccl_device_inline float4 svm_image_texture_read_3d | ( | KernelGlobals * | kg, |
| int | id, | ||
| void * | acc, | ||
| int | x, | ||
| int | y, | ||
| int | z | ||
| ) |
Definition at line 160 of file kernel_opencl_image.h.
References ccl_global, EXTENSION_REPEAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT, IMAGE_DATA_TYPE_NANOVDB_FLOAT3, kernel_tex_info(), kg, svm_image_texture_read(), svm_image_texture_wrap_clamp(), svm_image_texture_wrap_periodic(), 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 57 of file kernel_opencl_image.h.
References 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 49 of file kernel_opencl_image.h.
Referenced by svm_image_texture_read_2d(), and svm_image_texture_read_3d().