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

A running instance of the engine. More...

#include <eevee_instance.hh>

Inherits blender::DrawEngine.

Public Member Functions

 Instance ()
 ~Instance () override
StringRefNull name_get () final
bool uses_render_border () const final
bool is_loaded (ShaderGroups groups) const
template<typename... Args>
void info_append (const char *msg, Args &&...args)
template<typename... Args>
void info_append_i18n (const char *msg, Args &&...args)
const char * info_get ()
bool is_viewport () const
bool is_baking () const
bool overlays_enabled () const
bool gpencil_engine_enabled () const
bool use_scene_lights () const
bool use_studio_light () const
bool use_lookdev_overlay () const
uint get_recalc_flags (const ObjectRef &ob_ref)
uint get_recalc_flags (const blender::World &world)
Sync

Sync will gather data from the scene that can change over a time step (i.e: motion steps). IMPORTANT: xxx.sync() functions area responsible for creating DRW resources as well as querying temp texture pool. All DRWPasses should be ready by the end end_sync().

void begin_sync () final
void object_sync (ObjectRef &ob_ref, Manager &manager) final
void end_sync () final
bool do_lightprobe_sphere_sync () const
bool do_planar_probe_sync () const
bool needs_lightprobe_sphere_passes () const
bool needs_planar_probe_passes () const
void render_sync ()
Public Member Functions inherited from blender::DrawEngine
virtual ~DrawEngine ()=default

Public Attributes

ShaderModule & shaders
SyncModule sync
UniformDataModule uniform_data
MaterialModule materials
SubsurfaceModule subsurface
PipelineModule pipelines
ShadowModule shadows
LightModule lights
AmbientOcclusion ambient_occlusion
RayTraceModule raytracing
VelocityModule velocity
MotionBlurModule motion_blur
DepthOfField depth_of_field
Cryptomatte cryptomatte
GBuffer gbuffer
HiZBuffer hiz_buffer
Sampling sampling
Camera camera
Film film
RenderBuffers render_buffers
MainView main_view
CaptureView capture_view
World world
LookdevView lookdev_view
LookdevModule lookdev
SphereProbeModule sphere_probes
PlanarProbeModule planar_probes
VolumeProbeModule volume_probes
LightProbeModule light_probes
VolumeModule volume
Depsgraph * depsgraph
Manager * manager
Scene * scene
ViewLayer * view_layer
Object * camera_eval_object
Object * camera_orig_object
const RenderLayer * render_layer
RenderEngine * render
const View * drw_view = nullptr
const View3D * v3d
const RegionView3D * rv3d
const DRWContext * draw_ctx = nullptr
bool is_light_bake = false
bool is_image_render = false
bool is_viewport_image_render = false
bool is_playback = false
bool is_navigating = false
bool is_painting = false
bool is_transforming = false
bool is_viewport_compositor_used = false
bool draw_overlays = false
ShaderGroups loaded_shaders = ShaderGroups(0)
ShaderGroups needed_shaders = ShaderGroups(0)
bool use_surfaces = true
bool use_curves = true
bool use_volumes = true
GPUSamplerFiltering anisotropic_filtering = GPU_SAMPLER_FILTERING_DEFAULT
gpu::WorkInFlightPtr samples_in_flight
eDebugMode debug_mode = eDebugMode::DEBUG_NONE
Public Attributes inherited from blender::DrawEngine
char info [GPU_INFO_SIZE] = {'\0'}
bool used = false

Static Public Attributes

static CLG_LogRef log = {"eevee"}
Static Public Attributes inherited from blender::DrawEngine
static constexpr int GPU_INFO_SIZE = 512

Initialization

Initialization functions need to be called once at the start of a frame. Active camera, render extent and enabled render passes are immutable until next init. This takes care of resizing output buffers and view in case a parameter changed. IMPORTANT: xxx.init() functions are NOT meant to acquire and allocate DRW resources. Any attempt to do so will likely produce use after free situations.

