13#include <fmt/format.h>
95 friend VelocityModule;
96 friend MotionBlurModule;
99 static void *debug_scope_render_frame;
100 static void *debug_scope_render_sample;
101 static void *debug_scope_irradiance_setup;
102 static void *debug_scope_irradiance_sample;
104 uint64_t depsgraph_last_update_ = 0;
105 bool overlays_enabled_ =
false;
106 bool skip_render_ =
false;
109 std::string info_ =
"";
244 const rcti *output_rect,
245 const rcti *visible_rect,
248 Object *camera_object =
nullptr,
250 View *drw_view_ =
nullptr,
304 template<
typename... Args>
void info_append(
const char *msg, Args &&...args)
306 std::string fmt_msg = fmt::format(fmt::runtime(msg), args...) +
"\n";
308 if (info_ != fmt_msg && !
BLI_str_endswith(info_.c_str(), fmt_msg.c_str())) {
317 std::string fmt_msg = fmt::format(fmt::runtime(
RPT_(msg)), args...) +
"\n";
319 if (info_ != fmt_msg && !
BLI_str_endswith(info_.c_str(), fmt_msg.c_str())) {
326 return info_.c_str();
341 return overlays_enabled_;
389 void render_sample();
392 void update_eval_members();
394 void set_time(
float time);
401 if (scope_p ==
nullptr) {
General operations, lookup, etc. for blender objects.
uint recalc_flags(uint64_t last_update) const
VolumeProbeModule volume_probes
bool use_lookdev_overlay() const
void render_frame(RenderEngine *engine, RenderLayer *render_layer, const char *view_name)
bool use_scene_lights() const
SphereProbeModule sphere_probes
ShaderGroups loaded_shaders
AmbientOcclusion ambient_occlusion
RayTraceModule raytracing
bool use_studio_light() const
void info_append_i18n(const char *msg, Args &&...args)
bool gpencil_engine_enabled() const
SubsurfaceModule subsurface
bool overlays_enabled() const
StringRefNull name_get() final
Object * camera_eval_object
ShaderGroups needed_shaders
bool uses_render_border() const 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)
bool needs_lightprobe_sphere_passes() const
bool needs_planar_probe_passes() const
gpu::WorkInFlightPtr samples_in_flight
void object_sync(ObjectRef &ob_ref, Manager &manager) final
RenderBuffers render_buffers
const RenderLayer * render_layer
const DRWContext * draw_ctx
GPUSamplerFiltering anisotropic_filtering
uint get_recalc_flags(const ObjectRef &ob_ref)
uint get_recalc_flags(const blender::World &world)
bool is_viewport_image_render
const RegionView3D * rv3d
bool is_viewport_compositor_used
void store_metadata(RenderResult *render_result)
void info_append(const char *msg, Args &&...args)
DepthOfField depth_of_field
PlanarProbeModule planar_probes
void draw_viewport_image_render()
static void update_passes(RenderEngine *engine, Scene *scene, ViewLayer *view_layer)
bool is_loaded(ShaderGroups groups) const
bool do_lightprobe_sphere_sync() const
UniformDataModule uniform_data
LightProbeModule light_probes
MotionBlurModule motion_blur
void init_light_bake(Depsgraph *depsgraph, draw::Manager *manager)
Object * camera_orig_object
bool do_planar_probe_sync() const
#define RAYTRACE_BUF_SLOT
#define PIPELINE_BUF_SLOT
constexpr T clamp(T, U, U) RET
draw::UniformBuffer< RayTraceData > RaytraceDataBuf
draw::UniformBuffer< UniformData > UniformDataBuf
draw::UniformBuffer< PipelineInfoData > PipelineInfoBuf
std::unique_ptr< gpu::WorkInFlight, gpu::WorkInFlightDeleter > WorkInFlightPtr
unsigned __int64 uint64_t
void * GPU_debug_capture_scope_create(const char *name)
int bool bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1
@ GPU_SAMPLER_FILTERING_DEFAULT
@ V3D_SHADING_SCENE_WORLD
@ V3D_SHADING_SCENE_LIGHTS
@ V3D_SHADING_SCENE_LIGHTS_RENDER
@ V3D_SHADING_SCENE_WORLD_RENDER
bool DEG_id_type_any_exists(const Depsgraph *depsgraph, short id_type)
VecBase< int32_t, 2 > int2
BMesh const char void * data
void GPU_debug_capture_scope_end(void *scope)
bool GPU_debug_capture_scope_begin(void *scope)