Blender V5.3
eevee::dof::setup::reduce::Resources Struct Reference

#include <eevee_depth_of_field_setup.bsl.hh>

Public Member Functions

float scatter_neighborhood_rejection (uint2 texel, float3 color)
float scatter_screen_border_rejection (float coc, int2 texel) const
float scatter_luminosity_rejection (float3 color) const
float scatter_coc_radius_rejection (float coc) const

Public Attributes

ScatterRect(& scatter_fg_list_buf )[]
ScatterRect(& scatter_bg_list_buf )[]
DrawCommandArray & scatter_fg_indirect_buf
DrawCommandArray & scatter_bg_indirect_buf
const DepthOfFieldData & dof_buf
sampler2D downsample_tx
image2D inout_color_lod0_img
image2D out_color_lod1_img
image2D out_color_lod2_img
image2D out_color_lod3_img
const image2D in_coc_lod0_img
image2D out_coc_lod1_img
image2D out_coc_lod2_img
image2D out_coc_lod3_img

LDS Cache

float4 color_cache [DOF_REDUCE_GROUP_SIZE][DOF_REDUCE_GROUP_SIZE]
float coc_cache [DOF_REDUCE_GROUP_SIZE][DOF_REDUCE_GROUP_SIZE]
void store_color_cache (uint2 coord, float4 value)
float4 load_color_cache (uint2 coord) const
void store_coc_cache (uint2 coord, float value)
float load_coc_cache (uint2 coord) const
float4 load4_coc_cache (uint2 coord) const

Detailed Description

Definition at line 531 of file eevee_depth_of_field_setup.bsl.hh.

Member Function Documentation

◆ load4_coc_cache()

float4 eevee::dof::setup::reduce::Resources::load4_coc_cache ( uint2 coord) const
inline

Definition at line 575 of file eevee_depth_of_field_setup.bsl.hh.

References load_coc_cache(), and quad_offsets_u.

◆ load_coc_cache()

float eevee::dof::setup::reduce::Resources::load_coc_cache ( uint2 coord) const
inline

Definition at line 571 of file eevee_depth_of_field_setup.bsl.hh.

References coc_cache, uint2::x, and uint2::y.

Referenced by load4_coc_cache().

◆ load_color_cache()

float4 eevee::dof::setup::reduce::Resources::load_color_cache ( uint2 coord) const
inline

Definition at line 562 of file eevee_depth_of_field_setup.bsl.hh.

References color_cache, uint2::x, and uint2::y.

◆ scatter_coc_radius_rejection()

float eevee::dof::setup::reduce::Resources::scatter_coc_radius_rejection ( float coc) const
inline

Definition at line 632 of file eevee_depth_of_field_setup.bsl.hh.

References abs, dof_buf, and saturate.

◆ scatter_luminosity_rejection()

float eevee::dof::setup::reduce::Resources::scatter_luminosity_rejection ( float3 color) const
inline

Definition at line 626 of file eevee_depth_of_field_setup.bsl.hh.

References dof_buf, reduce_max(), and saturate.

◆ scatter_neighborhood_rejection()

float eevee::dof::setup::reduce::Resources::scatter_neighborhood_rejection ( uint2 texel,
float3 color )
inline

◆ scatter_screen_border_rejection()

float eevee::dof::setup::reduce::Resources::scatter_screen_border_rejection ( float coc,
int2 texel ) const
inline

◆ store_coc_cache()

void eevee::dof::setup::reduce::Resources::store_coc_cache ( uint2 coord,
float value )
inline

Definition at line 567 of file eevee_depth_of_field_setup.bsl.hh.

References coc_cache, uint2::x, and uint2::y.

◆ store_color_cache()

void eevee::dof::setup::reduce::Resources::store_color_cache ( uint2 coord,
float4 value )
inline

Definition at line 558 of file eevee_depth_of_field_setup.bsl.hh.

References color_cache, uint2::x, and uint2::y.

Member Data Documentation

◆ coc_cache

float eevee::dof::setup::reduce::Resources::coc_cache[DOF_REDUCE_GROUP_SIZE][DOF_REDUCE_GROUP_SIZE]

Definition at line 556 of file eevee_depth_of_field_setup.bsl.hh.

Referenced by load_coc_cache(), and store_coc_cache().

◆ color_cache

float4 eevee::dof::setup::reduce::Resources::color_cache[DOF_REDUCE_GROUP_SIZE][DOF_REDUCE_GROUP_SIZE]

Definition at line 555 of file eevee_depth_of_field_setup.bsl.hh.

Referenced by load_color_cache(), and store_color_cache().

◆ dof_buf

const DepthOfFieldData& eevee::dof::setup::reduce::Resources::dof_buf

◆ downsample_tx

sampler2D eevee::dof::setup::reduce::Resources::downsample_tx

Definition at line 540 of file eevee_depth_of_field_setup.bsl.hh.

Referenced by scatter_neighborhood_rejection().

◆ in_coc_lod0_img

const image2D eevee::dof::setup::reduce::Resources::in_coc_lod0_img

Definition at line 546 of file eevee_depth_of_field_setup.bsl.hh.

◆ inout_color_lod0_img

image2D eevee::dof::setup::reduce::Resources::inout_color_lod0_img

Definition at line 542 of file eevee_depth_of_field_setup.bsl.hh.

Referenced by scatter_screen_border_rejection().

◆ out_coc_lod1_img

image2D eevee::dof::setup::reduce::Resources::out_coc_lod1_img

Definition at line 547 of file eevee_depth_of_field_setup.bsl.hh.

◆ out_coc_lod2_img

image2D eevee::dof::setup::reduce::Resources::out_coc_lod2_img

Definition at line 548 of file eevee_depth_of_field_setup.bsl.hh.

◆ out_coc_lod3_img

image2D eevee::dof::setup::reduce::Resources::out_coc_lod3_img

Definition at line 549 of file eevee_depth_of_field_setup.bsl.hh.

◆ out_color_lod1_img

image2D eevee::dof::setup::reduce::Resources::out_color_lod1_img

Definition at line 543 of file eevee_depth_of_field_setup.bsl.hh.

◆ out_color_lod2_img

image2D eevee::dof::setup::reduce::Resources::out_color_lod2_img

Definition at line 544 of file eevee_depth_of_field_setup.bsl.hh.

◆ out_color_lod3_img

image2D eevee::dof::setup::reduce::Resources::out_color_lod3_img

Definition at line 545 of file eevee_depth_of_field_setup.bsl.hh.

◆ scatter_bg_indirect_buf

DrawCommandArray& eevee::dof::setup::reduce::Resources::scatter_bg_indirect_buf

Definition at line 536 of file eevee_depth_of_field_setup.bsl.hh.

◆ scatter_bg_list_buf

ScatterRect(& eevee::dof::setup::reduce::Resources::scatter_bg_list_buf)[]

Definition at line 533 of file eevee_depth_of_field_setup.bsl.hh.

◆ scatter_fg_indirect_buf

DrawCommandArray& eevee::dof::setup::reduce::Resources::scatter_fg_indirect_buf

Definition at line 535 of file eevee_depth_of_field_setup.bsl.hh.

◆ scatter_fg_list_buf

ScatterRect(& eevee::dof::setup::reduce::Resources::scatter_fg_list_buf)[]

Definition at line 532 of file eevee_depth_of_field_setup.bsl.hh.


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