Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/eevee_depth_of_field.cc
| Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | void DepthOfField::stabilize_pass_sync() | ||||
| /* This is only for temporal stability. The next step is not needed. */ | /* This is only for temporal stability. The next step is not needed. */ | ||||
| stabilize_ps_.bind_ubo("camera_next", &(*velocity.camera_steps[STEP_PREVIOUS])); | stabilize_ps_.bind_ubo("camera_next", &(*velocity.camera_steps[STEP_PREVIOUS])); | ||||
| stabilize_ps_.bind_texture("coc_tx", &setup_coc_tx_, no_filter); | stabilize_ps_.bind_texture("coc_tx", &setup_coc_tx_, no_filter); | ||||
| stabilize_ps_.bind_texture("color_tx", &setup_color_tx_, no_filter); | stabilize_ps_.bind_texture("color_tx", &setup_color_tx_, no_filter); | ||||
| stabilize_ps_.bind_texture("velocity_tx", &render_buffers.vector_tx, no_filter); | stabilize_ps_.bind_texture("velocity_tx", &render_buffers.vector_tx, no_filter); | ||||
| stabilize_ps_.bind_texture("in_history_tx", &stabilize_input_, with_filter); | stabilize_ps_.bind_texture("in_history_tx", &stabilize_input_, with_filter); | ||||
| stabilize_ps_.bind_texture("depth_tx", &render_buffers.depth_tx, no_filter); | stabilize_ps_.bind_texture("depth_tx", &render_buffers.depth_tx, no_filter); | ||||
| stabilize_ps_.bind_ubo("dof_buf", data_); | stabilize_ps_.bind_ubo("dof_buf", data_); | ||||
| stabilize_ps_.push_constant("use_history", &stabilize_valid_history_, 1); | stabilize_ps_.push_constant("u_use_history", &stabilize_valid_history_, 1); | ||||
| stabilize_ps_.bind_image("out_coc_img", reduced_coc_tx_.mip_view(0)); | stabilize_ps_.bind_image("out_coc_img", reduced_coc_tx_.mip_view(0)); | ||||
| stabilize_ps_.bind_image("out_color_img", reduced_color_tx_.mip_view(0)); | stabilize_ps_.bind_image("out_color_img", reduced_color_tx_.mip_view(0)); | ||||
| stabilize_ps_.bind_image("out_history_img", &stabilize_output_tx_); | stabilize_ps_.bind_image("out_history_img", &stabilize_output_tx_); | ||||
| stabilize_ps_.dispatch(&dispatch_stabilize_size_); | stabilize_ps_.dispatch(&dispatch_stabilize_size_); | ||||
| stabilize_ps_.barrier(GPU_BARRIER_TEXTURE_FETCH | GPU_BARRIER_SHADER_IMAGE_ACCESS); | stabilize_ps_.barrier(GPU_BARRIER_TEXTURE_FETCH | GPU_BARRIER_SHADER_IMAGE_ACCESS); | ||||
| } | } | ||||
| void DepthOfField::downsample_pass_sync() | void DepthOfField::downsample_pass_sync() | ||||
| ▲ Show 20 Lines • Show All 466 Lines • Show Last 20 Lines | |||||