Skip to content

Commit

Permalink
Fix vb element size for raytracing
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Feb 4, 2025
1 parent 2d31680 commit 1bbc844
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,10 @@ void kinc_raytrace_acceleration_structure_build(kinc_raytrace_acceleration_struc

#ifdef is_forge
create_srv_ib(_ib_full, _ib_full->impl.count, 0);
create_srv_vb(_vb_full, _vb_full->impl.myCount, 8 * 2);
create_srv_vb(_vb_full, _vb_full->impl.myCount, vb[0]->impl.myStride);
#else
create_srv_ib(ib[0], ib[0]->impl.count, 0);
create_srv_vb(vb[0], vb[0]->impl.myCount, 8 * 2);
create_srv_vb(vb[0], vb[0]->impl.myCount, vb[0]->impl.myStride);
#endif

// Reset the command list for the acceleration structure construction
Expand Down

0 comments on commit 1bbc844

Please sign in to comment.