void init (const int2 &output_res, const rcti *output_rect, const rcti *visible_rect, RenderEngine *render, Depsgraph *depsgraph, Object *camera_object=nullptr, const RenderLayer *render_layer=nullptr, View *drw_view_=nullptr, const View3D *v3d=nullptr, const RegionView3D *rv3d=nullptr)
void init () final
void init_light_bake (Depsgraph *depsgraph, draw::Manager *manager)

Interface

void render_frame (RenderEngine *engine, RenderLayer *render_layer, const char *view_name)
void store_metadata (RenderResult *render_result)
void draw_viewport ()
void draw_viewport_image_render ()
void draw (Manager &manager) final
void light_bake_irradiance (Object &probe, FunctionRef< void()> context_enable, FunctionRef< void()> context_disable, FunctionRef< bool()> stop, FunctionRef< void(LightProbeGridCacheFrame *, float progress)> result_update)
static void update_passes (RenderEngine *engine, Scene *scene, ViewLayer *view_layer)

Detailed Description

A running instance of the engine.

Definition at line 94 of file eevee_instance.hh.

Constructor & Destructor Documentation

◆ Instance()

◆ ~Instance()

blender::eevee::Instance::~Instance ( )
inlineoverride

Definition at line 229 of file eevee_instance.hh.

Member Function Documentation

◆ begin_sync()

void blender::eevee::Instance::begin_sync ( )
finalvirtual

Scene synchronization. Command buffers building.

Implements blender::DrawEngine.

Definition at line 366 of file eevee_instance.cc.

References ambient_occlusion, blender::eevee::Cryptomatte::begin_sync(), blender::eevee::LightModule::begin_sync(), blender::eevee::LightProbeModule::begin_sync(), blender::eevee::MaterialModule::begin_sync(), blender::eevee::PipelineModule::begin_sync(), blender::eevee::ShadowModule::begin_sync(), blender::eevee::SphereProbeModule::begin_sync(), blender::eevee::VelocityModule::begin_sync(), blender::eevee::VolumeModule::begin_sync(), blender::eevee::VelocityModule::camera_has_motion(), cryptomatte, depth_of_field, film, hiz_buffer, is_light_bake, is_viewport(), blender::ViewLayer::layflag, light_probes, lights, lookdev, main_view, materials, motion_blur, pipelines, raytracing, blender::eevee::Sampling::reset(), sampling, blender::SCE_LAY_SOLID, blender::SCE_LAY_STRAND, blender::SCE_LAY_VOLUMES, shadows, sphere_probes, blender::eevee::AmbientOcclusion::sync(), blender::eevee::DepthOfField::sync(), blender::eevee::Film::sync(), blender::eevee::HiZBuffer::sync(), blender::eevee::LookdevModule::sync(), blender::eevee::MainView::sync(), blender::eevee::MotionBlurModule::sync(), blender::eevee::RayTraceModule::sync(), blender::eevee::VolumeProbeModule::sync(), blender::eevee::World::sync(), use_curves, use_surfaces, use_volumes, velocity, view_layer, volume, volume_probes, and world.

Referenced by render_sync(), and blender::workbench_render_to_image().

◆ do_lightprobe_sphere_sync()

bool blender::eevee::Instance::do_lightprobe_sphere_sync ( ) const

Return true when probe pipeline is used during this sample.

Definition at line 535 of file eevee_instance.cc.

References materials, needs_lightprobe_sphere_passes(), blender::eevee::MaterialModule::queued_shaders_count, and blender::eevee::MaterialModule::queued_textures_count.

◆ do_planar_probe_sync()

bool blender::eevee::Instance::do_planar_probe_sync ( ) const

◆ draw()

◆ draw_viewport()

◆ draw_viewport_image_render()

◆ end_sync()

void blender::eevee::Instance::end_sync ( )
finalvirtual

◆ get_recalc_flags() [1/2]

uint blender::eevee::Instance::get_recalc_flags ( const blender::World & world)
inline

Definition at line 379 of file eevee_instance.hh.

References blender::ID_RECALC_SHADING, and world.

◆ get_recalc_flags() [2/2]

uint blender::eevee::Instance::get_recalc_flags ( const ObjectRef & ob_ref)
inline

