|
Blender V5.0
|
#include <Python.h>#include "blender/CCL_api.h"#include "blender/device.h"#include "blender/session.h"#include "blender/sync.h"#include "blender/util.h"#include "session/denoising.h"#include "session/merge.h"#include "util/debug.h"#include "util/guiding.h"#include "util/log.h"#include "util/openimagedenoise.h"#include "util/path.h"#include "util/string.h"#include "util/task.h"#include "util/types.h"#include "GPU_state.hh"#include "scene/osl.h"Go to the source code of this file.
Namespaces | |
| namespace | CCL_NAMESPACE_BEGIN |
Functions | |
| void * | CCL_NAMESPACE_BEGIN::pylong_as_voidptr_typesafe (PyObject *object) |
| PyObject * | CCL_NAMESPACE_BEGIN::pyunicode_from_string (const char *str) |
| void | CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene (BL::Scene b_scene) |
| void | CCL_NAMESPACE_BEGIN::debug_flags_reset () |
| void | python_thread_state_save (void **python_thread_state) |
| void | python_thread_state_restore (void **python_thread_state) |
| static const char * | PyC_UnicodeAsBytes (PyObject *py_str, PyObject **coerce) |
| static PyObject * | init_func (PyObject *, PyObject *args) |
| static PyObject * | exit_func (PyObject *, PyObject *) |
| static PyObject * | create_func (PyObject *, PyObject *args) |
| static PyObject * | free_func (PyObject *, PyObject *value) |
| static PyObject * | render_func (PyObject *, PyObject *args) |
| static PyObject * | render_frame_finish_func (PyObject *, PyObject *args) |
| static PyObject * | draw_func (PyObject *, PyObject *args) |
| static PyObject * | bake_func (PyObject *, PyObject *args) |
| static PyObject * | view_draw_func (PyObject *, PyObject *args) |
| static PyObject * | reset_func (PyObject *, PyObject *args) |
| static PyObject * | sync_func (PyObject *, PyObject *args) |
| static PyObject * | available_devices_func (PyObject *, PyObject *args) |
| static PyObject * | system_info_func (PyObject *, PyObject *) |
| static bool | image_parse_filepaths (PyObject *pyfilepaths, vector< string > &filepaths) |
| static PyObject * | denoise_func (PyObject *, PyObject *args, PyObject *keywords) |
| static PyObject * | merge_func (PyObject *, PyObject *args, PyObject *keywords) |
| static PyObject * | debug_flags_update_func (PyObject *, PyObject *args) |
| static PyObject * | debug_flags_reset_func (PyObject *, PyObject *) |
| static PyObject * | enable_print_stats_func (PyObject *, PyObject *) |
| static PyObject * | get_device_types_func (PyObject *, PyObject *) |
| static PyObject * | set_device_override_func (PyObject *, PyObject *arg) |
| CCL_NAMESPACE_END void * | CCL_python_module_init () |
Variables | |
| bool | CCL_NAMESPACE_BEGIN::debug_flags_set = false |
| static PyMethodDef | methods [] |
| static struct PyModuleDef | module |
|
static |
Definition at line 420 of file python.cpp.
References Device::available_devices(), DENOISER_OPENIMAGEDENOISE, DENOISER_OPTIX, DeviceInfo::denoisers, DeviceInfo::description, DEVICE_MASK, DEVICE_MASK_ALL, DEVICE_MASK_CPU, DEVICE_NONE, DeviceInfo::has_execution_optimization, DeviceInfo::has_peer_memory, i, DeviceInfo::id, mask(), ret, Device::string_from_type(), DeviceInfo::type, Device::type_from_string(), and DeviceInfo::use_hardware_raytracing.
|
static |
Definition at line 303 of file python.cpp.
References BlenderSession::bake(), BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), RNA_id_pointer_create(), and RNA_pointer_create_discrete().
| CCL_NAMESPACE_END void * CCL_python_module_init | ( | void | ) |
Definition at line 810 of file python.cpp.
References mod.
|
static |
Definition at line 157 of file python.cpp.
References data, RNA_main_pointer_create(), and RNA_pointer_create_discrete().
Referenced by keylist_add_or_update_column(), blender::tests::TEST(), blender::tests::TEST(), ui_popup_block_create(), ui_popup_block_refresh(), and ui_searchbox_inside().
|
static |
Definition at line 656 of file python.cpp.
|
static |
Definition at line 639 of file python.cpp.
References RNA_id_pointer_create().
|
static |
Definition at line 514 of file python.cpp.
References blender_device_info(), DenoiserPipeline::error, BlenderSync::get_denoise_params(), image_parse_filepaths(), DenoiserPipeline::input, input, keyword_list, DenoiserPipeline::output, output, params, RNA_id_pointer_create(), RNA_pointer_create_discrete(), and DenoiserPipeline::run().
|
static |
Definition at line 278 of file python.cpp.
References BlenderSession::draw(), and RNA_pointer_create_discrete().
|
static |
Definition at line 665 of file python.cpp.
References BlenderSession::print_render_stats.
|
static |
Definition at line 144 of file python.cpp.
References device_metal_exit(), ColorSpaceManager::free_memory(), Device::free_memory(), OSLManager::free_memory(), and TaskScheduler::free_memory().
|
static |
Definition at line 226 of file python.cpp.
Referenced by BLI_linklist_lockfree_clear(), BLI_linklist_lockfree_free(), and BLI_task_graph_node_create().
|
static |
Definition at line 671 of file python.cpp.
References Device::available_types(), DEVICE_CUDA, DEVICE_HIP, DEVICE_HIPRT, DEVICE_METAL, DEVICE_ONEAPI, and DEVICE_OPTIX.
|
static |
Definition at line 485 of file python.cpp.
References i, and Py_DECREF().
Referenced by denoise_func(), and merge_func().
|
static |
Definition at line 122 of file python.cpp.
References BlenderSession::headless, path_init(), and PyC_UnicodeAsBytes().
|
static |
Definition at line 601 of file python.cpp.
References ImageMerger::error, image_parse_filepaths(), ImageMerger::input, input, keyword_list, ImageMerger::output, output, and ImageMerger::run().
|
static |
| void python_thread_state_restore | ( | void ** | python_thread_state | ) |
Definition at line 91 of file python.cpp.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
| void python_thread_state_save | ( | void ** | python_thread_state | ) |
Definition at line 86 of file python.cpp.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
|
static |
Definition at line 258 of file python.cpp.
References BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), and BlenderSession::render_frame_finish().
|
static |
Definition at line 233 of file python.cpp.
References BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), BlenderSession::render(), and RNA_pointer_create_discrete().
|
static |
Definition at line 368 of file python.cpp.
References BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), BlenderSession::reset_session(), RNA_main_pointer_create(), and RNA_pointer_create_discrete().
|
static |
Definition at line 698 of file python.cpp.
References DEVICE_MASK_CPU, DEVICE_MASK_CUDA, DEVICE_MASK_HIP, DEVICE_MASK_METAL, DEVICE_MASK_ONEAPI, DEVICE_MASK_OPTIX, BlenderSession::device_override, length(), LOG_ERROR, Py_DECREF(), and string_endswith().
|
static |
Definition at line 396 of file python.cpp.
References BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), RNA_pointer_create_discrete(), and BlenderSession::synchronize().
|
static |
Definition at line 479 of file python.cpp.
References Device::device_capabilities().
|
static |
Definition at line 344 of file python.cpp.
References GPU_viewport_size_get_i(), and BlenderSession::view_draw().
|
static |
Definition at line 752 of file python.cpp.
|
static |
Definition at line 796 of file python.cpp.
Referenced by btGenericMemoryPool::allocate(), AUD_initPython(), BBox_Init(), BinaryPredicate0D_Init(), BinaryPredicate1D_Init(), BKE_addon_ensure(), BKE_addon_find(), BKE_addon_find(), BKE_addon_remove_safe(), BKE_freestyle_config_copy(), BKE_preferences_asset_library_get_index(), BKE_preferences_extension_repo_add(), BKE_preferences_extension_repo_find_by_module(), BKE_preferences_extension_repo_module_set(), bli_windows_system_backtrace_exception_record(), BLI_windows_system_backtrace_run_trace(), ContextFunctions_Init(), copy_module(), blender::draw::curves_bind_resources(), blender::draw::curves_bind_resources_implementation(), blender::draw::curves_pos_buffer_get(), blender::draw::curves_sub_pass_setup_implementation(), displayed_layer_count(), blender::draw::DRW_curves_texture_for_evaluated_attribute(), blender::draw::DRW_curves_update(), blender::draw::DRW_volume_module_free(), blender::draw::drw_volume_object_mesh_init(), blender::eevee::ShadowTileMapPool::end_sync(), blender::draw::CurvesEvalCache::ensure_attribute(), blender::draw::CurvesEvalCache::ensure_attributes(), blender::draw::CurvesEvalCache::ensure_attributes(), blender::draw::CurvesEvalCache::ensure_positions(), blender::draw::CurvesEvalCache::ensure_positions(), Freestyle_Init(), FrsMaterial_Init(), FrsNoise_Init(), blender::draw::DebugDraw::get(), blender::draw::hair_pos_buffer_get(), blender::draw::hair_sub_pass_setup_implementation(), Id_Init(), blender::draw::CurvesEvalCache::indirection_buf_get(), blender::draw::CurvesEvalCache::indirection_buf_get(), IntegrationType_Init(), Interface0D_Init(), Interface1D_Init(), Iterator_Init(), load_driver_functions(), load_func(), MediumType_Init(), Nature_Init(), Operators_Init(), blender::draw::pointcloud_sub_pass_setup_implementation(), preferences_extension_repo_add_exec(), blender::eevee::ShadowDirectional::ShadowDirectional(), blender::eevee::ShadowPunctual::ShadowPunctual(), SShape_Init(), StrokeAttribute_Init(), StrokeShader_Init(), UnaryFunction0D_Init(), UnaryFunction0DDouble_Init(), UnaryFunction0DEdgeNature_Init(), UnaryFunction0DFloat_Init(), UnaryFunction0DId_Init(), UnaryFunction0DMaterial_Init(), UnaryFunction0DUnsigned_Init(), UnaryFunction0DVec2f_Init(), UnaryFunction0DVec3f_Init(), UnaryFunction0DVectorViewShape_Init(), UnaryFunction0DViewShape_Init(), UnaryFunction1D_Init(), UnaryFunction1DDouble_Init(), UnaryFunction1DEdgeNature_Init(), UnaryFunction1DFloat_Init(), UnaryFunction1DUnsigned_Init(), UnaryFunction1DVec2f_Init(), UnaryFunction1DVec3f_Init(), UnaryFunction1DVectorViewShape_Init(), UnaryFunction1DVoid_Init(), UnaryPredicate0D_Init(), UnaryPredicate1D_Init(), unload_driver(), ViewMap_Init(), ViewShape_Init(), blender::draw::volume_object_grids_init(), and blender::draw::volume_world_grids_init().