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

#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

Detailed Description

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

Member Function Documentation

◆ fetch_sample()

FilterSample eevee::dof::filter_pass::Resources::fetch_sample ( int x,
int y ) const
inline

Definition at line 76 of file eevee_depth_of_field_filter.bsl.hh.

References color_cache, weight_cache, x, and y.

◆ init()

void eevee::dof::filter_pass::Resources::init ( uint3 global_id,
uint3 local_id )
inline

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.

Member Data Documentation

◆ color_cache

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().

◆ color_tx

sampler2D eevee::dof::filter_pass::Resources::color_tx

Definition at line 24 of file eevee_depth_of_field_filter.bsl.hh.

Referenced by init().

◆ out_color_img

image2D eevee::dof::filter_pass::Resources::out_color_img

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

◆ out_weight_img

image2D eevee::dof::filter_pass::Resources::out_weight_img

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

◆ weight_cache

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().

◆ weight_tx

sampler2D eevee::dof::filter_pass::Resources::weight_tx

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

Referenced by init().


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