Definition at line 374 of file eevee_instance.hh.

References blender::draw::ObjectRef::recalc_flags().

◆ gpencil_engine_enabled()

bool blender::eevee::Instance::gpencil_engine_enabled ( ) const
inline

True if the grease pencil engine might be running.

Definition at line 345 of file eevee_instance.hh.

References blender::DEG_id_type_any_exists(), depsgraph, and blender::ID_GP.

◆ info_append()

template<typename... Args>
void blender::eevee::Instance::info_append ( const char * msg,
Args &&... args )
inline

◆ info_append_i18n()

template<typename... Args>
void blender::eevee::Instance::info_append_i18n ( const char * msg,
Args &&... args )
inline

Definition at line 315 of file eevee_instance.hh.

References blender::BLI_str_endswith(), and RPT_.

Referenced by draw_viewport().

◆ info_get()

const char * blender::eevee::Instance::info_get ( )
inline

Definition at line 324 of file eevee_instance.hh.

Referenced by draw().

◆ init() [1/2]

◆ init() [2/2]

void blender::eevee::Instance::init ( const int2 & output_res,
const rcti * output_rect,
const rcti * visible_rect,
RenderEngine * render,
Depsgraph * depsgraph,
Object * camera_object = nullptr,
const RenderLayer * render_layer = nullptr,
View * drw_view_ = nullptr,
const View3D * v3d = nullptr,
const RegionView3D * rv3d = nullptr )

Allow up to 3 samples in flight on the GPU.

Definition at line 142 of file eevee_instance.cc.

References ambient_occlusion, blender::RenderData::anisotropic_filter, anisotropic_filtering, blender::assign_if_different(), blender::BKE_camera_view_border(), blender::BLI_rcti_rctf_copy(), blender::BLI_rcti_size_x(), blender::BLI_rcti_size_y(), camera, blender::View3D::camera, camera_orig_object, blender::gpu::WorkInFlight::create(), blender::eevee::RenderBuffers::data, debug_mode, blender::eevee::DEFAULT_MATERIALS, blender::eevee::MaterialModule::default_materials_load_async(), blender::eevee::MaterialModule::default_materials_wait_ready(), blender::eevee::DEFERRED_CAPTURE_SHADERS, blender::eevee::DEFERRED_LIGHTING_SHADERS, blender::eevee::DEFERRED_PLANAR_SHADERS, blender::DEG_get_update_count(), depsgraph, depth_of_field, blender::eevee::DEPTH_OF_FIELD_SHADERS, blender::eevee::Film::display_extent_get(), blender::eevee::DeferredLayer::do_merge_direct_indirect_eval(), blender::eevee::DeferredLayer::do_split_direct_indirect_radiance(), draw_ctx, draw_overlays, blender::DRW_context_get(), blender::DRW_manager_get(), drw_view, blender::Scene::eevee, blender::eevee::DepthOfField::enabled(), blender::eevee::FilmData::extent, blender::eevee::FAST_GI_SHADERS, film, blender::eevee::FILM_SHADERS, blender::SceneEEVEE::flag, blender::View3D::flag2, blender::G, blender::eevee::Film::get_data(), blender::eevee::ShadowModule::get_data(), blender::eevee::HIZ_SHADERS, blender::eevee::AmbientOcclusion::init(), blender::eevee::Camera::init(), blender::eevee::DepthOfField::init(), blender::eevee::Film::init(), blender::eevee::LightProbeModule::init(), blender::eevee::LookdevModule::init(), blender::eevee::MainView::init(), blender::eevee::MotionBlurModule::init(), blender::eevee::PlanarProbeModule::init(), blender::eevee::RayTraceModule::init(), blender::eevee::RenderBuffers::init(), blender::eevee::Sampling::init(), blender::eevee::ShadowModule::init(), blender::eevee::SphereProbeModule::init(), blender::eevee::VelocityModule::init(), blender::eevee::VolumeModule::init(), blender::eevee::VolumeProbeModule::init(), blender::DRWContext::is_image_render(), is_image_render, is_loaded(), blender::DRWContext::is_navigating(), is_navigating, blender::DRWContext::is_painting(), is_painting, blender::DRWContext::is_playback(), is_playback, blender::DRWContext::is_transforming(), is_transforming, blender::eevee::Film::is_valid_render_extent(), is_viewport(), blender::DRWContext::is_viewport_compositor_used(), is_viewport_compositor_used, blender::DRWContext::is_viewport_image_render(), is_viewport_image_render, blender::DRWContext::is_viewport_xr(), blender::eevee::LIGHT_CULLING_SHADERS, light_probes, loaded_shaders, lookdev, main_view, manager, materials, motion_blur, blender::eevee::MOTION_BLUR_SHADERS, needed_shaders, needs_lightprobe_sphere_passes(), needs_planar_probe_passes(), blender::eevee::NONE, blender::eevee::FilmData::offset, blender::RegionView3D::persp, planar_probes, blender::eevee::MotionBlurModule::postfx_enabled(), blender::Scene::r, blender::eevee::ShadowSceneData::ray_count, raytracing, blender::eevee::RAYTRACING_SHADERS, blender::DRWContext::region, render, render_buffers, render_layer, blender::eevee::ShaderModule::request_specializations(), blender::eevee::Sampling::reset(), rv3d, blender::RV3D_CAMOB, samples_in_flight, sampling, blender::SCE_EEVEE_SHADOW_JITTERED_VIEWPORT, scene, SET_FLAG_FROM_TEST, shaders, blender::eevee::RenderBuffersInfoData::shadow_id, blender::eevee::SHADOW_SHADERS, shadows, blender::eevee::SPHERE_PROBE_SHADERS, sphere_probes, blender::eevee::ShaderModule::static_shaders_load_async(), blender::eevee::ShaderModule::static_shaders_wait_ready(), blender::eevee::ShadowSceneData::step_count, blender::eevee::RayTraceModule::use_fast_gi(), blender::eevee::RayTraceModule::use_raytracing(), v3d, blender::V3D_HIDE_OVERLAYS, velocity, volume, blender::eevee::VOLUME_PROBE_SHADERS, volume_probes, blender::ARegion::winx, blender::ARegion::winy, blender::rcti::xmin, and blender::rcti::ymin.

