diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/infos/eevee_depth_of_field_info.hh')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/infos/eevee_depth_of_field_info.hh | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/infos/eevee_depth_of_field_info.hh b/source/blender/draw/engines/eevee/shaders/infos/eevee_depth_of_field_info.hh index cf638804b99..e2ab15eeac2 100644 --- a/source/blender/draw/engines/eevee/shaders/infos/eevee_depth_of_field_info.hh +++ b/source/blender/draw/engines/eevee/shaders/infos/eevee_depth_of_field_info.hh @@ -7,8 +7,8 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_bokeh_lut) .do_static_compilation(true) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(1, "DepthOfFieldData", "dof_buf") .fragment_out(0, Type::VEC2, "out_gather_lut") .fragment_out(1, Type::FLOAT, "out_scatter_lut") .fragment_out(2, Type::FLOAT, "out_resolve_lut") @@ -17,8 +17,8 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_bokeh_lut) GPU_SHADER_CREATE_INFO(eevee_depth_of_field_setup) .do_static_compilation(true) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(1, "DepthOfFieldData", "dof_buf") .sampler(0, ImageType::FLOAT_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::DEPTH_2D, "depth_tx", Frequency::PASS) .fragment_out(0, Type::VEC4, "out_color") @@ -28,7 +28,7 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_setup) GPU_SHADER_CREATE_INFO(eevee_depth_of_field_filter) .do_static_compilation(true) - .additional_info("eevee_shared") + .additional_info("eevee_shared", "draw_view") .sampler(0, ImageType::FLOAT_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "weight_tx", Frequency::PASS) .fragment_out(0, Type::VEC4, "out_color") @@ -38,8 +38,8 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_filter) GPU_SHADER_CREATE_INFO(eevee_depth_of_field_reduce_copy) .do_static_compilation(true) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(1, "DepthOfFieldData", "dof_buf") .sampler(0, ImageType::FLOAT_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "coc_tx", Frequency::PASS) .sampler(2, ImageType::FLOAT_2D, "downsampled_tx", Frequency::PASS) @@ -51,7 +51,7 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_reduce_copy) GPU_SHADER_CREATE_INFO(eevee_depth_of_field_reduce_downsample) .do_static_compilation(true) - .additional_info("eevee_shared") + .additional_info("eevee_shared", "draw_view") .sampler(0, ImageType::FLOAT_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "coc_tx", Frequency::PASS) .fragment_out(0, Type::VEC4, "out_color") @@ -60,9 +60,9 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_reduce_downsample) GPU_SHADER_CREATE_INFO(eevee_depth_of_field_reduce_recursive) .do_static_compilation(true) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") - .uniform_buf(1, "SamplingData", "sampling_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(1, "DepthOfFieldData", "dof_buf") + .uniform_buf(2, "SamplingData", "sampling_buf") .sampler(0, ImageType::DEPTH_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "coc_tx", Frequency::PASS) .fragment_out(0, Type::VEC4, "out_color") @@ -115,8 +115,8 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_lq).define("DOF_SLIGHT_FOCUS_DENSITY * \{ */ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_gather) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(2, "DepthOfFieldData", "dof_buf") .uniform_buf(1, "SamplingData", "sampling_buf") .sampler(0, ImageType::FLOAT_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "color_bilinear_tx", Frequency::PASS) @@ -138,8 +138,8 @@ EEVEE_DOF_GROUND_VARIATIONS(eevee_depth_of_field_gather, "eevee_depth_of_field_g * \{ */ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_gather_holefill) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(2, "DepthOfFieldData", "dof_buf") .uniform_buf(1, "SamplingData", "sampling_buf") .sampler(0, ImageType::FLOAT_2D, "color_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "color_bilinear_tx", Frequency::PASS) @@ -171,8 +171,8 @@ GPU_SHADER_INTERFACE_INFO(eevee_depth_of_field_scatter_iface, "") .flat(Type::FLOAT, "spritesize"); GPU_SHADER_CREATE_INFO(eevee_depth_of_field_scatter) - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(2, "DepthOfFieldData", "dof_buf") .sampler(0, ImageType::FLOAT_2D, "color_tx") .sampler(1, ImageType::DEPTH_2D, "depth_tx") .sampler(2, ImageType::FLOAT_2D, "occlusion_tx") @@ -192,8 +192,8 @@ EEVEE_DOF_GROUND_VARIATIONS(eevee_depth_of_field_scatter, "eevee_depth_of_field_ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_resolve) .define("DOF_RESOLVE_PASS", "true") - .additional_info("eevee_shared") - .uniform_buf(0, "DepthOfFieldData", "dof_buf") + .additional_info("eevee_shared", "draw_view") + .uniform_buf(2, "DepthOfFieldData", "dof_buf") .uniform_buf(1, "SamplingData", "sampling_buf") .sampler(0, ImageType::DEPTH_2D, "depth_tx") .sampler(1, ImageType::FLOAT_2D, "color_tx") @@ -218,7 +218,7 @@ EEVEE_DOF_HQ_VARIATIONS(eevee_depth_of_field_resolve, "eevee_depth_of_field_reso * \{ */ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_tiles_dilate) - .additional_info("eevee_shared") + .additional_info("eevee_shared", "draw_view") .sampler(0, ImageType::FLOAT_2D, "tiles_fg_tx", Frequency::PASS) .sampler(1, ImageType::FLOAT_2D, "tiles_bg_tx", Frequency::PASS) .fragment_out(0, Type::VEC4, "out_tile_fg") @@ -241,7 +241,7 @@ GPU_SHADER_CREATE_INFO(eevee_depth_of_field_tiles_dilate_minmax) GPU_SHADER_CREATE_INFO(eevee_depth_of_field_tiles_flatten) .do_static_compilation(true) - .additional_info("eevee_shared") + .additional_info("eevee_shared", "draw_view") .sampler(0, ImageType::FLOAT_2D, "coc_tx", Frequency::PASS) .fragment_out(0, Type::VEC4, "out_tile_fg") .fragment_out(1, Type::VEC3, "out_tile_bg") |