Blender  V3.3
rna_render.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include <stdlib.h>
8 
9 #include "DNA_node_types.h"
10 #include "DNA_object_types.h"
11 #include "DNA_scene_types.h"
12 
13 #include "BLI_path_util.h"
14 #include "BLI_utildefines.h"
15 
16 #ifdef WITH_PYTHON
17 # include "BPY_extern.h"
18 #endif
19 
20 #include "DEG_depsgraph.h"
21 
22 #include "BKE_image.h"
23 #include "BKE_scene.h"
24 
25 #include "RNA_define.h"
26 #include "RNA_enum_types.h"
27 
28 #include "rna_internal.h"
29 
30 #include "RE_engine.h"
31 #include "RE_pipeline.h"
32 
33 #include "ED_render.h"
34 
35 /* Deprecated, only provided for API compatibility. */
37  {SCE_PASS_COMBINED, "COMBINED", 0, "Combined", ""},
38  {SCE_PASS_Z, "Z", 0, "Z", ""},
39  {SCE_PASS_SHADOW, "SHADOW", 0, "Shadow", ""},
40  {SCE_PASS_AO, "AO", 0, "Ambient Occlusion", ""},
41  {SCE_PASS_POSITION, "POSITION", 0, "Position", ""},
42  {SCE_PASS_NORMAL, "NORMAL", 0, "Normal", ""},
43  {SCE_PASS_VECTOR, "VECTOR", 0, "Vector", ""},
44  {SCE_PASS_INDEXOB, "OBJECT_INDEX", 0, "Object Index", ""},
45  {SCE_PASS_UV, "UV", 0, "UV", ""},
46  {SCE_PASS_MIST, "MIST", 0, "Mist", ""},
47  {SCE_PASS_EMIT, "EMIT", 0, "Emit", ""},
48  {SCE_PASS_ENVIRONMENT, "ENVIRONMENT", 0, "Environment", ""},
49  {SCE_PASS_INDEXMA, "MATERIAL_INDEX", 0, "Material Index", ""},
50  {SCE_PASS_DIFFUSE_DIRECT, "DIFFUSE_DIRECT", 0, "Diffuse Direct", ""},
51  {SCE_PASS_DIFFUSE_INDIRECT, "DIFFUSE_INDIRECT", 0, "Diffuse Indirect", ""},
52  {SCE_PASS_DIFFUSE_COLOR, "DIFFUSE_COLOR", 0, "Diffuse Color", ""},
53  {SCE_PASS_GLOSSY_DIRECT, "GLOSSY_DIRECT", 0, "Glossy Direct", ""},
54  {SCE_PASS_GLOSSY_INDIRECT, "GLOSSY_INDIRECT", 0, "Glossy Indirect", ""},
55  {SCE_PASS_GLOSSY_COLOR, "GLOSSY_COLOR", 0, "Glossy Color", ""},
56  {SCE_PASS_TRANSM_DIRECT, "TRANSMISSION_DIRECT", 0, "Transmission Direct", ""},
57  {SCE_PASS_TRANSM_INDIRECT, "TRANSMISSION_INDIRECT", 0, "Transmission Indirect", ""},
58  {SCE_PASS_TRANSM_COLOR, "TRANSMISSION_COLOR", 0, "Transmission Color", ""},
59  {SCE_PASS_SUBSURFACE_DIRECT, "SUBSURFACE_DIRECT", 0, "Subsurface Direct", ""},
60  {SCE_PASS_SUBSURFACE_INDIRECT, "SUBSURFACE_INDIRECT", 0, "Subsurface Indirect", ""},
61  {SCE_PASS_SUBSURFACE_COLOR, "SUBSURFACE_COLOR", 0, "Subsurface Color", ""},
62  {0, NULL, 0, NULL, NULL},
63 };
64 
66  {SCE_PASS_COMBINED, "COMBINED", 0, "Combined", ""},
67  {SCE_PASS_AO, "AO", 0, "Ambient Occlusion", ""},
68  {SCE_PASS_SHADOW, "SHADOW", 0, "Shadow", ""},
69  {SCE_PASS_POSITION, "POSITION", 0, "Position", ""},
70  {SCE_PASS_NORMAL, "NORMAL", 0, "Normal", ""},
71  {SCE_PASS_UV, "UV", 0, "UV", ""},
72  {SCE_PASS_ROUGHNESS, "ROUGHNESS", 0, "ROUGHNESS", ""},
73  {SCE_PASS_EMIT, "EMIT", 0, "Emit", ""},
74  {SCE_PASS_ENVIRONMENT, "ENVIRONMENT", 0, "Environment", ""},
75  {SCE_PASS_DIFFUSE_COLOR, "DIFFUSE", 0, "Diffuse", ""},
76  {SCE_PASS_GLOSSY_COLOR, "GLOSSY", 0, "Glossy", ""},
77  {SCE_PASS_TRANSM_COLOR, "TRANSMISSION", 0, "Transmission", ""},
78  {0, NULL, 0, NULL, NULL},
79 };
80 
81 #ifdef RNA_RUNTIME
82 
83 # include "MEM_guardedalloc.h"
84 
85 # include "RNA_access.h"
86 
87 # include "BKE_appdir.h"
88 # include "BKE_context.h"
89 # include "BKE_report.h"
90 
91 # include "GPU_capabilities.h"
92 # include "GPU_shader.h"
93 # include "IMB_colormanagement.h"
94 
95 # include "DEG_depsgraph_query.h"
96 
97 /* RenderEngine Callbacks */
98 
99 static void engine_tag_redraw(RenderEngine *engine)
100 {
101  engine->flag |= RE_ENGINE_DO_DRAW;
102 }
103 
104 static void engine_tag_update(RenderEngine *engine)
105 {
106  engine->flag |= RE_ENGINE_DO_UPDATE;
107 }
108 
109 static bool engine_support_display_space_shader(RenderEngine *UNUSED(engine), Scene *scene)
110 {
112 }
113 
114 static int engine_get_preview_pixel_size(RenderEngine *UNUSED(engine), Scene *scene)
115 {
117 }
118 
119 static void engine_bind_display_space_shader(RenderEngine *UNUSED(engine), Scene *UNUSED(scene))
120 {
122  GPU_shader_bind(shader);
123 
124  int img_loc = GPU_shader_get_uniform(shader, "image");
125 
126  GPU_shader_uniform_int(shader, img_loc, 0);
127 }
128 
129 static void engine_unbind_display_space_shader(RenderEngine *UNUSED(engine))
130 {
132 }
133 
134 static void engine_update(RenderEngine *engine, Main *bmain, Depsgraph *depsgraph)
135 {
136  extern FunctionRNA rna_RenderEngine_update_func;
137  PointerRNA ptr;
138  ParameterList list;
139  FunctionRNA *func;
140 
141  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
142  func = &rna_RenderEngine_update_func;
143 
144  RNA_parameter_list_create(&list, &ptr, func);
145  RNA_parameter_set_lookup(&list, "data", &bmain);
146  RNA_parameter_set_lookup(&list, "depsgraph", &depsgraph);
147  engine->type->rna_ext.call(NULL, &ptr, func, &list);
148 
150 }
151 
152 static void engine_render(RenderEngine *engine, Depsgraph *depsgraph)
153 {
154  extern FunctionRNA rna_RenderEngine_render_func;
155  PointerRNA ptr;
156  ParameterList list;
157  FunctionRNA *func;
158 
159  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
160  func = &rna_RenderEngine_render_func;
161 
162  RNA_parameter_list_create(&list, &ptr, func);
163  RNA_parameter_set_lookup(&list, "depsgraph", &depsgraph);
164  engine->type->rna_ext.call(NULL, &ptr, func, &list);
165 
167 }
168 
169 static void engine_render_frame_finish(RenderEngine *engine)
170 {
171  extern FunctionRNA rna_RenderEngine_render_frame_finish_func;
172  PointerRNA ptr;
173  ParameterList list;
174  FunctionRNA *func;
175 
176  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
177  func = &rna_RenderEngine_render_frame_finish_func;
178 
179  RNA_parameter_list_create(&list, &ptr, func);
180  engine->type->rna_ext.call(NULL, &ptr, func, &list);
181 
183 }
184 
185 static void engine_draw(RenderEngine *engine, const struct bContext *context, Depsgraph *depsgraph)
186 {
187  extern FunctionRNA rna_RenderEngine_draw_func;
188  PointerRNA ptr;
189  ParameterList list;
190  FunctionRNA *func;
191 
192  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
193  func = &rna_RenderEngine_draw_func;
194 
195  RNA_parameter_list_create(&list, &ptr, func);
196  RNA_parameter_set_lookup(&list, "context", &context);
197  RNA_parameter_set_lookup(&list, "depsgraph", &depsgraph);
198  engine->type->rna_ext.call(NULL, &ptr, func, &list);
199 
201 }
202 
203 static void engine_bake(RenderEngine *engine,
204  struct Depsgraph *depsgraph,
205  struct Object *object,
206  const int pass_type,
207  const int pass_filter,
208  const int width,
209  const int height)
210 {
211  extern FunctionRNA rna_RenderEngine_bake_func;
212  PointerRNA ptr;
213  ParameterList list;
214  FunctionRNA *func;
215 
216  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
217  func = &rna_RenderEngine_bake_func;
218 
219  RNA_parameter_list_create(&list, &ptr, func);
220  RNA_parameter_set_lookup(&list, "depsgraph", &depsgraph);
221  RNA_parameter_set_lookup(&list, "object", &object);
222  RNA_parameter_set_lookup(&list, "pass_type", &pass_type);
223  RNA_parameter_set_lookup(&list, "pass_filter", &pass_filter);
224  RNA_parameter_set_lookup(&list, "width", &width);
225  RNA_parameter_set_lookup(&list, "height", &height);
226  engine->type->rna_ext.call(NULL, &ptr, func, &list);
227 
229 }
230 
231 static void engine_view_update(RenderEngine *engine,
232  const struct bContext *context,
234 {
235  extern FunctionRNA rna_RenderEngine_view_update_func;
236  PointerRNA ptr;
237  ParameterList list;
238  FunctionRNA *func;
239 
240  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
241  func = &rna_RenderEngine_view_update_func;
242 
243  RNA_parameter_list_create(&list, &ptr, func);
244  RNA_parameter_set_lookup(&list, "context", &context);
245  RNA_parameter_set_lookup(&list, "depsgraph", &depsgraph);
246  engine->type->rna_ext.call(NULL, &ptr, func, &list);
247 
249 }
250 
251 static void engine_view_draw(RenderEngine *engine,
252  const struct bContext *context,
254 {
255  extern FunctionRNA rna_RenderEngine_view_draw_func;
256  PointerRNA ptr;
257  ParameterList list;
258  FunctionRNA *func;
259 
260  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
261  func = &rna_RenderEngine_view_draw_func;
262 
263  RNA_parameter_list_create(&list, &ptr, func);
264  RNA_parameter_set_lookup(&list, "context", &context);
265  RNA_parameter_set_lookup(&list, "depsgraph", &depsgraph);
266  engine->type->rna_ext.call(NULL, &ptr, func, &list);
267 
269 }
270 
271 static void engine_update_script_node(RenderEngine *engine,
272  struct bNodeTree *ntree,
273  struct bNode *node)
274 {
275  extern FunctionRNA rna_RenderEngine_update_script_node_func;
276  PointerRNA ptr, nodeptr;
277  ParameterList list;
278  FunctionRNA *func;
279 
280  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
281  RNA_pointer_create((ID *)ntree, &RNA_Node, node, &nodeptr);
282  func = &rna_RenderEngine_update_script_node_func;
283 
284  RNA_parameter_list_create(&list, &ptr, func);
285  RNA_parameter_set_lookup(&list, "node", &nodeptr);
286  engine->type->rna_ext.call(NULL, &ptr, func, &list);
287 
289 }
290 
291 static void engine_update_render_passes(RenderEngine *engine,
292  struct Scene *scene,
293  struct ViewLayer *view_layer)
294 {
295  extern FunctionRNA rna_RenderEngine_update_render_passes_func;
296  PointerRNA ptr;
297  ParameterList list;
298  FunctionRNA *func;
299 
300  RNA_pointer_create(NULL, engine->type->rna_ext.srna, engine, &ptr);
301  func = &rna_RenderEngine_update_render_passes_func;
302 
303  RNA_parameter_list_create(&list, &ptr, func);
304  RNA_parameter_set_lookup(&list, "scene", &scene);
305  RNA_parameter_set_lookup(&list, "renderlayer", &view_layer);
306  engine->type->rna_ext.call(NULL, &ptr, func, &list);
307 
309 }
310 
311 /* RenderEngine registration */
312 
313 static void rna_RenderEngine_unregister(Main *bmain, StructRNA *type)
314 {
316 
317  if (!et) {
318  return;
319  }
320 
321  /* Stop all renders in case we were using this one. */
322  ED_render_engine_changed(bmain, false);
324 
327  BLI_freelinkN(&R_engines, et);
328 }
329 
330 static StructRNA *rna_RenderEngine_register(Main *bmain,
331  ReportList *reports,
332  void *data,
333  const char *identifier,
334  StructValidateFunc validate,
335  StructCallbackFunc call,
337 {
338  RenderEngineType *et, dummyet = {NULL};
339  RenderEngine dummyengine = {NULL};
340  PointerRNA dummyptr;
341  int have_function[9];
342 
343  /* setup dummy engine & engine type to store static properties in */
344  dummyengine.type = &dummyet;
346  RNA_pointer_create(NULL, &RNA_RenderEngine, &dummyengine, &dummyptr);
347 
348  /* validate the python class */
349  if (validate(&dummyptr, data, have_function) != 0) {
350  return NULL;
351  }
352 
353  if (strlen(identifier) >= sizeof(dummyet.idname)) {
354  BKE_reportf(reports,
355  RPT_ERROR,
356  "Registering render engine class: '%s' is too long, maximum length is %d",
357  identifier,
358  (int)sizeof(dummyet.idname));
359  return NULL;
360  }
361 
362  /* check if we have registered this engine type before, and remove it */
363  for (et = R_engines.first; et; et = et->next) {
364  if (STREQ(et->idname, dummyet.idname)) {
365  if (et->rna_ext.srna) {
366  rna_RenderEngine_unregister(bmain, et->rna_ext.srna);
367  }
368  break;
369  }
370  }
371 
372  /* create a new engine type */
373  et = MEM_mallocN(sizeof(RenderEngineType), "python render engine");
374  memcpy(et, &dummyet, sizeof(dummyet));
375 
376  et->rna_ext.srna = RNA_def_struct_ptr(&BLENDER_RNA, et->idname, &RNA_RenderEngine);
377  et->rna_ext.data = data;
378  et->rna_ext.call = call;
379  et->rna_ext.free = free;
381 
382  et->update = (have_function[0]) ? engine_update : NULL;
383  et->render = (have_function[1]) ? engine_render : NULL;
384  et->render_frame_finish = (have_function[2]) ? engine_render_frame_finish : NULL;
385  et->draw = (have_function[3]) ? engine_draw : NULL;
386  et->bake = (have_function[4]) ? engine_bake : NULL;
387  et->view_update = (have_function[5]) ? engine_view_update : NULL;
388  et->view_draw = (have_function[6]) ? engine_view_draw : NULL;
389  et->update_script_node = (have_function[7]) ? engine_update_script_node : NULL;
390  et->update_render_passes = (have_function[8]) ? engine_update_render_passes : NULL;
391 
393 
394  return et->rna_ext.srna;
395 }
396 
397 static void **rna_RenderEngine_instance(PointerRNA *ptr)
398 {
399  RenderEngine *engine = ptr->data;
400  return &engine->py_instance;
401 }
402 
403 static StructRNA *rna_RenderEngine_refine(PointerRNA *ptr)
404 {
405  RenderEngine *engine = (RenderEngine *)ptr->data;
406  return (engine->type && engine->type->rna_ext.srna) ? engine->type->rna_ext.srna :
407  &RNA_RenderEngine;
408 }
409 
410 static void rna_RenderEngine_tempdir_get(PointerRNA *UNUSED(ptr), char *value)
411 {
413 }
414 
415 static int rna_RenderEngine_tempdir_length(PointerRNA *UNUSED(ptr))
416 {
417  return strlen(BKE_tempdir_session());
418 }
419 
420 static PointerRNA rna_RenderEngine_render_get(PointerRNA *ptr)
421 {
422  RenderEngine *engine = (RenderEngine *)ptr->data;
423 
424  if (engine->re) {
426 
427  return rna_pointer_inherit_refine(ptr, &RNA_RenderSettings, r);
428  }
429  else {
430  return rna_pointer_inherit_refine(ptr, &RNA_RenderSettings, NULL);
431  }
432 }
433 
434 static PointerRNA rna_RenderEngine_camera_override_get(PointerRNA *ptr)
435 {
436  RenderEngine *engine = (RenderEngine *)ptr->data;
437  /* TODO(sergey): Shouldn't engine point to an evaluated datablocks already? */
438  if (engine->re) {
439  Object *cam = RE_GetCamera(engine->re);
440  Object *cam_eval = DEG_get_evaluated_object(engine->depsgraph, cam);
441  return rna_pointer_inherit_refine(ptr, &RNA_Object, cam_eval);
442  }
443  else {
444  return rna_pointer_inherit_refine(ptr, &RNA_Object, engine->camera_override);
445  }
446 }
447 
448 static void rna_RenderEngine_engine_frame_set(RenderEngine *engine, int frame, float subframe)
449 {
450 # ifdef WITH_PYTHON
452 # endif
453 
454  RE_engine_frame_set(engine, frame, subframe);
455 
456 # ifdef WITH_PYTHON
458 # endif
459 }
460 
461 static void rna_RenderResult_views_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
462 {
463  RenderResult *rr = (RenderResult *)ptr->data;
465 }
466 
467 static void rna_RenderResult_layers_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
468 {
469  RenderResult *rr = (RenderResult *)ptr->data;
471 }
472 
473 static void rna_RenderResult_stamp_data_add_field(RenderResult *rr,
474  const char *field,
475  const char *value)
476 {
477  BKE_render_result_stamp_data(rr, field, value);
478 }
479 
480 static void rna_RenderLayer_passes_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
481 {
482  RenderLayer *rl = (RenderLayer *)ptr->data;
484 }
485 
486 static int rna_RenderPass_rect_get_length(const PointerRNA *ptr,
488 {
489  const RenderPass *rpass = (RenderPass *)ptr->data;
490 
491  length[0] = rpass->rectx * rpass->recty;
492  length[1] = rpass->channels;
493 
494  return length[0] * length[1];
495 }
496 
497 static void rna_RenderPass_rect_get(PointerRNA *ptr, float *values)
498 {
499  RenderPass *rpass = (RenderPass *)ptr->data;
500  memcpy(values, rpass->rect, sizeof(float) * rpass->rectx * rpass->recty * rpass->channels);
501 }
502 
503 void rna_RenderPass_rect_set(PointerRNA *ptr, const float *values)
504 {
505  RenderPass *rpass = (RenderPass *)ptr->data;
506  memcpy(rpass->rect, values, sizeof(float) * rpass->rectx * rpass->recty * rpass->channels);
507 }
508 
509 static RenderPass *rna_RenderPass_find_by_type(RenderLayer *rl, int passtype, const char *view)
510 {
511  return RE_pass_find_by_type(rl, passtype, view);
512 }
513 
514 static RenderPass *rna_RenderPass_find_by_name(RenderLayer *rl, const char *name, const char *view)
515 {
516  return RE_pass_find_by_name(rl, name, view);
517 }
518 
519 #else /* RNA_RUNTIME */
520 
522 {
523  StructRNA *srna;
524  PropertyRNA *prop;
525 
526  FunctionRNA *func;
527  PropertyRNA *parm;
528 
529  static const EnumPropertyItem render_pass_type_items[] = {
530  {SOCK_FLOAT, "VALUE", 0, "Value", ""},
531  {SOCK_VECTOR, "VECTOR", 0, "Vector", ""},
532  {SOCK_RGBA, "COLOR", 0, "Color", ""},
533  {0, NULL, 0, NULL, NULL},
534  };
535 
536  srna = RNA_def_struct(brna, "RenderEngine", NULL);
537  RNA_def_struct_sdna(srna, "RenderEngine");
538  RNA_def_struct_ui_text(srna, "Render Engine", "Render engine");
539  RNA_def_struct_refine_func(srna, "rna_RenderEngine_refine");
541  "rna_RenderEngine_register",
542  "rna_RenderEngine_unregister",
543  "rna_RenderEngine_instance");
544 
545  /* final render callbacks */
546  func = RNA_def_function(srna, "update", NULL);
547  RNA_def_function_ui_description(func, "Export scene data for render");
549  RNA_def_pointer(func, "data", "BlendData", "", "");
550  RNA_def_pointer(func, "depsgraph", "Depsgraph", "", "");
551 
552  func = RNA_def_function(srna, "render", NULL);
553  RNA_def_function_ui_description(func, "Render scene into an image");
555  parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "", "");
557 
558  func = RNA_def_function(srna, "render_frame_finish", NULL);
560  func, "Perform finishing operations after all view layers in a frame were rendered");
562 
563  func = RNA_def_function(srna, "draw", NULL);
564  RNA_def_function_ui_description(func, "Draw render image");
566  parm = RNA_def_pointer(func, "context", "Context", "", "");
568  parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "", "");
570 
571  func = RNA_def_function(srna, "bake", NULL);
572  RNA_def_function_ui_description(func, "Bake passes");
574  parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "", "");
576  parm = RNA_def_pointer(func, "object", "Object", "", "");
578  parm = RNA_def_enum(func, "pass_type", rna_enum_bake_pass_type_items, 0, "Pass", "Pass to bake");
580  parm = RNA_def_int(func,
581  "pass_filter",
582  0,
583  0,
584  INT_MAX,
585  "Pass Filter",
586  "Filter to combined, diffuse, glossy and transmission passes",
587  0,
588  INT_MAX);
590  parm = RNA_def_int(func, "width", 0, 0, INT_MAX, "Width", "Image width", 0, INT_MAX);
592  parm = RNA_def_int(func, "height", 0, 0, INT_MAX, "Height", "Image height", 0, INT_MAX);
594 
595  /* viewport render callbacks */
596  func = RNA_def_function(srna, "view_update", NULL);
597  RNA_def_function_ui_description(func, "Update on data changes for viewport render");
599  parm = RNA_def_pointer(func, "context", "Context", "", "");
601  parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "", "");
603 
604  func = RNA_def_function(srna, "view_draw", NULL);
605  RNA_def_function_ui_description(func, "Draw viewport render");
607  parm = RNA_def_pointer(func, "context", "Context", "", "");
609  parm = RNA_def_pointer(func, "depsgraph", "Depsgraph", "", "");
611 
612  /* shader script callbacks */
613  func = RNA_def_function(srna, "update_script_node", NULL);
614  RNA_def_function_ui_description(func, "Compile shader script node");
616  parm = RNA_def_pointer(func, "node", "Node", "", "");
618 
619  func = RNA_def_function(srna, "update_render_passes", NULL);
620  RNA_def_function_ui_description(func, "Update the render passes that will be generated");
622  parm = RNA_def_pointer(func, "scene", "Scene", "", "");
623  parm = RNA_def_pointer(func, "renderlayer", "ViewLayer", "", "");
624 
625  /* tag for redraw */
626  func = RNA_def_function(srna, "tag_redraw", "engine_tag_redraw");
627  RNA_def_function_ui_description(func, "Request redraw for viewport rendering");
628 
629  /* tag for update */
630  func = RNA_def_function(srna, "tag_update", "engine_tag_update");
631  RNA_def_function_ui_description(func, "Request update call for viewport rendering");
632 
633  func = RNA_def_function(srna, "begin_result", "RE_engine_begin_result");
635  func, "Create render result to write linear floating-point render layers and passes");
636  parm = RNA_def_int(func, "x", 0, 0, INT_MAX, "X", "", 0, INT_MAX);
638  parm = RNA_def_int(func, "y", 0, 0, INT_MAX, "Y", "", 0, INT_MAX);
640  parm = RNA_def_int(func, "w", 0, 0, INT_MAX, "Width", "", 0, INT_MAX);
642  parm = RNA_def_int(func, "h", 0, 0, INT_MAX, "Height", "", 0, INT_MAX);
645  func, "layer", NULL, 0, "Layer", "Single layer to get render result for"); /* NULL ok here */
647  func, "view", NULL, 0, "View", "Single view to get render result for"); /* NULL ok here */
648  parm = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
649  RNA_def_function_return(func, parm);
650 
651  func = RNA_def_function(srna, "update_result", "RE_engine_update_result");
653  func, "Signal that pixels have been updated and can be redrawn in the user interface");
654  parm = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
656 
657  func = RNA_def_function(srna, "end_result", "RE_engine_end_result");
659  "All pixels in the render result have been set and are final");
660  parm = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
663  func, "cancel", 0, "Cancel", "Don't mark tile as done, don't merge results unless forced");
664  RNA_def_boolean(func, "highlight", 0, "Highlight", "Don't mark tile as done yet");
666  func, "do_merge_results", 0, "Merge Results", "Merge results even if cancel=true");
667 
668  func = RNA_def_function(srna, "add_pass", "RE_engine_add_pass");
669  RNA_def_function_ui_description(func, "Add a pass to the render layer");
670  parm = RNA_def_string(
671  func, "name", NULL, 0, "Name", "Name of the Pass, without view or channel tag");
673  parm = RNA_def_int(func, "channels", 0, 0, INT_MAX, "Channels", "", 0, INT_MAX);
675  parm = RNA_def_string(
676  func, "chan_id", NULL, 0, "Channel IDs", "Channel names, one character per channel");
679  func, "layer", NULL, 0, "Layer", "Single layer to add render pass to"); /* NULL ok here */
680 
681  func = RNA_def_function(srna, "get_result", "RE_engine_get_result");
682  RNA_def_function_ui_description(func, "Get final result for non-pixel operations");
683  parm = RNA_def_pointer(func, "result", "RenderResult", "Result", "");
684  RNA_def_function_return(func, parm);
685 
686  func = RNA_def_function(srna, "test_break", "RE_engine_test_break");
688  "Test if the render operation should been canceled, this is a "
689  "fast call that should be used regularly for responsiveness");
690  parm = RNA_def_boolean(func, "do_break", 0, "Break", "");
691  RNA_def_function_return(func, parm);
692 
693  func = RNA_def_function(srna, "pass_by_index_get", "RE_engine_pass_by_index_get");
694  parm = RNA_def_string(func, "layer", NULL, 0, "Layer", "Name of render layer to get pass for");
696  parm = RNA_def_int(func, "index", 0, 0, INT_MAX, "Index", "Index of pass to get", 0, INT_MAX);
698  parm = RNA_def_pointer(func, "render_pass", "RenderPass", "Index", "Index of pass to get");
699  RNA_def_function_return(func, parm);
700 
701  func = RNA_def_function(srna, "active_view_get", "RE_engine_active_view_get");
702  parm = RNA_def_string(func, "view", NULL, 0, "View", "Single view active");
703  RNA_def_function_return(func, parm);
704 
705  func = RNA_def_function(srna, "active_view_set", "RE_engine_active_view_set");
706  parm = RNA_def_string(
707  func, "view", NULL, 0, "View", "Single view to set as active"); /* NULL ok here */
709 
710  func = RNA_def_function(srna, "camera_shift_x", "RE_engine_get_camera_shift_x");
711  parm = RNA_def_pointer(func, "camera", "Object", "", "");
713  RNA_def_boolean(func, "use_spherical_stereo", 0, "Spherical Stereo", "");
714  parm = RNA_def_float(func, "shift_x", 0.0f, 0.0f, FLT_MAX, "Shift X", "", 0.0f, FLT_MAX);
715  RNA_def_function_return(func, parm);
716 
717  func = RNA_def_function(srna, "camera_model_matrix", "RE_engine_get_camera_model_matrix");
718  parm = RNA_def_pointer(func, "camera", "Object", "", "");
720  RNA_def_boolean(func, "use_spherical_stereo", 0, "Spherical Stereo", "");
721  parm = RNA_def_float_matrix(func,
722  "r_model_matrix",
723  4,
724  4,
725  NULL,
726  0.0f,
727  0.0f,
728  "Model Matrix",
729  "Normalized camera model matrix",
730  0.0f,
731  0.0f);
733  RNA_def_function_output(func, parm);
734 
735  func = RNA_def_function(srna, "use_spherical_stereo", "RE_engine_get_spherical_stereo");
736  parm = RNA_def_pointer(func, "camera", "Object", "", "");
738  parm = RNA_def_boolean(func, "use_spherical_stereo", 0, "Spherical Stereo", "");
739  RNA_def_function_return(func, parm);
740 
741  func = RNA_def_function(srna, "update_stats", "RE_engine_update_stats");
742  RNA_def_function_ui_description(func, "Update and signal to redraw render status text");
743  parm = RNA_def_string(func, "stats", NULL, 0, "Stats", "");
745  parm = RNA_def_string(func, "info", NULL, 0, "Info", "");
747 
748  func = RNA_def_function(srna, "frame_set", "rna_RenderEngine_engine_frame_set");
749  RNA_def_function_ui_description(func, "Evaluate scene at a different frame (for motion blur)");
750  parm = RNA_def_int(func, "frame", 0, INT_MIN, INT_MAX, "Frame", "", INT_MIN, INT_MAX);
752  parm = RNA_def_float(func, "subframe", 0.0f, 0.0f, 1.0f, "Subframe", "", 0.0f, 1.0f);
754 
755  func = RNA_def_function(srna, "update_progress", "RE_engine_update_progress");
756  RNA_def_function_ui_description(func, "Update progress percentage of render");
757  parm = RNA_def_float(
758  func, "progress", 0, 0.0f, 1.0f, "", "Percentage of render that's done", 0.0f, 1.0f);
760 
761  func = RNA_def_function(srna, "update_memory_stats", "RE_engine_update_memory_stats");
762  RNA_def_function_ui_description(func, "Update memory usage statistics");
763  RNA_def_float(func,
764  "memory_used",
765  0,
766  0.0f,
767  FLT_MAX,
768  "",
769  "Current memory usage in megabytes",
770  0.0f,
771  FLT_MAX);
773  func, "memory_peak", 0, 0.0f, FLT_MAX, "", "Peak memory usage in megabytes", 0.0f, FLT_MAX);
774 
775  func = RNA_def_function(srna, "report", "RE_engine_report");
776  RNA_def_function_ui_description(func, "Report info, warning or error messages");
777  parm = RNA_def_enum_flag(func, "type", rna_enum_wm_report_items, 0, "Type", "");
779  parm = RNA_def_string(func, "message", NULL, 0, "Report Message", "");
781 
782  func = RNA_def_function(srna, "error_set", "RE_engine_set_error_message");
784  "Set error message displaying after the render is finished");
785  parm = RNA_def_string(func, "message", NULL, 0, "Report Message", "");
787 
788  func = RNA_def_function(srna, "bind_display_space_shader", "engine_bind_display_space_shader");
790  "Bind GLSL fragment shader that converts linear colors to "
791  "display space colors using scene color management settings");
792  parm = RNA_def_pointer(func, "scene", "Scene", "", "");
794 
795  func = RNA_def_function(
796  srna, "unbind_display_space_shader", "engine_unbind_display_space_shader");
798  func, "Unbind GLSL display space shader, must always be called after binding the shader");
799 
800  func = RNA_def_function(
801  srna, "support_display_space_shader", "engine_support_display_space_shader");
803  "Test if GLSL display space shader is supported for the "
804  "combination of graphics card and scene settings");
805  parm = RNA_def_pointer(func, "scene", "Scene", "", "");
807  parm = RNA_def_boolean(func, "supported", 0, "Supported", "");
808  RNA_def_function_return(func, parm);
809 
810  func = RNA_def_function(srna, "get_preview_pixel_size", "engine_get_preview_pixel_size");
812  "Get the pixel size that should be used for preview rendering");
813  parm = RNA_def_pointer(func, "scene", "Scene", "", "");
815  parm = RNA_def_int(func, "pixel_size", 0, 1, 8, "Pixel Size", "", 1, 8);
816  RNA_def_function_return(func, parm);
817 
818  func = RNA_def_function(srna, "free_blender_memory", "RE_engine_free_blender_memory");
819  RNA_def_function_ui_description(func, "Free Blender side memory of render engine");
820 
821  func = RNA_def_function(srna, "tile_highlight_set", "RE_engine_tile_highlight_set");
822  RNA_def_function_ui_description(func, "Set highlighted state of the given tile");
823  parm = RNA_def_int(func, "x", 0, 0, INT_MAX, "X", "", 0, INT_MAX);
825  parm = RNA_def_int(func, "y", 0, 0, INT_MAX, "Y", "", 0, INT_MAX);
827  parm = RNA_def_int(func, "width", 0, 0, INT_MAX, "Width", "", 0, INT_MAX);
829  parm = RNA_def_int(func, "height", 0, 0, INT_MAX, "Height", "", 0, INT_MAX);
831  parm = RNA_def_boolean(func, "highlight", 0, "Highlight", "");
833 
834  func = RNA_def_function(srna, "tile_highlight_clear_all", "RE_engine_tile_highlight_clear_all");
835  RNA_def_function_ui_description(func, "Clear highlight from all tiles");
836 
838 
839  prop = RNA_def_property(srna, "is_animation", PROP_BOOLEAN, PROP_NONE);
841 
842  prop = RNA_def_property(srna, "is_preview", PROP_BOOLEAN, PROP_NONE);
844 
845  prop = RNA_def_property(srna, "camera_override", PROP_POINTER, PROP_NONE);
846  RNA_def_property_pointer_funcs(prop, "rna_RenderEngine_camera_override_get", NULL, NULL, NULL);
847  RNA_def_property_struct_type(prop, "Object");
848 
849  prop = RNA_def_property(srna, "layer_override", PROP_BOOLEAN, PROP_LAYER_MEMBER);
850  RNA_def_property_boolean_sdna(prop, NULL, "layer_override", 1);
851  RNA_def_property_array(prop, 20);
852 
853  prop = RNA_def_property(srna, "resolution_x", PROP_INT, PROP_PIXEL);
854  RNA_def_property_int_sdna(prop, NULL, "resolution_x");
856 
857  prop = RNA_def_property(srna, "resolution_y", PROP_INT, PROP_PIXEL);
858  RNA_def_property_int_sdna(prop, NULL, "resolution_y");
860 
861  prop = RNA_def_property(srna, "temporary_directory", PROP_STRING, PROP_NONE);
862  RNA_def_function_ui_description(func, "The temp directory used by Blender");
864  prop, "rna_RenderEngine_tempdir_get", "rna_RenderEngine_tempdir_length", NULL);
866 
867  /* Render Data */
868  prop = RNA_def_property(srna, "render", PROP_POINTER, PROP_NONE);
869  RNA_def_property_struct_type(prop, "RenderSettings");
870  RNA_def_property_pointer_funcs(prop, "rna_RenderEngine_render_get", NULL, NULL, NULL);
871  RNA_def_property_ui_text(prop, "Render Data", "");
872 
873  prop = RNA_def_property(srna, "use_highlight_tiles", PROP_BOOLEAN, PROP_NONE);
875 
876  func = RNA_def_function(srna, "register_pass", "RE_engine_register_pass");
878  func, "Register a render pass that will be part of the render with the current settings");
879  parm = RNA_def_pointer(func, "scene", "Scene", "", "");
881  parm = RNA_def_pointer(func, "view_layer", "ViewLayer", "", "");
883  parm = RNA_def_string(func, "name", NULL, MAX_NAME, "Name", "");
885  parm = RNA_def_int(func, "channels", 1, 1, 8, "Channels", "", 1, 4);
887  parm = RNA_def_string(func, "chanid", NULL, 8, "Channel IDs", "");
889  parm = RNA_def_enum(func, "type", render_pass_type_items, SOCK_FLOAT, "Type", "");
890  RNA_def_property_enum_native_type(parm, "eNodeSocketDatatype");
892 
893  /* registration */
894 
895  prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
896  RNA_def_property_string_sdna(prop, NULL, "type->idname");
898 
899  prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
900  RNA_def_property_string_sdna(prop, NULL, "type->name");
902 
903  prop = RNA_def_property(srna, "bl_use_preview", PROP_BOOLEAN, PROP_NONE);
904  RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_PREVIEW);
907  prop,
908  "Use Preview Render",
909  "Render engine supports being used for rendering previews of materials, lights and worlds");
910 
911  prop = RNA_def_property(srna, "bl_use_postprocess", PROP_BOOLEAN, PROP_NONE);
914  RNA_def_property_ui_text(prop, "Use Post Processing", "Apply compositing on render results");
915 
916  prop = RNA_def_property(srna, "bl_use_eevee_viewport", PROP_BOOLEAN, PROP_NONE);
920  prop, "Use Eevee Viewport", "Uses Eevee for viewport shading in LookDev shading mode");
921 
922  prop = RNA_def_property(srna, "bl_use_custom_freestyle", PROP_BOOLEAN, PROP_NONE);
926  prop,
927  "Use Custom Freestyle",
928  "Handles freestyle rendering on its own, instead of delegating it to EEVEE");
929 
930  prop = RNA_def_property(srna, "bl_use_image_save", PROP_BOOLEAN, PROP_NONE);
935  prop,
936  "Use Image Save",
937  "Save images/movie to disk while rendering an animation. "
938  "Disabling image saving is only supported when bl_use_postprocess is also disabled");
939 
940  prop = RNA_def_property(srna, "bl_use_gpu_context", PROP_BOOLEAN, PROP_NONE);
944  prop,
945  "Use GPU Context",
946  "Enable OpenGL context for the render method, for engines that render using OpenGL");
947 
948  prop = RNA_def_property(srna, "bl_use_shading_nodes_custom", PROP_BOOLEAN, PROP_NONE);
953  "Use Custom Shading Nodes",
954  "Don't expose Cycles and Eevee shading nodes in the node editor user "
955  "interface, so own nodes can be used instead");
956 
957  prop = RNA_def_property(srna, "bl_use_spherical_stereo", PROP_BOOLEAN, PROP_NONE);
960  RNA_def_property_ui_text(prop, "Use Spherical Stereo", "Support spherical stereo camera models");
961 
962  prop = RNA_def_property(srna, "bl_use_stereo_viewport", PROP_BOOLEAN, PROP_NONE);
965  RNA_def_property_ui_text(prop, "Use Stereo Viewport", "Support rendering stereo 3D viewport");
966 
967  prop = RNA_def_property(srna, "bl_use_alembic_procedural", PROP_BOOLEAN, PROP_NONE);
971  prop, "Use Alembic Procedural", "Support loading Alembic data at render time");
972 
974 }
975 
977 {
978  StructRNA *srna;
979  PropertyRNA *prop;
980 
981  FunctionRNA *func;
982  PropertyRNA *parm;
983 
984  srna = RNA_def_struct(brna, "RenderResult", NULL);
986  srna, "Render Result", "Result of rendering, including all layers and passes");
987 
988  func = RNA_def_function(srna, "load_from_file", "RE_result_load_from_file");
990  "Copies the pixels of this render result from an image file");
993  func,
994  "filename",
995  NULL,
996  FILE_MAX,
997  "File Name",
998  "Filename to load into this render tile, must be no smaller than "
999  "the render result");
1001 
1002  func = RNA_def_function(srna, "stamp_data_add_field", "rna_RenderResult_stamp_data_add_field");
1003  RNA_def_function_ui_description(func, "Add engine-specific stamp data to the result");
1004  parm = RNA_def_string(func, "field", NULL, 1024, "Field", "Name of the stamp field to add");
1006  parm = RNA_def_string(func, "value", NULL, 0, "Value", "Value of the stamp data");
1008 
1010 
1011  prop = RNA_def_property(srna, "resolution_x", PROP_INT, PROP_PIXEL);
1012  RNA_def_property_int_sdna(prop, NULL, "rectx");
1014 
1015  prop = RNA_def_property(srna, "resolution_y", PROP_INT, PROP_PIXEL);
1016  RNA_def_property_int_sdna(prop, NULL, "recty");
1018 
1019  prop = RNA_def_property(srna, "layers", PROP_COLLECTION, PROP_NONE);
1020  RNA_def_property_struct_type(prop, "RenderLayer");
1022  "rna_RenderResult_layers_begin",
1023  "rna_iterator_listbase_next",
1024  "rna_iterator_listbase_end",
1025  "rna_iterator_listbase_get",
1026  NULL,
1027  NULL,
1028  NULL,
1029  NULL);
1030 
1031  prop = RNA_def_property(srna, "views", PROP_COLLECTION, PROP_NONE);
1032  RNA_def_property_struct_type(prop, "RenderView");
1034  "rna_RenderResult_views_begin",
1035  "rna_iterator_listbase_next",
1036  "rna_iterator_listbase_end",
1037  "rna_iterator_listbase_get",
1038  NULL,
1039  NULL,
1040  NULL,
1041  NULL);
1042 
1044 }
1045 
1047 {
1048  StructRNA *srna;
1049  PropertyRNA *prop;
1050 
1051  srna = RNA_def_struct(brna, "RenderView", NULL);
1052  RNA_def_struct_ui_text(srna, "Render View", "");
1053 
1055 
1056  prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
1057  RNA_def_property_string_sdna(prop, NULL, "name");
1059  RNA_def_struct_name_property(srna, prop);
1060 
1062 }
1063 
1065 {
1066  StructRNA *srna;
1067 
1068  FunctionRNA *func;
1069  PropertyRNA *parm;
1070 
1071  RNA_def_property_srna(cprop, "RenderPasses");
1072  srna = RNA_def_struct(brna, "RenderPasses", NULL);
1073  RNA_def_struct_sdna(srna, "RenderLayer");
1074  RNA_def_struct_ui_text(srna, "Render Passes", "Collection of render passes");
1075 
1076  func = RNA_def_function(srna, "find_by_type", "rna_RenderPass_find_by_type");
1077  RNA_def_function_ui_description(func, "Get the render pass for a given type and view");
1078  parm = RNA_def_enum(
1079  func, "pass_type", rna_enum_render_pass_type_items, SCE_PASS_COMBINED, "Pass", "");
1081  parm = RNA_def_string(
1082  func, "view", NULL, 0, "View", "Render view to get pass from"); /* NULL ok here */
1084  parm = RNA_def_pointer(func, "render_pass", "RenderPass", "", "The matching render pass");
1085  RNA_def_function_return(func, parm);
1086 
1087  func = RNA_def_function(srna, "find_by_name", "rna_RenderPass_find_by_name");
1088  RNA_def_function_ui_description(func, "Get the render pass for a given name and view");
1089  parm = RNA_def_string(func, "name", RE_PASSNAME_COMBINED, 0, "Pass", "");
1091  parm = RNA_def_string(
1092  func, "view", NULL, 0, "View", "Render view to get pass from"); /* NULL ok here */
1094  parm = RNA_def_pointer(func, "render_pass", "RenderPass", "", "The matching render pass");
1095  RNA_def_function_return(func, parm);
1096 }
1097 
1099 {
1100  StructRNA *srna;
1101  PropertyRNA *prop;
1102 
1103  FunctionRNA *func;
1104  PropertyRNA *parm;
1105 
1106  srna = RNA_def_struct(brna, "RenderLayer", NULL);
1107  RNA_def_struct_ui_text(srna, "Render Layer", "");
1108 
1109  func = RNA_def_function(srna, "load_from_file", "RE_layer_load_from_file");
1111  "Copies the pixels of this renderlayer from an image file");
1113  parm = RNA_def_string(
1114  func,
1115  "filename",
1116  NULL,
1117  0,
1118  "Filename",
1119  "Filename to load into this render tile, must be no smaller than the renderlayer");
1121  RNA_def_int(func,
1122  "x",
1123  0,
1124  0,
1125  INT_MAX,
1126  "Offset X",
1127  "Offset the position to copy from if the image is larger than the render layer",
1128  0,
1129  INT_MAX);
1130  RNA_def_int(func,
1131  "y",
1132  0,
1133  0,
1134  INT_MAX,
1135  "Offset Y",
1136  "Offset the position to copy from if the image is larger than the render layer",
1137  0,
1138  INT_MAX);
1139 
1141 
1142  rna_def_view_layer_common(brna, srna, false);
1143 
1144  prop = RNA_def_property(srna, "passes", PROP_COLLECTION, PROP_NONE);
1145  RNA_def_property_struct_type(prop, "RenderPass");
1147  "rna_RenderLayer_passes_begin",
1148  "rna_iterator_listbase_next",
1149  "rna_iterator_listbase_end",
1150  "rna_iterator_listbase_get",
1151  NULL,
1152  NULL,
1153  NULL,
1154  NULL);
1155  rna_def_render_passes(brna, prop);
1156 
1158 }
1159 
1161 {
1162  StructRNA *srna;
1163  PropertyRNA *prop;
1164 
1165  srna = RNA_def_struct(brna, "RenderPass", NULL);
1166  RNA_def_struct_ui_text(srna, "Render Pass", "");
1167 
1169 
1170  prop = RNA_def_property(srna, "fullname", PROP_STRING, PROP_NONE);
1171  RNA_def_property_string_sdna(prop, NULL, "fullname");
1173 
1174  prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
1175  RNA_def_property_string_sdna(prop, NULL, "name");
1177  RNA_def_struct_name_property(srna, prop);
1178 
1179  prop = RNA_def_property(srna, "channel_id", PROP_STRING, PROP_NONE);
1180  RNA_def_property_string_sdna(prop, NULL, "chan_id");
1182 
1183  prop = RNA_def_property(srna, "channels", PROP_INT, PROP_NONE);
1184  RNA_def_property_int_sdna(prop, NULL, "channels");
1186 
1187  prop = RNA_def_property(srna, "rect", PROP_FLOAT, PROP_NONE);
1190  RNA_def_property_dynamic_array_funcs(prop, "rna_RenderPass_rect_get_length");
1191  RNA_def_property_float_funcs(prop, "rna_RenderPass_rect_get", "rna_RenderPass_rect_set", NULL);
1192 
1193  prop = RNA_def_property(srna, "view_id", PROP_INT, PROP_NONE);
1194  RNA_def_property_int_sdna(prop, NULL, "view_id");
1196 
1198 }
1199 
1201 {
1202  rna_def_render_engine(brna);
1203  rna_def_render_result(brna);
1204  rna_def_render_view(brna);
1205  rna_def_render_layer(brna);
1206  rna_def_render_pass(brna);
1207 }
1208 
1209 #endif /* RNA_RUNTIME */
void BKE_render_result_stamp_data(struct RenderResult *rr, const char *key, const char *value)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
int BKE_render_preview_pixel_size(const struct RenderData *r)
void BLI_kdtree_nd_() free(KDTree *tree)
Definition: kdtree_impl.h:102
void BLI_freelinkN(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Definition: listbase.c:239
#define FILE_MAX
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
Definition: string.c:64
#define UNUSED(x)
#define STREQ(a, b)
#define BPy_BEGIN_ALLOW_THREADS
Definition: BPY_extern.h:54
#define BPy_END_ALLOW_THREADS
Definition: BPY_extern.h:58
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
struct Object * DEG_get_evaluated_object(const struct Depsgraph *depsgraph, struct Object *object)
#define MAX_NAME
Definition: DNA_defs.h:48
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_RGBA
Object is a sort of wrapper for general info.
#define RE_PASSNAME_COMBINED
@ SCE_PASS_NORMAL
@ SCE_PASS_GLOSSY_DIRECT
@ SCE_PASS_AO
@ SCE_PASS_DIFFUSE_COLOR
@ SCE_PASS_POSITION
@ SCE_PASS_UV
@ SCE_PASS_SUBSURFACE_INDIRECT
@ SCE_PASS_TRANSM_DIRECT
@ SCE_PASS_SUBSURFACE_COLOR
@ SCE_PASS_GLOSSY_COLOR
@ SCE_PASS_DIFFUSE_DIRECT
@ SCE_PASS_GLOSSY_INDIRECT
@ SCE_PASS_INDEXMA
@ SCE_PASS_INDEXOB
@ SCE_PASS_TRANSM_INDIRECT
@ SCE_PASS_COMBINED
@ SCE_PASS_Z
@ SCE_PASS_VECTOR
@ SCE_PASS_ROUGHNESS
@ SCE_PASS_DIFFUSE_INDIRECT
@ SCE_PASS_SUBSURFACE_DIRECT
@ SCE_PASS_SHADOW
@ SCE_PASS_TRANSM_COLOR
@ SCE_PASS_MIST
@ SCE_PASS_EMIT
@ SCE_PASS_ENVIRONMENT
void ED_render_engine_changed(struct Main *bmain, bool update_scene_data)
static AppView * view
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble GLdouble r _GL_VOID_RET _GL_VOID GLfloat GLfloat r _GL_VOID_RET _GL_VOID GLint GLint r _GL_VOID_RET _GL_VOID GLshort GLshort r _GL_VOID_RET _GL_VOID GLdouble GLdouble r
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
void GPU_shader_unbind(void)
Definition: gpu_shader.cc:513
int GPU_shader_get_uniform(GPUShader *shader, const char *name)
Definition: gpu_shader.cc:559
struct GPUShader GPUShader
Definition: GPU_shader.h:20
void GPU_shader_uniform_int(GPUShader *shader, int location, int value)
Definition: gpu_shader.cc:642
GPUShader * GPU_shader_get_builtin_shader(eGPUBuiltinShader shader)
void GPU_shader_bind(GPUShader *shader)
Definition: gpu_shader.cc:491
@ GPU_SHADER_2D_IMAGE
Definition: GPU_shader.h:216
bool IMB_colormanagement_support_glsl_draw(const struct ColorManagedViewSettings *view_settings)
Read Guarded memory(de)allocation.
#define RE_USE_CUSTOM_FREESTYLE
Definition: RE_engine.h:53
#define RE_USE_ALEMBIC_PROCEDURAL
Definition: RE_engine.h:55
#define RE_USE_NO_IMAGE_SAVE
Definition: RE_engine.h:54
#define RE_USE_EEVEE_VIEWPORT
Definition: RE_engine.h:47
#define RE_USE_STEREO_VIEWPORT
Definition: RE_engine.h:51
#define RE_ENGINE_DO_UPDATE
Definition: RE_engine.h:61
#define RE_ENGINE_ANIMATION
Definition: RE_engine.h:58
#define RE_USE_GPU_CONTEXT
Definition: RE_engine.h:52
#define RE_ENGINE_PREVIEW
Definition: RE_engine.h:59
#define RE_ENGINE_HIGHLIGHT_TILES
Definition: RE_engine.h:63
#define RE_USE_PREVIEW
Definition: RE_engine.h:45
#define RE_USE_SPHERICAL_STEREO
Definition: RE_engine.h:50
#define RE_USE_SHADING_NODES_CUSTOM
Definition: RE_engine.h:49
#define RE_USE_POSTPROCESS
Definition: RE_engine.h:46
#define RE_ENGINE_DO_DRAW
Definition: RE_engine.h:60
#define RNA_MAX_ARRAY_DIMENSION
Definition: RNA_define.h:28
@ PARM_RNAPTR
Definition: RNA_types.h:354
@ PARM_REQUIRED
Definition: RNA_types.h:352
void(* StructFreeFunc)(void *data)
Definition: RNA_types.h:737
int(* StructValidateFunc)(struct PointerRNA *ptr, void *data, int *have_function)
Definition: RNA_types.h:732
@ FUNC_USE_REPORTS
Definition: RNA_types.h:663
@ FUNC_REGISTER_OPTIONAL
Definition: RNA_types.h:672
@ FUNC_ALLOW_WRITE
Definition: RNA_types.h:678
int(* StructCallbackFunc)(struct bContext *C, struct PointerRNA *ptr, struct FunctionRNA *func, ParameterList *list)
Definition: RNA_types.h:733
@ PROP_FLOAT
Definition: RNA_types.h:61
@ PROP_BOOLEAN
Definition: RNA_types.h:59
@ PROP_INT
Definition: RNA_types.h:60
@ PROP_STRING
Definition: RNA_types.h:62
@ PROP_POINTER
Definition: RNA_types.h:64
@ PROP_COLLECTION
Definition: RNA_types.h:65
@ PROP_DYNAMIC
Definition: RNA_types.h:290
@ PROP_EDITABLE
Definition: RNA_types.h:189
@ PROP_REGISTER_OPTIONAL
Definition: RNA_types.h:274
@ PROP_REGISTER
Definition: RNA_types.h:273
@ PROP_LAYER_MEMBER
Definition: RNA_types.h:171
@ PROP_PIXEL
Definition: RNA_types.h:141
@ PROP_NONE
Definition: RNA_types.h:126
return(oflags[bm->toolflag_index].f &oflag) !=0
OperationNode * node
Scene scene
const Depsgraph * depsgraph
bNodeTree * ntree
void RE_engine_frame_set(RenderEngine *engine, int frame, float subframe)
Definition: engine.c:785
void RE_engines_register(RenderEngineType *render_type)
Definition: engine.c:90
RenderData * RE_engine_get_render_data(Render *re)
Definition: engine.c:690
ListBase R_engines
Definition: engine.c:57
struct Object * RE_GetCamera(Render *re)
Definition: initrender.c:150
void * BKE_tempdir_session
void *(* MEM_mallocN)(size_t len, const char *str)
Definition: mallocn.c:33
T length(const vec_base< T, Size > &a)
RenderPass * RE_pass_find_by_type(RenderLayer *rl, int passtype, const char *viewname)
Definition: pipeline.c:2608
RenderPass * RE_pass_find_by_name(RenderLayer *rl, const char *name, const char *viewname)
Definition: pipeline.c:2591
void RE_FreeAllPersistentData(void)
Definition: pipeline.c:639
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
Definition: rna_access.c:136
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
Definition: rna_access.c:902
ParameterList * RNA_parameter_list_create(ParameterList *parms, PointerRNA *UNUSED(ptr), FunctionRNA *func)
Definition: rna_access.c:5826
void * RNA_struct_blender_type_get(StructRNA *srna)
Definition: rna_access.c:897
void RNA_parameter_list_free(ParameterList *parms)
Definition: rna_access.c:5922
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, ListBase *lb, IteratorSkipFunc skip)
Definition: rna_access.c:4729
void RNA_parameter_set_lookup(ParameterList *parms, const char *identifier, const void *value)
Definition: rna_access.c:6088
PointerRNA rna_pointer_inherit_refine(PointerRNA *ptr, StructRNA *type, void *data)
Definition: rna_access.c:186
PropertyRNA * RNA_def_string_file_name(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3759
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
Definition: rna_define.c:3836
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
Definition: rna_define.c:1148
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3493
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3806
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
Definition: rna_define.c:4170
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
Definition: rna_define.c:2236
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
Definition: rna_define.c:3285
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
Definition: rna_define.c:4312
PropertyRNA * RNA_def_float_matrix(StructOrFunctionRNA *cont_, const char *identifier, int rows, int columns, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
Definition: rna_define.c:3954
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
Definition: rna_define.c:3126
void RNA_define_verify_sdna(bool verify)
Definition: rna_define.c:737
void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type)
Definition: rna_define.c:1855
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
Definition: rna_define.c:1645
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2695
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
Definition: rna_define.c:4273
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
Definition: rna_define.c:3474
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
Definition: rna_define.c:3420
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
Definition: rna_define.c:1237
void RNA_def_function_output(FunctionRNA *UNUSED(func), PropertyRNA *ret)
Definition: rna_define.c:4337
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
Definition: rna_define.c:1937
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
Definition: rna_define.c:1172
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
Definition: rna_define.c:2926
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
Definition: rna_define.c:1598
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
Definition: rna_define.c:900
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
Definition: rna_define.c:1048
void RNA_def_property_array(PropertyRNA *prop, int length)
Definition: rna_define.c:1539
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
Definition: rna_define.c:1772
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
Definition: rna_define.c:4347
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
Definition: rna_define.c:1257
void RNA_def_struct_name_property(struct StructRNA *srna, struct PropertyRNA *prop)
Definition: rna_define.c:1103
void RNA_def_function_flag(FunctionRNA *func, int flag)
Definition: rna_define.c:4342
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1495
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
Definition: rna_define.c:762
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
Definition: rna_define.c:3385
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
Definition: rna_define.c:1028
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
Definition: rna_define.c:777
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3687
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
Definition: rna_define.c:1490
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
Definition: rna_define.c:3597
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
Definition: rna_define.c:3783
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
Definition: rna_define.c:2343
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
Definition: rna_define.c:2327
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
Definition: rna_define.c:1518
void rna_RenderPass_rect_set(PointerRNA *ptr, const float *values)
BlenderRNA BLENDER_RNA
void rna_def_view_layer_common(struct BlenderRNA *brna, struct StructRNA *srna, bool scene)
Definition: rna_scene.c:4323
const EnumPropertyItem rna_enum_bake_pass_type_items[]
Definition: rna_render.c:65
static void rna_def_render_pass(BlenderRNA *brna)
Definition: rna_render.c:1160
static void rna_def_render_view(BlenderRNA *brna)
Definition: rna_render.c:1046
static void rna_def_render_engine(BlenderRNA *brna)
Definition: rna_render.c:521
static void rna_def_render_passes(BlenderRNA *brna, PropertyRNA *cprop)
Definition: rna_render.c:1064
void RNA_def_render(BlenderRNA *brna)
Definition: rna_render.c:1200
const EnumPropertyItem rna_enum_render_pass_type_items[]
Definition: rna_render.c:36
static void rna_def_render_layer(BlenderRNA *brna)
Definition: rna_render.c:1098
static void rna_def_render_result(BlenderRNA *brna)
Definition: rna_render.c:976
const EnumPropertyItem rna_enum_wm_report_items[]
Definition: rna_wm.c:495
StructRNA * srna
Definition: RNA_types.h:766
StructCallbackFunc call
Definition: RNA_types.h:767
void * data
Definition: RNA_types.h:765
StructFreeFunc free
Definition: RNA_types.h:768
Definition: DNA_ID.h:368
void * first
Definition: DNA_listBase.h:31
Definition: BKE_main.h:121
void * data
Definition: RNA_types.h:38
void(* render)(struct RenderEngine *engine, struct Depsgraph *depsgraph)
Definition: RE_engine.h:78
void(* view_draw)(struct RenderEngine *engine, const struct bContext *context, struct Depsgraph *depsgraph)
Definition: RE_engine.h:102
void(* update)(struct RenderEngine *engine, struct Main *bmain, struct Depsgraph *depsgraph)
Definition: RE_engine.h:76
ExtensionRNA rna_ext
Definition: RE_engine.h:116
void(* view_update)(struct RenderEngine *engine, const struct bContext *context, struct Depsgraph *depsgraph)
Definition: RE_engine.h:99
struct RenderEngineType * next
Definition: RE_engine.h:69
void(* draw)(struct RenderEngine *engine, const struct bContext *context, struct Depsgraph *depsgraph)
Definition: RE_engine.h:87
char idname[64]
Definition: RE_engine.h:72
void(* render_frame_finish)(struct RenderEngine *engine)
Definition: RE_engine.h:85
void(* update_script_node)(struct RenderEngine *engine, struct bNodeTree *ntree, struct bNode *node)
Definition: RE_engine.h:106
void(* update_render_passes)(struct RenderEngine *engine, struct Scene *scene, struct ViewLayer *view_layer)
Definition: RE_engine.h:109
void(* bake)(struct RenderEngine *engine, struct Depsgraph *depsgraph, struct Object *object, int pass_type, int pass_filter, int width, int height)
Definition: RE_engine.h:91
struct Depsgraph * depsgraph
Definition: RE_engine.h:152
RenderEngineType * type
Definition: RE_engine.h:128
struct Render * re
Definition: RE_engine.h:135
void * py_instance
Definition: RE_engine.h:129
struct Object * camera_override
Definition: RE_engine.h:132
ListBase passes
Definition: RE_pipeline.h:95
int channels
Definition: RE_pipeline.h:64
float * rect
Definition: RE_pipeline.h:67
ListBase views
Definition: RE_pipeline.h:125
ListBase layers
Definition: RE_pipeline.h:122
ColorManagedViewSettings view_settings
struct RenderData r
PointerRNA * ptr
Definition: wm_files.c:3480