Referenced by blender::eevee_render(), init(), and blender::workbench_render_to_image().

◆ init_light_bake()

◆ is_baking()

bool blender::eevee::Instance::is_baking ( ) const
inline

Definition at line 334 of file eevee_instance.hh.

References is_light_bake.

Referenced by is_viewport(), and light_bake_irradiance().

◆ is_loaded()

bool blender::eevee::Instance::is_loaded ( ShaderGroups groups) const
inline

Definition at line 260 of file eevee_instance.hh.

References is_loaded(), and loaded_shaders.

Referenced by draw_viewport(), init(), is_loaded(), and render_frame().

◆ is_viewport()

bool blender::eevee::Instance::is_viewport ( ) const
inline

◆ light_bake_irradiance()

void blender::eevee::Instance::light_bake_irradiance ( Object & probe,
FunctionRef< void()> context_enable,
FunctionRef< void()> context_disable,
FunctionRef< bool()> stop,
FunctionRef< void(LightProbeGridCacheFrame *, float progress)> result_update )

WORKAROUND: Re-sync now that all shaders are compiled.

Definition at line 927 of file eevee_instance.cc.

References blender::eevee::VolumeProbeModule::bake, blender::BLI_assert(), blender::BLI_time_now_seconds(), capture_view, ceilf, CLOG_INFO, blender::eevee::IrradianceBake::clusters_build(), blender::DRWContext::CUSTOM, depsgraph, draw_ctx, blender::DRW_custom_pipeline_begin(), blender::DRW_custom_pipeline_end(), blender::draw::drw_debug_clear(), blender::DRW_submission_end(), blender::DRW_submission_start(), blender::eevee::Sampling::finished(), float, blender::G, blender::GPU_finish(), blender::GPU_flush(), blender::GPU_pass_cache_wait_for_all(), blender::eevee::IrradianceBake::init(), blender::eevee::Sampling::init(), interpolate(), blender::eevee::IrradianceBake::irradiance_capture(), blender::eevee::IrradianceBake::irradiance_offset(), is_baking(), log, materials, max, blender::eevee::IrradianceBake::propagate_light(), blender::eevee::UniformDataModule::push_update(), blender::eevee::MaterialModule::queued_shaders_count, blender::eevee::MaterialModule::queued_textures_count, blender::eevee::IrradianceBake::raylists_build(), blender::eevee::IrradianceBake::read_result_packed(), blender::eevee::IrradianceBake::read_result_unpacked(), render_sync(), blender::eevee::CaptureView::render_world(), blender::eevee::Sampling::sample_count(), blender::eevee::Sampling::sample_index(), sampling, blender::eevee::IrradianceBake::should_break(), blender::eevee::Sampling::step(), blender::eevee::IrradianceBake::surfels_create(), blender::eevee::IrradianceBake::surfels_lights_eval(), uniform_data, and volume_probes.

