Blender V5.0
blender::workbench::AntiAliasingPass Class Reference

#include <workbench_private.hh>

Public Member Functions

 AntiAliasingPass ()
void init (const SceneState &scene_state)
void sync (const SceneState &scene_state, SceneResources &resources)
void setup_view (View &view, const SceneState &scene_state)
void draw (const DRWContext *draw_ctx, Manager &manager, View &view, const SceneState &scene_state, SceneResources &resources, gpu::Texture *depth_in_front_tx)

Detailed Description

Definition at line 556 of file workbench_private.hh.

Constructor & Destructor Documentation

◆ AntiAliasingPass()

Member Function Documentation

◆ draw()

void blender::workbench::AntiAliasingPass::draw ( const DRWContext * draw_ctx,
Manager & manager,
View & view,
const SceneState & scene_state,
SceneResources & resources,
gpu::Texture * depth_in_front_tx )

We always do SMAA on top of TAA accumulation, unless the number of samples of TAA is already high. This ensure a smoother transition. If TAA accumulation is finished, we only blit the result.

Always acquire to avoid constant allocation/deallocation.

Parameters
depth_in_front_txPassed directly since we may need to copy back the results from the first sample, and resources.depth_in_front_tx is only valid when mesh passes have to draw to it.

Definition at line 242 of file workbench_effect_antialiasing.cc.

References blender::workbench::SceneResources::color_tx, blender::workbench::SceneResources::depth_in_front_tx, blender::workbench::SceneResources::depth_tx, GPU_ATTACHMENT_NONE, GPU_ATTACHMENT_TEXTURE, GPU_texture_copy(), GPU_TEXTURE_USAGE_ATTACHMENT, GPU_TEXTURE_USAGE_SHADER_READ, DRWContext::is_image_render(), DRWContext::is_scene_render(), blender::draw::Texture::is_valid(), blender::workbench::SceneState::resolution, blender::workbench::SceneState::sample, blender::workbench::SceneState::samples_len, blender::draw::Manager::submit(), and view.

◆ init()

void blender::workbench::AntiAliasingPass::init ( const SceneState & scene_state)

◆ setup_view()

◆ sync()


The documentation for this class was generated from the following files: