|
Blender V5.0
|
#include <buffers.h>
Inherits Node.
Public Member Functions | |
| BufferParams () | |
| BufferParams (BufferParams &&other) noexcept=default | |
| BufferParams (const BufferParams &other)=default | |
| BufferParams & | operator= (BufferParams &&other)=default |
| BufferParams & | operator= (const BufferParams &other)=default |
| ~BufferParams () override=default | |
| void | update_passes () |
| void | update_passes (const unique_ptr_vector< Pass > &scene_passes) |
| int | get_pass_offset (PassType type, PassMode mode=PassMode::NOISY) const |
| const BufferPass * | find_pass (string_view name) const |
| const BufferPass * | find_pass (PassType type, PassMode mode=PassMode::NOISY) const |
| const BufferPass * | get_actual_display_pass (PassType type, PassMode mode=PassMode::NOISY) const |
| const BufferPass * | get_actual_display_pass (const BufferPass *pass) const |
| void | update_offset_stride () |
| bool | modified (const BufferParams &other) const |
| Public Member Functions inherited from Node | |
| Node (const NodeType *type, ustring name=ustring()) | |
| virtual | ~Node ()=0 |
| void | set (const SocketType &input, bool value) |
| void | set (const SocketType &input, const int value) |
| void | set (const SocketType &input, const uint value) |
| void | set (const SocketType &input, const uint64_t value) |
| void | set (const SocketType &input, const float value) |
| void | set (const SocketType &input, const float2 value) |
| void | set (const SocketType &input, const float3 value) |
| void | set (const SocketType &input, const char *value) |
| void | set (const SocketType &input, ustring value) |
| void | set (const SocketType &input, const Transform &value) |
| void | set (const SocketType &input, Node *value) |
| template<class ValueType, std::enable_if_t< std::is_enum_v< ValueType >, bool > = true> | |
| void | set (const SocketType &input, const ValueType &value) |
| void | set (const SocketType &input, array< bool > &value) |
| void | set (const SocketType &input, array< int > &value) |
| void | set (const SocketType &input, array< float > &value) |
| void | set (const SocketType &input, array< float2 > &value) |
| void | set (const SocketType &input, array< float3 > &value) |
| void | set (const SocketType &input, array< ustring > &value) |
| void | set (const SocketType &input, array< Transform > &value) |
| void | set (const SocketType &input, array< Node * > &value) |
| bool | get_bool (const SocketType &input) const |
| int | get_int (const SocketType &input) const |
| uint | get_uint (const SocketType &input) const |
| uint64_t | get_uint64 (const SocketType &input) const |
| float | get_float (const SocketType &input) const |
| float2 | get_float2 (const SocketType &input) const |
| float3 | get_float3 (const SocketType &input) const |
| ustring | get_string (const SocketType &input) const |
| Transform | get_transform (const SocketType &input) const |
| Node * | get_node (const SocketType &input) const |
| const array< bool > & | get_bool_array (const SocketType &input) const |
| const array< int > & | get_int_array (const SocketType &input) const |
| const array< float > & | get_float_array (const SocketType &input) const |
| const array< float2 > & | get_float2_array (const SocketType &input) const |
| const array< float3 > & | get_float3_array (const SocketType &input) const |
| const array< ustring > & | get_string_array (const SocketType &input) const |
| const array< Transform > & | get_transform_array (const SocketType &input) const |
| const array< Node * > & | get_node_array (const SocketType &input) const |
| bool | has_default_value (const SocketType &input) const |
| void | set_default_value (const SocketType &input) |
| bool | equals_value (const Node &other, const SocketType &socket) const |
| void | copy_value (const SocketType &socket, const Node &other, const SocketType &other_socket) |
| void | set_value (const SocketType &socket, const Node &other, const SocketType &other_socket) |
| bool | equals (const Node &other) const |
| void | hash (MD5Hash &md5) |
| size_t | get_total_size_in_bytes () const |
| bool | is_a (const NodeType *type) |
| bool | socket_is_modified (const SocketType &input) const |
| bool | is_modified () const |
| void | tag_modified () |
| void | clear_modified () |
| void | print_modified_sockets () const |
| const NodeOwner * | get_owner () const |
| void | set_owner (const NodeOwner *owner_) |
| int | reference_count () const |
| void | reference () |
| void | dereference () |
| void | clear_reference_count () |
Public Attributes | |
| NODE_DECLARE int | width = 0 |
| int | height = 0 |
| int | window_x = 0 |
| int | window_y = 0 |
| int | window_width = 0 |
| int | window_height = 0 |
| int | full_x = 0 |
| int | full_y = 0 |
| int | full_width = 0 |
| int | full_height = 0 |
| int | offset = -1 |
| int | stride = -1 |
| int | pass_stride = -1 |
| vector< BufferPass > | passes |
| ustring | layer |
| ustring | view |
| int | samples = 0 |
| float | exposure = 1.0f |
| bool | use_approximate_shadow_catcher = false |
| bool | use_transparent_background = false |
| Public Attributes inherited from Node | |
| ustring | name |
| const NodeType * | type |
| InternalNode | internal |
| LeafNode | leaf |
Protected Member Functions | |
| void | reset_pass_offset () |
| Protected Member Functions inherited from Node | |
| template<typename T> | |
| void | set_if_different (const SocketType &input, T value) |
| void | set_if_different (const SocketType &input, Node *value) |
| template<typename T> | |
| void | set_if_different (const SocketType &input, array< T > &value) |
| void | set_if_different (const SocketType &input, array< Node * > &value) |
| void | dereference_all_used_nodes () |
Protected Attributes | |
| int | pass_offset_ [kNumPassOffsets] |
| Protected Attributes inherited from Node | |
| const NodeOwner * | owner |
| int | ref_count {0} |
| SocketModifiedFlags | socket_modified |
Static Protected Attributes | |
| static constexpr int | kNumPassOffsets = PASS_NUM * 2 |
Additional Inherited Members | |
| Static Protected Member Functions inherited from Node | |
| template<typename T> | |
| static T & | get_socket_value (const Node *node, const SocketType &socket) |
| BufferParams::BufferParams | ( | ) |
Definition at line 112 of file buffers.cpp.
References Node::Node(), and reset_pass_offset().
Referenced by BufferParams(), BufferParams(), modified(), operator=(), operator=(), and ~BufferParams().
|
defaultnoexcept |
References BufferParams().
|
default |
References BufferParams().
|
overridedefault |
References BufferParams(), Node::name, NOISY, and Node::type.
| const BufferPass * BufferParams::find_pass | ( | PassType | type, |
| PassMode | mode = PassMode::NOISY ) const |
Definition at line 185 of file buffers.cpp.
References passes, and Node::type.
| const BufferPass * BufferParams::find_pass | ( | string_view | name | ) | const |
Definition at line 174 of file buffers.cpp.
References Node::name, and passes.
Referenced by get_actual_display_pass(), get_actual_display_pass(), PathTraceTile::get_pass_pixels(), and PathTraceTile::set_pass_pixels().
| const BufferPass * BufferParams::get_actual_display_pass | ( | const BufferPass * | pass | ) | const |
Definition at line 202 of file buffers.cpp.
References find_pass(), BufferPass::lightgroup, BufferPass::mode, PASS_COMBINED, PASS_SHADOW_CATCHER_MATTE, and BufferPass::type.
| const BufferPass * BufferParams::get_actual_display_pass | ( | PassType | type, |
| PassMode | mode = PassMode::NOISY ) const |
Definition at line 196 of file buffers.cpp.
References find_pass(), get_actual_display_pass(), and Node::type.
Referenced by get_actual_display_pass(), and PathTraceTile::get_pass_pixels().
| int BufferParams::get_pass_offset | ( | PassType | type, |
| PassMode | mode = PassMode::NOISY ) const |
Definition at line 164 of file buffers.cpp.
References PASS_NONE, pass_offset_, pass_type_mode_to_index(), and PASS_UNUSED.
Referenced by DenoiserGPU::DenoisePass::DenoisePass(), PassAccessor::init_kernel_film_convert(), and render_buffers_host_copy_denoised().
| bool BufferParams::modified | ( | const BufferParams & | other | ) | const |
Definition at line 224 of file buffers.cpp.
References BufferParams(), exposure, full_height, full_width, full_x, full_y, height, layer, offset, pass_stride, passes, stride, use_approximate_shadow_catcher, use_transparent_background, view, width, window_height, window_width, window_x, and window_y.
|
default |
References BufferParams().
|
default |
References BufferParams().
|
protected |
Definition at line 157 of file buffers.cpp.
References i, kNumPassOffsets, pass_offset_, and PASS_UNUSED.
Referenced by BufferParams(), and update_passes().
| void BufferParams::update_offset_stride | ( | ) |
Definition at line 218 of file buffers.cpp.
References full_x, full_y, offset, stride, and width.
Referenced by PathTrace::device_free(), foreach_sliced_buffer_params(), Session::run_update_for_next_iteration(), scale_buffer_params(), and update_passes().
| void BufferParams::update_passes | ( | ) |
Definition at line 117 of file buffers.cpp.
References pass_offset_, pass_stride, pass_to_index(), PASS_UNUSED, passes, reset_pass_offset(), and update_offset_stride().
Referenced by buffer_params_from_image_spec_atttributes(), DenoiseTask::load(), and update_passes().
| void BufferParams::update_passes | ( | const unique_ptr_vector< Pass > & | scene_passes | ) |
Definition at line 135 of file buffers.cpp.
References BufferPass::offset, pass_stride, PASS_UNUSED, passes, and update_passes().
| float BufferParams::exposure = 1.0f |
Definition at line 99 of file buffers.h.
Referenced by PathTraceTile::get_pass_pixels(), modified(), and PathTraceTile::set_pass_pixels().
| int BufferParams::full_height = 0 |
Definition at line 86 of file buffers.h.
Referenced by DenoiseTask::load(), modified(), PathTraceDisplay::reset(), Session::run_update_for_next_iteration(), scale_buffer_params(), and session_buffer_params().
| int BufferParams::full_width = 0 |
Definition at line 85 of file buffers.h.
Referenced by DenoiseTask::load(), modified(), PathTraceDisplay::reset(), Session::run_update_for_next_iteration(), scale_buffer_params(), and session_buffer_params().
| int BufferParams::full_x = 0 |
Definition at line 83 of file buffers.h.
Referenced by DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_preprocess(), DenoiseTask::load(), modified(), PathTraceDisplay::reset(), WorkTileScheduler::reset(), Session::run_update_for_next_iteration(), scale_buffer_params(), update_offset_stride(), and TileManager::write_tile().
| int BufferParams::full_y = 0 |
Definition at line 84 of file buffers.h.
Referenced by DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_preprocess(), foreach_sliced_buffer_params(), DenoiseTask::load(), modified(), PathTraceDisplay::reset(), WorkTileScheduler::reset(), Session::run_update_for_next_iteration(), scale_buffer_params(), update_offset_stride(), and TileManager::write_tile().
| int BufferParams::height = 0 |
Definition at line 71 of file buffers.h.
Referenced by BlenderSession::bake(), configure_image_spec_from_buffer(), DenoiserGPU::denoise_color_read(), DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_flip_y(), DenoiserGPU::denoise_filter_guiding_preprocess(), DenoiserGPU::denoise_filter_guiding_set_fake_albedo(), foreach_sliced_buffer_params(), DenoiseTask::load(), modified(), pad_pixels(), render_buffers_host_copy_denoised(), WorkTileScheduler::reset(), Session::run_update_for_next_iteration(), scale_buffer_params(), session_buffer_params(), PassAccessor::set_render_tile_pixels(), and TileManager::write_tile().
|
staticconstexprprotected |
Definition at line 142 of file buffers.h.
Referenced by reset_pass_offset().
| ustring BufferParams::layer |
Definition at line 96 of file buffers.h.
Referenced by BlenderSession::bake(), modified(), and BlenderSession::render().
| int BufferParams::offset = -1 |
Definition at line 89 of file buffers.h.
Referenced by DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_preprocess(), modified(), WorkTileScheduler::reset(), and update_offset_stride().
|
protected |
Definition at line 147 of file buffers.h.
Referenced by get_pass_offset(), reset_pass_offset(), and update_passes().
| int BufferParams::pass_stride = -1 |
Definition at line 92 of file buffers.h.
Referenced by DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_preprocess(), PathTrace::device_free(), PassAccessor::init_kernel_film_convert(), modified(), render_buffers_host_copy_denoised(), RenderBuffers::reset(), PassAccessorGPU::run_film_convert_kernels(), PassAccessorCPU::run_get_pass_kernel_processor_float(), PassAccessorCPU::run_get_pass_kernel_processor_half_rgba(), PassAccessor::set_render_tile_pixels(), update_passes(), update_passes(), and TileManager::write_tile().
| vector<BufferPass> BufferParams::passes |
Definition at line 95 of file buffers.h.
Referenced by buffer_params_from_image_spec_atttributes(), buffer_params_to_image_spec_atttributes(), exr_channel_names_for_passes(), find_pass(), find_pass(), modified(), update_passes(), and update_passes().
| int BufferParams::stride = -1 |
Definition at line 89 of file buffers.h.
Referenced by DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_preprocess(), modified(), WorkTileScheduler::reset(), PassAccessorGPU::run_film_convert_kernels(), PassAccessorCPU::run_get_pass_kernel_processor_float(), PassAccessorCPU::run_get_pass_kernel_processor_half_rgba(), and update_offset_stride().
| bool BufferParams::use_approximate_shadow_catcher = false |
Definition at line 100 of file buffers.h.
Referenced by PathTraceTile::get_pass_pixels(), and modified().
| bool BufferParams::use_transparent_background = false |
Definition at line 101 of file buffers.h.
Referenced by PathTraceTile::get_pass_pixels(), and modified().
| ustring BufferParams::view |
Definition at line 97 of file buffers.h.
Referenced by modified(), and BlenderSession::render().
| NODE_DECLARE int BufferParams::width = 0 |
Definition at line 70 of file buffers.h.
Referenced by BlenderSession::bake(), configure_image_spec_from_buffer(), DenoiserGPU::denoise_color_read(), DenoiserGPU::denoise_filter_color_flip_y(), DenoiserGPU::denoise_filter_color_postprocess(), DenoiserGPU::denoise_filter_color_preprocess(), DenoiserGPU::denoise_filter_guiding_flip_y(), DenoiserGPU::denoise_filter_guiding_preprocess(), DenoiserGPU::denoise_filter_guiding_set_fake_albedo(), DenoiseTask::load(), modified(), pad_pixels(), render_buffers_host_copy_denoised(), WorkTileScheduler::reset(), PassAccessorCPU::run_get_pass_kernel_processor_half_rgba(), Session::run_update_for_next_iteration(), scale_buffer_params(), session_buffer_params(), PassAccessor::set_render_tile_pixels(), update_offset_stride(), and TileManager::write_tile().
| int BufferParams::window_height = 0 |
Definition at line 80 of file buffers.h.
Referenced by BlenderSession::bake(), DenoiserGPU::denoise_color_read(), foreach_sliced_buffer_params(), modified(), PathTraceDisplay::reset(), PassAccessorGPU::run_film_convert_kernels(), PassAccessorCPU::run_get_pass_kernel_processor_float(), PassAccessorCPU::run_get_pass_kernel_processor_half_rgba(), Session::run_update_for_next_iteration(), scale_buffer_params(), and TileManager::write_tile().
| int BufferParams::window_width = 0 |
Definition at line 79 of file buffers.h.
Referenced by BlenderSession::bake(), DenoiserGPU::denoise_color_read(), modified(), PathTraceDisplay::reset(), PassAccessorGPU::run_film_convert_kernels(), Session::run_update_for_next_iteration(), scale_buffer_params(), and TileManager::write_tile().
| int BufferParams::window_x = 0 |
Definition at line 77 of file buffers.h.
Referenced by DenoiserGPU::denoise_color_read(), modified(), PathTraceDisplay::reset(), PassAccessorGPU::run_film_convert_kernels(), PassAccessorCPU::run_get_pass_kernel_processor_float(), PassAccessorCPU::run_get_pass_kernel_processor_half_rgba(), Session::run_update_for_next_iteration(), scale_buffer_params(), and TileManager::write_tile().
| int BufferParams::window_y = 0 |
Definition at line 78 of file buffers.h.
Referenced by DenoiserGPU::denoise_color_read(), foreach_sliced_buffer_params(), modified(), PathTraceDisplay::reset(), PassAccessorGPU::run_film_convert_kernels(), PassAccessorCPU::run_get_pass_kernel_processor_float(), PassAccessorCPU::run_get_pass_kernel_processor_half_rgba(), Session::run_update_for_next_iteration(), scale_buffer_params(), and TileManager::write_tile().