◆ name_get()

StringRefNull blender::eevee::Instance::name_get ( )
inlinefinalvirtual

Implements blender::DrawEngine.

Definition at line 231 of file eevee_instance.hh.

References final.

◆ needs_lightprobe_sphere_passes()

bool blender::eevee::Instance::needs_lightprobe_sphere_passes ( ) const

Return true when probe passes should be loaded. It can be true even if do_<type>_probe_sync() is false due to shaders still being compiled.

Definition at line 530 of file eevee_instance.cc.

References sphere_probes.

Referenced by do_lightprobe_sphere_sync(), and init().

◆ needs_planar_probe_passes()

bool blender::eevee::Instance::needs_planar_probe_passes ( ) const

Definition at line 541 of file eevee_instance.cc.

References planar_probes.

Referenced by do_planar_probe_sync(), and init().

◆ object_sync()

◆ overlays_enabled()

bool blender::eevee::Instance::overlays_enabled ( ) const
inline

Definition at line 339 of file eevee_instance.hh.

◆ render_frame()

◆ render_sync()

◆ store_metadata()

void blender::eevee::Instance::store_metadata ( RenderResult * render_result)

Definition at line 840 of file eevee_instance.cc.

References cryptomatte, and blender::eevee::Cryptomatte::store_metadata().

Referenced by blender::eevee_render().

◆ update_passes()

◆ use_lookdev_overlay()

bool blender::eevee::Instance::use_lookdev_overlay ( ) const
inline

◆ use_scene_lights()

◆ use_studio_light()

◆ uses_render_border()

bool blender::eevee::Instance::uses_render_border ( ) const
inlinefinalvirtual

True if the render engine takes the render border into account.

Reimplemented from blender::DrawEngine.

Definition at line 236 of file eevee_instance.hh.

References final.

Member Data Documentation

◆ ambient_occlusion

AmbientOcclusion blender::eevee::Instance::ambient_occlusion

Definition at line 120 of file eevee_instance.hh.

Referenced by begin_sync(), init(), init_light_bake(), and Instance().

◆ anisotropic_filtering

GPUSamplerFiltering blender::eevee::Instance::anisotropic_filtering = GPU_SAMPLER_FILTERING_DEFAULT

Definition at line 191 of file eevee_instance.hh.

Referenced by init().

◆ camera

Camera blender::eevee::Instance::camera

Definition at line 129 of file eevee_instance.hh.

Referenced by init(), init(), init_light_bake(), and Instance().

◆ camera_eval_object

Object* blender::eevee::Instance::camera_eval_object

Camera object if rendering through a camera. nullptr otherwise.

Definition at line 152 of file eevee_instance.hh.

◆ camera_orig_object

Object* blender::eevee::Instance::camera_orig_object

Definition at line 153 of file eevee_instance.hh.

Referenced by init(), and init_light_bake().

◆ capture_view

CaptureView blender::eevee::Instance::capture_view

Definition at line 133 of file eevee_instance.hh.

Referenced by Instance(), and light_bake_irradiance().

◆ cryptomatte

Cryptomatte blender::eevee::Instance::cryptomatte

