Blender V5.3
eevee::dof::resolve::Resources Struct Reference

#include <eevee_depth_of_field_resolve.bsl.hh>

Public Member Functions

float slight_focus_coc_tile_get (float2 frag_coord, uint local_index)
float3 dof_neighborhood_clamp (float2 frag_coord, float3 color, float center_coc, float weight)

Public Attributes

Accumulator accumulator
draw::View views
const bool do_debug_color
sampler2DDepth depth_tx
sampler2D color_tx
sampler2D color_bg_tx
sampler2D color_fg_tx
sampler2D color_hole_fill_tx
sampler2D weight_bg_tx
sampler2D weight_fg_tx
sampler2D weight_hole_fill_tx
sampler2D stable_color_tx
image2D out_color_img
uint shared_max_slight_focus_abs_coc

Detailed Description

Definition at line 21 of file eevee_depth_of_field_resolve.bsl.hh.

Member Function Documentation

◆ dof_neighborhood_clamp()

float3 eevee::dof::resolve::Resources::dof_neighborhood_clamp ( float2 frag_coord,
float3 color,
float center_coc,
float weight )
inline

Visit the 4 half-res texels around (and containing) the full-resolution texel. Here a diagram of a full-screen texel (f) in the bottom left corner of a half res texel. We sample the stable half-resolution texture at the 4 location denoted by (h). ┌───────┬───────┐ │ h │ h │ │ │ │ │ │ f │ ├───────┼───────┤ │ h │ h │ │ │ │ │ │ │ └───────┴───────┘

Definition at line 72 of file eevee_depth_of_field_resolve.bsl.hh.

References abs, clamp(), frag_coord, max, min, mix, saturate, colorspace::scene_linear_from_YCoCg(), square(), stable_color_tx, textureLod(), textureSize(), and colorspace::YCoCg_from_scene_linear().

◆ slight_focus_coc_tile_get()

float eevee::dof::resolve::Resources::slight_focus_coc_tile_get ( float2 frag_coord,
uint local_index )
inline

Member Data Documentation

◆ accumulator

Accumulator eevee::dof::resolve::Resources::accumulator

Definition at line 22 of file eevee_depth_of_field_resolve.bsl.hh.

Referenced by slight_focus_coc_tile_get().

◆ color_bg_tx

sampler2D eevee::dof::resolve::Resources::color_bg_tx

Definition at line 29 of file eevee_depth_of_field_resolve.bsl.hh.

◆ color_fg_tx

sampler2D eevee::dof::resolve::Resources::color_fg_tx

Definition at line 30 of file eevee_depth_of_field_resolve.bsl.hh.

◆ color_hole_fill_tx

sampler2D eevee::dof::resolve::Resources::color_hole_fill_tx

Definition at line 31 of file eevee_depth_of_field_resolve.bsl.hh.

◆ color_tx

sampler2D eevee::dof::resolve::Resources::color_tx

Definition at line 28 of file eevee_depth_of_field_resolve.bsl.hh.

Referenced by slight_focus_coc_tile_get().

◆ depth_tx

sampler2DDepth eevee::dof::resolve::Resources::depth_tx

Definition at line 27 of file eevee_depth_of_field_resolve.bsl.hh.

Referenced by slight_focus_coc_tile_get().

◆ do_debug_color

const bool eevee::dof::resolve::Resources::do_debug_color

Definition at line 25 of file eevee_depth_of_field_resolve.bsl.hh.

◆ out_color_img

image2D eevee::dof::resolve::Resources::out_color_img

Definition at line 37 of file eevee_depth_of_field_resolve.bsl.hh.

◆ shared_max_slight_focus_abs_coc

uint eevee::dof::resolve::Resources::shared_max_slight_focus_abs_coc

Definition at line 39 of file eevee_depth_of_field_resolve.bsl.hh.

Referenced by slight_focus_coc_tile_get().

◆ stable_color_tx

sampler2D eevee::dof::resolve::Resources::stable_color_tx

Definition at line 35 of file eevee_depth_of_field_resolve.bsl.hh.

Referenced by dof_neighborhood_clamp().

◆ views

draw::View eevee::dof::resolve::Resources::views

Definition at line 23 of file eevee_depth_of_field_resolve.bsl.hh.

Referenced by slight_focus_coc_tile_get().

◆ weight_bg_tx

sampler2D eevee::dof::resolve::Resources::weight_bg_tx

Definition at line 32 of file eevee_depth_of_field_resolve.bsl.hh.

◆ weight_fg_tx

sampler2D eevee::dof::resolve::Resources::weight_fg_tx

Definition at line 33 of file eevee_depth_of_field_resolve.bsl.hh.

◆ weight_hole_fill_tx

sampler2D eevee::dof::resolve::Resources::weight_hole_fill_tx

Definition at line 34 of file eevee_depth_of_field_resolve.bsl.hh.


The documentation for this struct was generated from the following file: