Skip to content

Commit

Permalink
Make sure to upload volume handles to GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
szellmann committed Sep 16, 2024
1 parent 6dba209 commit 745a61d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/VisionaraySceneGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ void VisionaraySceneGPU::dispatch()
group.geoms = m_impl->parent->m_geometries.devicePtr();
group.numMaterials = m_impl->parent->m_materials.size();
group.materials = m_impl->parent->m_materials.devicePtr();
group.numVolumes = m_impl->parent->m_volumes.size();
group.volumes = m_impl->parent->m_volumes.devicePtr();
group.numLights = m_impl->parent->m_lights.size();
group.lights = m_impl->parent->m_lights.devicePtr();
group.objIds = m_impl->parent->m_objIds.devicePtr();
Expand Down
2 changes: 2 additions & 0 deletions scene/VisionaraySceneGPU.hip
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ void VisionaraySceneGPU::dispatch()
group.geoms = m_impl->parent->m_geometries.devicePtr();
group.numMaterials = m_impl->parent->m_materials.size();
group.materials = m_impl->parent->m_materials.devicePtr();
group.numVolumes = m_impl->parent->m_volumes.size();
group.volumes = m_impl->parent->m_volumes.devicePtr();
group.numLights = m_impl->parent->m_lights.size();
group.lights = m_impl->parent->m_lights.devicePtr();
group.objIds = m_impl->parent->m_objIds.devicePtr();
Expand Down

0 comments on commit 745a61d

Please sign in to comment.