◆ debug_mode

eDebugMode blender::eevee::Instance::debug_mode = eDebugMode::DEBUG_NONE

Debug mode from debug value.

Definition at line 197 of file eevee_instance.hh.

Referenced by blender::eevee::DeferredPipeline::debug_draw(), init(), and init_light_bake().

◆ depsgraph

Depsgraph* blender::eevee::Instance::depsgraph

◆ depth_of_field

DepthOfField blender::eevee::Instance::depth_of_field

Definition at line 124 of file eevee_instance.hh.

Referenced by begin_sync(), init(), init_light_bake(), and Instance().

◆ draw_ctx

const DRWContext* blender::eevee::Instance::draw_ctx = nullptr

Definition at line 162 of file eevee_instance.hh.

Referenced by draw(), draw_viewport(), init(), init(), light_bake_irradiance(), and object_sync().

◆ draw_overlays

bool blender::eevee::Instance::draw_overlays = false

True if overlays need to be displayed (only for viewport).

Definition at line 181 of file eevee_instance.hh.

Referenced by init().

◆ drw_view

const View* blender::eevee::Instance::drw_view = nullptr

Only available when rendering for viewport.

Definition at line 158 of file eevee_instance.hh.

Referenced by init(), and init_light_bake().

◆ film

Film blender::eevee::Instance::film

◆ gbuffer

GBuffer blender::eevee::Instance::gbuffer

◆ hiz_buffer

HiZBuffer blender::eevee::Instance::hiz_buffer

◆ is_image_render

bool blender::eevee::Instance::is_image_render = false

True if the instance is created for either viewport image render or final image render.

Definition at line 167 of file eevee_instance.hh.

Referenced by end_sync(), and init().

◆ is_light_bake

bool blender::eevee::Instance::is_light_bake = false

True if the instance is created for light baking.

Definition at line 165 of file eevee_instance.hh.

Referenced by begin_sync(), init_light_bake(), and is_baking().

◆ is_navigating

bool blender::eevee::Instance::is_navigating = false

True if current viewport is drawn during navigation operator.

Definition at line 173 of file eevee_instance.hh.

Referenced by init().

◆ is_painting

bool blender::eevee::Instance::is_painting = false

True if current viewport is drawn during painting operator.

Definition at line 175 of file eevee_instance.hh.

Referenced by init().

◆ is_playback

bool blender::eevee::Instance::is_playback = false

True if current viewport is drawn during playback.

Definition at line 171 of file eevee_instance.hh.

Referenced by draw_viewport(), and init().

◆ is_transforming

bool blender::eevee::Instance::is_transforming = false

True if current viewport is drawn during transforming operator.

Definition at line 177 of file eevee_instance.hh.

Referenced by init().

◆ is_viewport_compositor_used

bool blender::eevee::Instance::is_viewport_compositor_used = false

True if viewport compositor is used when drawing with this instance.

Definition at line 179 of file eevee_instance.hh.

Referenced by draw_viewport(), draw_viewport_image_render(), and init().

◆ is_viewport_image_render

bool blender::eevee::Instance::is_viewport_image_render = false

True if the instance is created only for viewport image render.

Definition at line 169 of file eevee_instance.hh.

Referenced by draw(), and init().

◆ light_probes

LightProbeModule blender::eevee::Instance::light_probes

Definition at line 140 of file eevee_instance.hh.

Referenced by begin_sync(), end_sync(), init(), init_light_bake(), Instance(), and object_sync().

◆ lights

LightModule blender::eevee::Instance::lights

◆ loaded_shaders

ShaderGroups blender::eevee::Instance::loaded_shaders = ShaderGroups(0)

Definition at line 183 of file eevee_instance.hh.

Referenced by end_sync(), init(), and is_loaded().

◆ log

CLG_LogRef blender::eevee::Instance::log = {"eevee"}
static

◆ lookdev

LookdevModule blender::eevee::Instance::lookdev

Definition at line 136 of file eevee_instance.hh.

Referenced by begin_sync(), init(), init_light_bake(), and Instance().

◆ lookdev_view

