|
Blender V5.3
|
#include <eevee_depth_of_field_filter.bsl.hh>
Public Attributes | |
| sampler2D | color_tx |
| sampler2D | weight_tx |
| image2D | out_color_img |
| image2D | out_weight_img |
Pixel cache. | |
| float4 | color_cache [DOF_FILTER_GROUP_SIZE+2][DOF_FILTER_GROUP_SIZE+2] |
| float | weight_cache [DOF_FILTER_GROUP_SIZE+2][DOF_FILTER_GROUP_SIZE+2] |
| void | init (uint3 global_id, uint3 local_id) |
| FilterSample | fetch_sample (int x, int y) const |
Definition at line 23 of file eevee_depth_of_field_filter.bsl.hh.
|
inline |
Definition at line 76 of file eevee_depth_of_field_filter.bsl.hh.
References color_cache, weight_cache, x, and y.
Load enough values into LDS to perform the filter.
┌──────────────────────────────┐ │ │ < Border texels that needs to be loaded. │ x x x x x x x x │ ─┐ │ x x x x x x x x │ │ │ x x x x x x x x │ │ │ x x x x x x x x │ │ Thread Group Size 8x8. │ L L L L L x x x x │ │ │ L L L L L x x x x │ │ │ L L L L L x x x x │ │ │ L L L L L x x x x │ ─┘ │ L L L L L │ < Border texels that needs to be loaded. └──────────────────────────────┘ └───────────┘ Load using 5x5 threads.
Definition at line 37 of file eevee_depth_of_field_filter.bsl.hh.
References all(), barrier(), clamp(), color_cache, color_tx, lessThan, texelFetch(), textureSize(), weight_cache, weight_tx, int2::x, x, int2::y, and y.
| float4 eevee::dof::filter_pass::Resources::color_cache[DOF_FILTER_GROUP_SIZE+2][DOF_FILTER_GROUP_SIZE+2] |
Definition at line 34 of file eevee_depth_of_field_filter.bsl.hh.
Referenced by fetch_sample(), and init().
| sampler2D eevee::dof::filter_pass::Resources::color_tx |
Definition at line 24 of file eevee_depth_of_field_filter.bsl.hh.
Referenced by init().
| image2D eevee::dof::filter_pass::Resources::out_color_img |
Definition at line 27 of file eevee_depth_of_field_filter.bsl.hh.
| image2D eevee::dof::filter_pass::Resources::out_weight_img |
Definition at line 28 of file eevee_depth_of_field_filter.bsl.hh.
| float eevee::dof::filter_pass::Resources::weight_cache[DOF_FILTER_GROUP_SIZE+2][DOF_FILTER_GROUP_SIZE+2] |
Definition at line 35 of file eevee_depth_of_field_filter.bsl.hh.
Referenced by fetch_sample(), and init().
| sampler2D eevee::dof::filter_pass::Resources::weight_tx |
Definition at line 25 of file eevee_depth_of_field_filter.bsl.hh.
Referenced by init().