Fix: Cycles: Rendering of VDB files with HIP-RT
VDB files would fail to render in HIP-RT because NanoVDB wasn't enabled when compiling HIP-RT kernels, resulting in NanoVDB textures not being sampled and a blank result being returned instead. The fix is to enable NanoVDB when compiling HIP-RT kernels. Ref: #125086 Pull Request: https://projects.blender.org/blender/blender/pulls/127384
This commit is contained in:
@@ -735,6 +735,11 @@ if(WITH_CYCLES_DEVICE_HIPRT AND WITH_CYCLES_HIP_BINARIES)
|
||||
-Wno-unused-value
|
||||
-ffast-math
|
||||
-o ${bitcode_file})
|
||||
|
||||
if(WITH_NANOVDB)
|
||||
set(hiprt_compile_flags ${hiprt_compile_flags} -D WITH_NANOVDB)
|
||||
endif()
|
||||
|
||||
if(WITH_CYCLES_DEBUG)
|
||||
set(hiprt_compile_flags ${hiprt_compile_flags} -D WITH_CYCLES_DEBUG)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user