Blender V5.3
blender::eevee::RayTraceModule Class Reference

#include <eevee_raytrace.hh>

Public Member Functions

 RayTraceModule (Instance &inst, RayTraceData &data)
bool use_raytracing () const
bool use_fast_gi () const

Raytracing

void init ()
void sync ()
RayTraceResult render (RayTraceBuffer &rt_buffer, gpu::Texture *screen_radiance_back_tx, eClosureBits active_closures, View &render_view)
RayTraceResult alloc_only (RayTraceBuffer &rt_buffer)
RayTraceResult alloc_dummy (RayTraceBuffer &rt_buffer)
void debug_pass_sync ()
void debug_draw (View &view, gpu::FrameBuffer *view_fb)
void thickness_parameters_setup (const float4x4 &winmat, const int2 extent)

Detailed Description

Definition at line 144 of file eevee_raytrace.hh.

Constructor & Destructor Documentation

◆ RayTraceModule()

blender::eevee::RayTraceModule::RayTraceModule ( Instance & inst,
RayTraceData & data )
inline

Definition at line 247 of file eevee_raytrace.hh.

References blender::data.

Member Function Documentation

◆ alloc_dummy()

◆ alloc_only()

◆ debug_draw()

void blender::eevee::RayTraceModule::debug_draw ( View & view,
gpu::FrameBuffer * view_fb )

Definition at line 455 of file eevee_raytrace.cc.

◆ debug_pass_sync()

void blender::eevee::RayTraceModule::debug_pass_sync ( )

Definition at line 453 of file eevee_raytrace.cc.

◆ init()

◆ render()

RayTraceResult blender::eevee::RayTraceModule::render ( RayTraceBuffer & rt_buffer,
gpu::Texture * screen_radiance_back_tx,
eClosureBits active_closures,
View & render_view )

RayTrace the scene and resolve radiance buffer for the corresponding closure_bit.

IMPORTANT: Should not be conditionally executed as it manages the RayTraceResult. IMPORTANT: The screen tracing will be using the front and back Hierarchical-Z Buffer in its current state.

  • rt_buffer is the layer's permanent storage.
  • active_closures is a mask of all active closures in a deferred layer.
  • render_view is the TAA jittered view.
  • force_no_tracing will run the pipeline without any tracing, relying only on local probes.

Definition at line 481 of file eevee_raytrace.cc.

References blender::BLI_assert(), blender::math::ceil_to_multiple(), blender::ceil_to_multiple_u(), blender::eevee::CLOSURE_NONE, blender::math::divide_ceil(), divide_ceil(), blender::GPU_debug_group_begin(), blender::GPU_debug_group_end(), blender::GPU_TEXTURE_USAGE_SHADER_READ, blender::GPU_TEXTURE_USAGE_SHADER_WRITE, blender::eevee::RayTraceBuffer::history_persmat, blender::IndexRange::IndexRange(), blender::draw::Texture::is_valid(), blender::log2_floor_u(), blender::max_ii(), options, blender::draw::View::persmat(), blender::power_of_2_max_i(), blender::eevee::RayTraceBuffer::radiance_feedback_tx, blender::eevee::random_in_tile(), blender::RAYTRACE_EEVEE_USE_BACKFACE, and blender::result.

◆ sync()

void blender::eevee::RayTraceModule::sync ( )

Definition at line 90 of file eevee_raytrace.cc.

References blender::draw::detail::PassBase< DrawCommandBufType >::barrier(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_image(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_resources(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_ssbo(), blender::draw::detail::PassBase< DrawCommandBufType >::bind_texture(), blender::GPUSamplerState::default_sampler(), blender::draw::detail::PassBase< DrawCommandBufType >::dispatch(), blender::eevee::FAST_GI_DENOISE, blender::eevee::FAST_GI_RESOLVE, blender::eevee::FAST_GI_SCAN, blender::eevee::FAST_GI_SETUP, blender::GPU_BARRIER_SHADER_IMAGE_ACCESS, blender::GPU_BARRIER_SHADER_STORAGE, blender::GPU_BARRIER_TEXTURE_FETCH, blender::GPU_SAMPLER_FILTERING_LINEAR, blender::GPU_SAMPLER_FILTERING_MIPMAP, blender::IndexRange::IndexRange(), blender::draw::detail::Pass< DrawCommandBufType >::init(), blender::max_ii(), blender::power_of_2_max_i(), blender::eevee::RAY_DENOISE_BILATERAL, blender::eevee::RAY_DENOISE_SPATIAL, blender::eevee::RAY_DENOISE_TEMPORAL, blender::eevee::RAY_GENERATE, blender::eevee::RAY_TILE_CLASSIFY, blender::eevee::RAY_TILE_COMPACT, blender::eevee::RAY_TRACE_FALLBACK, blender::eevee::RAY_TRACE_PLANAR, blender::eevee::RAY_TRACE_SCREEN, blender::RAYTRACE_EEVEE_DENOISE_BILATERAL, blender::RAYTRACE_EEVEE_DENOISE_SPATIAL, blender::RAYTRACE_EEVEE_DENOISE_TEMPORAL, blender::RAYTRACE_EEVEE_METHOD_SCREEN, blender::RAYTRACE_EEVEE_USE_DENOISE, RBUFS_UTILITY_TEX_SLOT, blender::draw::detail::PassBase< DrawCommandBufType >::shader_set(), and blender::draw::detail::PassBase< DrawCommandBufType >::specialize_constant().

Referenced by blender::eevee::Instance::begin_sync().

◆ thickness_parameters_setup()

void blender::eevee::RayTraceModule::thickness_parameters_setup ( const float4x4 & winmat,
const int2 extent )

Update screen space thickness parameters. Needs to be called early in the frame to allow ray-cast node usage. Needs uniform_data.push_update() to be called afterward to take effect.

Definition at line 457 of file eevee_raytrace.cc.

References abs, blender::eevee::ScreenThicknessParameters::build(), length(), blender::projmat_dimensions(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), and sqrtf.

◆ use_fast_gi()

bool blender::eevee::RayTraceModule::use_fast_gi ( ) const
inline

Definition at line 288 of file eevee_raytrace.hh.

References use_raytracing().

Referenced by blender::eevee::Instance::init().

◆ use_raytracing()

bool blender::eevee::RayTraceModule::use_raytracing ( ) const
inline

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