Blender V4.3
compositor_smaa_info.hh File Reference

Go to the source code of this file.

Functions

 local_group_size (16, 16) .define("SMAA_GLSL_3") .define("SMAA_RT_METRICS"
 
 vec4 (1.0/vec2(textureSize(input_tx, 0)), vec2(textureSize(input_tx, 0)))") .define("SMAA_LUMA_WEIGHT"
 
 vec4 (luminance_coefficients, 0.0)") .define("SMAA_THRESHOLD"
 
smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type vec4 (1.0/vec2(textureSize(edges_tx, 0)), vec2(textureSize(edges_tx, 0)))") .define("SMAA_CORNER_ROUNDING"
 
smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type smaa_corner_rounding push_constant (Type::INT, "smaa_corner_rounding") .sampler(0
 
smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type smaa_corner_rounding edges_tx sampler (1, ImageType::FLOAT_2D, "area_tx") .sampler(2
 
smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type smaa_corner_rounding edges_tx search_tx image (0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "weights_img") .compute_source("compositor_smaa_blending_weight_calculation.glsl") .do_static_compilation(true)
 
input_tx sampler (1, ImageType::FLOAT_2D, "weights_tx") .compute_source("compositor_smaa_neighborhood_blending.glsl")
 
 additional_info ("compositor_smaa_neighborhood_blending_shared") .image(0
 
output_img do_static_compilation (true)
 

Variables

 GPU_RGBA16F
 
 GPU_RG16F
 
 GPU_R16F
 

Function Documentation

◆ additional_info()

additional_info ( "compositor_smaa_neighborhood_blending_shared" )

◆ do_static_compilation()

output_img do_static_compilation ( true )

Colors, weights, and Circle of confusion radii for the 4 pixels to scatter. Scaling factor for the bokeh distance. Sprite pixel position with origin at sprite center. In pixels.

◆ image()

smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type smaa_corner_rounding edges_tx search_tx image ( 0 ,
GPU_RGBA16F ,
Qualifier::WRITE ,
ImageType::FLOAT_2D ,
"weights_img"  )

◆ local_group_size()

local_group_size ( 16 ,
16  )

◆ push_constant()

smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type smaa_corner_rounding push_constant ( Type::INT ,
"smaa_corner_rounding"  )

◆ sampler() [1/2]

smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type smaa_corner_rounding edges_tx sampler ( 1 ,
ImageType::FLOAT_2D ,
"area_tx"  )

◆ sampler() [2/2]

input_tx sampler ( 1 ,
ImageType::FLOAT_2D ,
"weights_tx"  )

◆ vec4() [1/3]

smaa_threshold define("SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR", "smaa_local_contrast_adaptation_factor") .push_constant(Type vec4 ( 1.0/ vec2textureSize(edges_tx, 0),
vec2(textureSize(edges_tx, 0))  )

◆ vec4() [2/3]

vec4 ( 1.0/ vec2textureSize(input_tx, 0),
vec2(textureSize(input_tx, 0))  )

◆ vec4() [3/3]

vec4 ( luminance_coefficients ,
0. 0 )

Variable Documentation

◆ GPU_R16F

GPU_R16F

Definition at line 58 of file compositor_smaa_info.hh.

◆ GPU_RG16F

◆ GPU_RGBA16F

GPU_RGBA16F

Definition at line 48 of file compositor_smaa_info.hh.