154 Depsgraph *depsgraph,
156 ::std::function<
void(
RenderResult *)> store_metadata_cb);
159 Depsgraph *depsgraph,
205 return *id_cast<T *>(
object.
data);
241 float last_sync_time_;
242 float last_submission_time_;
413 return g_context !=
nullptr;
446 return last_sync_time_;
450 return last_submission_time_;
Object is a sort of wrapper for general info.
CCL_NAMESPACE_BEGIN struct Options options
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void DRW_render_to_image(RenderEngine *engine, Depsgraph *depsgraph, std::function< void(RenderEngine *, RenderLayer *, const rcti)> render_view_cb, std::function< void(RenderResult *)> store_metadata_cb)
void DRW_custom_pipeline_end(DRWContext &draw_ctx)
draw::TextureFromPool & DRW_viewport_pass_texture_get(const char *pass_name)
bool BKE_subsurf_modifier_has_gpu_subdiv(const Mesh *mesh)
bool DRW_object_is_renderable(const Object *ob)
Mesh & DRW_mesh_get_for_drawing(Mesh &mesh)
int DRW_object_visibility_in_active_context(const Object *ob)
void DRW_render_object_iter(RenderEngine *engine, Depsgraph *depsgraph, std::function< void(draw::ObjectRef &, RenderEngine *, Depsgraph *)> callback)
void DRW_render_set_time(RenderEngine *engine, Depsgraph *depsgraph, int frame, float subframe)
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
T & DRW_object_get_data_for_drawing(const Object &object)
BMesh const char void * data
bool DRW_object_is_visible_psys_in_active_context(const Object *object, const ParticleSystem *psys)
bool DRW_object_use_hide_faces(const Object *ob)
void DRW_custom_pipeline_begin(DRWContext &draw_ctx, Depsgraph *)
const DRWContext * DRW_context_get()
const Mesh * DRW_object_get_editmesh_cage_for_drawing(const Object &object)
bool DRW_object_is_in_edit_mode(const Object *ob)
bool DRW_viewport_pass_texture_exists(const char *pass_name)
Mesh * BKE_mesh_wrapper_ensure_subdivision(Mesh *mesh)
void DRW_viewport_request_redraw()
bool is_transforming() const
bool is_viewport_xr() const
void sync(iter_callback_t iter_callback)
DefaultTextureList * viewport_texture_list_get() const
gpu::FrameBuffer * default_framebuffer()
Set< Object * > delayed_extraction
bool is_navigating() const
void engines_data_validate()
DRWContext(Mode mode, Depsgraph *depsgraph, GPUViewport *viewport, const bContext *C=nullptr, ARegion *region=nullptr, View3D *v3d=nullptr)
void engines_init_and_sync(iter_callback_t iter_callback)
DRWTextStore ** text_store_p
::std::function< void(struct DupliCacheManager &, struct ExtractionGraph &)> iter_callback_t
bool is_image_render() const
float2 viewport_size_get() const
void engines_draw_scene()
float last_submission_time() const
bool is_material_select() const
float last_sync_time() const
static DRWContext & get_active()
DefaultFramebufferList * viewport_framebuffer_list_get() const
bool is_viewport_compositor_used() const
bool is_viewport_image_render() const
enum blender::DRWContext::Mode mode
void enable_engines(bool gpencil_engine_needed=false, RenderEngineType *render_engine_type=nullptr)
bool is_scene_render() const
DRWViewData * view_data_active
virtual DrawEngine * create_instance()=0
virtual void object_sync(draw::ObjectRef &ob_ref, draw::Manager &manager)=0
virtual StringRefNull name_get()=0
static constexpr int GPU_INFO_SIZE
virtual bool uses_render_border() const
virtual void draw(draw::Manager &manager)=0
virtual void end_sync()=0
virtual ~DrawEngine()=default
virtual void begin_sync()=0