[Bf-blender-cvs] [8400fe885df] cycles_oneapi: Cycles oneAPI: add missing half precision float support for NanoVDB
Xavier Hallade
noreply at git.blender.org
Wed Jun 8 21:05:13 CEST 2022
Commit: 8400fe885df533b3b67b60a7dfbeeda6746f4cbb
Author: Xavier Hallade
Date: Wed Jun 8 18:24:15 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rB8400fe885df533b3b67b60a7dfbeeda6746f4cbb
Cycles oneAPI: add missing half precision float support for NanoVDB
===================================================================
M intern/cycles/kernel/device/oneapi/image.h
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list