diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-08-30 22:11:23 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-08-30 22:27:02 +0300 |
commit | d371dfbe2c8932ec4b58a306a2e16f84ca23dac1 (patch) | |
tree | 64b1b6ce377592f74aed33cedbe8d801447a3e06 /source/blender/draw/engines/eevee_next/eevee_velocity.hh | |
parent | 57ea8616924aeae3875414500471ab50b80e750c (diff) |
DRW: Change binding APIdrw-manager-next
Using bind() overload is too error prone.
Diffstat (limited to 'source/blender/draw/engines/eevee_next/eevee_velocity.hh')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_velocity.hh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_velocity.hh b/source/blender/draw/engines/eevee_next/eevee_velocity.hh index 51f260f8848..6f18b05d476 100644 --- a/source/blender/draw/engines/eevee_next/eevee_velocity.hh +++ b/source/blender/draw/engines/eevee_next/eevee_velocity.hh @@ -121,15 +121,15 @@ class VelocityModule { template<typename T> void bind_resources(draw::detail::Pass<T> *pass) { /* Storage Buf. */ - pass->bind(VELOCITY_OBJ_PREV_BUF_SLOT, &(*object_steps[STEP_PREVIOUS])); - pass->bind(VELOCITY_OBJ_NEXT_BUF_SLOT, &(*object_steps[next_step_])); - pass->bind(VELOCITY_GEO_PREV_BUF_SLOT, &(*geometry_steps[STEP_PREVIOUS])); - pass->bind(VELOCITY_GEO_NEXT_BUF_SLOT, &(*geometry_steps[next_step_])); - pass->bind(VELOCITY_INDIRECTION_BUF_SLOT, &indirection_buf); + pass->bind_ssbo(VELOCITY_OBJ_PREV_BUF_SLOT, &(*object_steps[STEP_PREVIOUS])); + pass->bind_ssbo(VELOCITY_OBJ_NEXT_BUF_SLOT, &(*object_steps[next_step_])); + pass->bind_ssbo(VELOCITY_GEO_PREV_BUF_SLOT, &(*geometry_steps[STEP_PREVIOUS])); + pass->bind_ssbo(VELOCITY_GEO_NEXT_BUF_SLOT, &(*geometry_steps[next_step_])); + pass->bind_ssbo(VELOCITY_INDIRECTION_BUF_SLOT, &indirection_buf); /* Uniform Buf. */ - pass->bind(VELOCITY_CAMERA_PREV_BUF, &(*camera_steps[STEP_PREVIOUS])); - pass->bind(VELOCITY_CAMERA_CURR_BUF, &(*camera_steps[STEP_CURRENT])); - pass->bind(VELOCITY_CAMERA_NEXT_BUF, &(*camera_steps[next_step_])); + pass->bind_ubo(VELOCITY_CAMERA_PREV_BUF, &(*camera_steps[STEP_PREVIOUS])); + pass->bind_ubo(VELOCITY_CAMERA_CURR_BUF, &(*camera_steps[STEP_CURRENT])); + pass->bind_ubo(VELOCITY_CAMERA_NEXT_BUF, &(*camera_steps[next_step_])); } bool camera_has_motion() const; |