Blender V5.3
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 586 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 )
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.

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.

Definition at line 246 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, blender::GPU_texture_copy(), blender::GPU_TEXTURE_USAGE_ATTACHMENT, blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::DRWContext::is_image_render(), blender::DRWContext::is_scene_render(), blender::draw::Texture::is_valid(), blender::workbench::SceneState::resolution, blender::workbench::SceneState::sample, blender::workbench::SceneState::samples_len, and blender::draw::Manager::submit().

◆ init()

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

◆ setup_view()

◆ sync()


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