Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee_next/eevee_instance.hh
| Show All 10 Lines | |||||
| #pragma once | #pragma once | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DNA_lightprobe_types.h" | #include "DNA_lightprobe_types.h" | ||||
| #include "DRW_render.h" | #include "DRW_render.h" | ||||
| #include "eevee_camera.hh" | #include "eevee_camera.hh" | ||||
| #include "eevee_cryptomatte.hh" | |||||
| #include "eevee_depth_of_field.hh" | #include "eevee_depth_of_field.hh" | ||||
| #include "eevee_film.hh" | #include "eevee_film.hh" | ||||
| #include "eevee_hizbuffer.hh" | #include "eevee_hizbuffer.hh" | ||||
| #include "eevee_light.hh" | #include "eevee_light.hh" | ||||
| #include "eevee_material.hh" | #include "eevee_material.hh" | ||||
| #include "eevee_motion_blur.hh" | #include "eevee_motion_blur.hh" | ||||
| #include "eevee_pipeline.hh" | #include "eevee_pipeline.hh" | ||||
| #include "eevee_renderbuffers.hh" | #include "eevee_renderbuffers.hh" | ||||
| Show All 17 Lines | public: | ||||
| ShaderModule &shaders; | ShaderModule &shaders; | ||||
| SyncModule sync; | SyncModule sync; | ||||
| MaterialModule materials; | MaterialModule materials; | ||||
| PipelineModule pipelines; | PipelineModule pipelines; | ||||
| LightModule lights; | LightModule lights; | ||||
| VelocityModule velocity; | VelocityModule velocity; | ||||
| MotionBlurModule motion_blur; | MotionBlurModule motion_blur; | ||||
| DepthOfField depth_of_field; | DepthOfField depth_of_field; | ||||
| Cryptomatte cryptomatte; | |||||
| HiZBuffer hiz_buffer; | HiZBuffer hiz_buffer; | ||||
| Sampling sampling; | Sampling sampling; | ||||
| Camera camera; | Camera camera; | ||||
| Film film; | Film film; | ||||
| RenderBuffers render_buffers; | RenderBuffers render_buffers; | ||||
| MainView main_view; | MainView main_view; | ||||
| World world; | World world; | ||||
| Show All 26 Lines | Instance() | ||||
| : shaders(*ShaderModule::module_get()), | : shaders(*ShaderModule::module_get()), | ||||
| sync(*this), | sync(*this), | ||||
| materials(*this), | materials(*this), | ||||
| pipelines(*this), | pipelines(*this), | ||||
| lights(*this), | lights(*this), | ||||
| velocity(*this), | velocity(*this), | ||||
| motion_blur(*this), | motion_blur(*this), | ||||
| depth_of_field(*this), | depth_of_field(*this), | ||||
| cryptomatte(*this), | |||||
| hiz_buffer(*this), | hiz_buffer(*this), | ||||
| sampling(*this), | sampling(*this), | ||||
| camera(*this), | camera(*this), | ||||
| film(*this), | film(*this), | ||||
| render_buffers(*this), | render_buffers(*this), | ||||
| main_view(*this), | main_view(*this), | ||||
| world(*this){}; | world(*this){}; | ||||
| ~Instance(){}; | ~Instance(){}; | ||||
| Show All 10 Lines | void init(const int2 &output_res, | ||||
| const RegionView3D *rv3d = nullptr); | const RegionView3D *rv3d = nullptr); | ||||
| void begin_sync(); | void begin_sync(); | ||||
| void object_sync(Object *ob); | void object_sync(Object *ob); | ||||
| void end_sync(); | void end_sync(); | ||||
| void render_sync(); | void render_sync(); | ||||
| void render_frame(RenderLayer *render_layer, const char *view_name); | void render_frame(RenderLayer *render_layer, const char *view_name); | ||||
| void store_metadata(RenderResult *render_result); | |||||
| void draw_viewport(DefaultFramebufferList *dfbl); | void draw_viewport(DefaultFramebufferList *dfbl); | ||||
| static void update_passes(RenderEngine *engine, Scene *scene, ViewLayer *view_layer); | |||||
| bool is_viewport() const | bool is_viewport() const | ||||
| { | { | ||||
| return render == nullptr; | return render == nullptr; | ||||
| } | } | ||||
| bool overlays_enabled() const | bool overlays_enabled() const | ||||
| { | { | ||||
| return v3d && ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0); | return v3d && ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0); | ||||
| Show All 36 Lines | |||||