Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Hallade <xavier.hallade@intel.com>2022-06-08 19:24:15 +0300
committerXavier Hallade <xavier.hallade@intel.com>2022-06-08 22:05:00 +0300
commit8400fe885df533b3b67b60a7dfbeeda6746f4cbb (patch)
treee670a76639ecd1d5f4d8c1955b3da05f22a81fd2 /intern/cycles
parent9f48de647ee0ce2a72d5c92ba6ade49642685b02 (diff)
Cycles oneAPI: add missing half precision float support for NanoVDB
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/device/oneapi/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/kernel/device/oneapi/image.h b/intern/cycles/kernel/device/oneapi/image.h
index 42b3bed7360..133fbaaddcb 100644
--- a/intern/cycles/kernel/device/oneapi/image.h
+++ b/intern/cycles/kernel/device/oneapi/image.h
@@ -299,6 +299,12 @@ ccl_device float4 kernel_tex_image_interp_3d(KernelGlobals, int id, float3 P, in
else if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT3) {
return NanoVDBInterpolator<nanovdb::Vec3f>::interp_3d(info, x, y, z, interpolation);
}
+ else if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FPN) {
+ return NanoVDBInterpolator<nanovdb::FpN>::interp_3d(info, P.x, P.y, P.z, interp);
+ }
+ else if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FP16) {
+ return NanoVDBInterpolator<nanovdb::Fp16>::interp_3d(info, P.x, P.y, P.z, interp);
+ }
#else
if (info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT ||
info.data_type == IMAGE_DATA_TYPE_NANOVDB_FLOAT3) {