LookdevView blender::eevee::Instance::lookdev_view

Definition at line 135 of file eevee_instance.hh.

Referenced by Instance().

◆ main_view

MainView blender::eevee::Instance::main_view

Definition at line 132 of file eevee_instance.hh.

Referenced by begin_sync(), init(), init_light_bake(), and Instance().

◆ manager

◆ materials

MaterialModule blender::eevee::Instance::materials

◆ motion_blur

MotionBlurModule blender::eevee::Instance::motion_blur

Definition at line 123 of file eevee_instance.hh.

Referenced by begin_sync(), init(), init_light_bake(), and Instance().

◆ needed_shaders

ShaderGroups blender::eevee::Instance::needed_shaders = ShaderGroups(0)

Definition at line 184 of file eevee_instance.hh.

Referenced by draw_viewport(), end_sync(), init(), init_light_bake(), and render_frame().

◆ pipelines

◆ planar_probes

◆ raytracing

RayTraceModule blender::eevee::Instance::raytracing

◆ render

RenderEngine* blender::eevee::Instance::render

Definition at line 156 of file eevee_instance.hh.

Referenced by init(), init_light_bake(), is_viewport(), render_frame(), and render_sync().

◆ render_buffers

RenderBuffers blender::eevee::Instance::render_buffers

◆ render_layer

const RenderLayer* blender::eevee::Instance::render_layer

Only available when rendering for final render.

Definition at line 155 of file eevee_instance.hh.

Referenced by init(), init_light_bake(), and render_frame().

◆ rv3d

const RegionView3D* blender::eevee::Instance::rv3d

Definition at line 160 of file eevee_instance.hh.

Referenced by init(), init(), and init_light_bake().

◆ samples_in_flight

gpu::WorkInFlightPtr blender::eevee::Instance::samples_in_flight

For limiting number of submitted samples in flight on the GPU.

Definition at line 194 of file eevee_instance.hh.

Referenced by draw_viewport_image_render(), init(), and render_frame().

◆ sampling

◆ scene

Scene* blender::eevee::Instance::scene

Evaluated IDs.

Definition at line 149 of file eevee_instance.hh.

Referenced by blender::image_engine::Instance::image_sync(), init(), init(), init_light_bake(), and update_passes().

◆ shaders

ShaderModule& blender::eevee::Instance::shaders

Definition at line 112 of file eevee_instance.hh.

Referenced by end_sync(), init(), init_light_bake(), and Instance().

◆ shadows

ShadowModule blender::eevee::Instance::shadows

◆ sphere_probes

◆ subsurface

SubsurfaceModule blender::eevee::Instance::subsurface

Definition at line 116 of file eevee_instance.hh.

Referenced by end_sync(), and Instance().

◆ sync

SyncModule blender::eevee::Instance::sync

◆ uniform_data

UniformDataModule blender::eevee::Instance::uniform_data

◆ use_curves

bool blender::eevee::Instance::use_curves = true

Definition at line 188 of file eevee_instance.hh.

Referenced by begin_sync().

◆ use_surfaces

bool blender::eevee::Instance::use_surfaces = true

View-layer overrides.

Definition at line 187 of file eevee_instance.hh.

Referenced by begin_sync().

◆ use_volumes

bool blender::eevee::Instance::use_volumes = true

Definition at line 189 of file eevee_instance.hh.

Referenced by begin_sync().

◆ v3d

const View3D* blender::eevee::Instance::v3d

◆ velocity

VelocityModule blender::eevee::Instance::velocity

◆ view_layer

ViewLayer* blender::eevee::Instance::view_layer

Definition at line 150 of file eevee_instance.hh.

Referenced by begin_sync(), and update_passes().

◆ volume

VolumeModule blender::eevee::Instance::volume

Definition at line 141 of file eevee_instance.hh.

Referenced by begin_sync(), end_sync(), init(), init_light_bake(), and Instance().

◆ volume_probes

◆ world

World blender::eevee::Instance::world

Definition at line 134 of file eevee_instance.hh.

Referenced by begin_sync(), get_recalc_flags(), and Instance().


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