|
Blender
V2.93
|
#include <buffers.h>
Public Member Functions | |
| RenderBuffers (Device *device) | |
| ~RenderBuffers () | |
| void | reset (BufferParams ¶ms) |
| void | zero () |
| bool | copy_from_device () |
| bool | get_pass_rect (const string &name, float exposure, int sample, int components, float *pixels) |
| bool | get_denoising_pass_rect (int offset, float exposure, int sample, int components, float *pixels) |
| bool | set_pass_rect (PassType type, int components, float *pixels, int samples) |
Public Attributes | |
| BufferParams | params |
| device_vector< float > | buffer |
| bool | map_neighbor_copied |
| double | render_time |
|
explicit |
Definition at line 133 of file buffers.cpp.
| RenderBuffers::~RenderBuffers | ( | ) |
Definition at line 140 of file buffers.cpp.
References buffer, and device_vector< T >::free().
| bool RenderBuffers::copy_from_device | ( | ) |
Definition at line 159 of file buffers.cpp.
References buffer, device_vector< T >::copy_from_device(), device_memory::device_pointer, BufferParams::get_passes_size(), BufferParams::height, params, and BufferParams::width.
Referenced by BlenderSession::do_write_update_render_result().
| bool RenderBuffers::get_denoising_pass_rect | ( | int | offset, |
| float | exposure, | ||
| int | sample, | ||
| int | components, | ||
| float * | pixels | ||
| ) |
Definition at line 169 of file buffers.cpp.
References buffer, color_highlight_uncompress(), device_vector< T >::data(), DENOISING_PASS_ALBEDO, DENOISING_PASS_CLEAN, DENOISING_PASS_COLOR, DENOISING_PASS_DEPTH, DENOISING_PASS_NORMAL, DENOISING_PASS_PREFILTERED_ALBEDO, DENOISING_PASS_PREFILTERED_COLOR, DENOISING_PASS_PREFILTERED_DEPTH, DENOISING_PASS_PREFILTERED_INTENSITY, DENOISING_PASS_PREFILTERED_NORMAL, DENOISING_PASS_PREFILTERED_VARIANCE, BufferParams::denoising_prefiltered_pass, BufferParams::get_denoising_offset(), BufferParams::get_denoising_prefiltered_offset(), BufferParams::get_passes_size(), BufferParams::height, make_float3, NULL, params, PASS_COMBINED, BufferParams::passes, blender::compositor::sample(), saturate(), size(), type, BufferParams::width, float3::x, float3::y, and float3::z.
Referenced by BlenderSession::do_write_update_render_result().
| bool RenderBuffers::get_pass_rect | ( | const string & | name, |
| float | exposure, | ||
| int | sample, | ||
| int | components, | ||
| float * | pixels | ||
| ) |
Definition at line 257 of file buffers.cpp.
References buffer, Pass::components, device_vector< T >::data(), Pass::divide_type, Pass::exposure, Pass::filter, float(), BufferParams::get_passes_size(), BufferParams::height, make_float3, make_float4, Pass::name, NULL, params, PASS_CRYPTOMATTE, PASS_DEPTH, PASS_MIST, PASS_MOTION, PASS_MOTION_WEIGHT, PASS_NONE, PASS_RENDER_TIME, PASS_SAMPLE_COUNT, PASS_SHADOW, BufferParams::passes, render_time, safe_divide_even_color(), blender::compositor::sample(), saturate(), size(), Pass::type, type, w(), BufferParams::width, float3::x, float3::y, and float3::z.
Referenced by BlenderSession::do_write_update_render_result().
| void RenderBuffers::reset | ( | BufferParams & | params | ) |
Definition at line 145 of file buffers.cpp.
References device_vector< T >::alloc(), buffer, BufferParams::get_passes_size(), BufferParams::height, params, BufferParams::width, and device_vector< T >::zero_to_device().
Referenced by Session::acquire_tile(), and Session::reset_().
Definition at line 463 of file buffers.cpp.
References buffer, Pass::components, device_vector< T >::data(), Pass::filter, BufferParams::get_passes_size(), BufferParams::height, NULL, params, BufferParams::passes, size(), Pass::type, type, and BufferParams::width.
Referenced by BlenderSession::do_write_update_render_tile().
| void RenderBuffers::zero | ( | ) |
Definition at line 154 of file buffers.cpp.
References buffer, and device_vector< T >::zero_to_device().
Referenced by Session::render().
| device_vector<float> RenderBuffers::buffer |
Definition at line 80 of file buffers.h.
Referenced by Session::acquire_tile(), copy_from_device(), Session::copy_to_display_buffer(), CPUDevice::denoise_openimagedenoise(), get_denoising_pass_rect(), get_pass_rect(), MultiDevice::map_neighbor_tiles(), Session::map_neighbor_tiles(), Session::render(), reset(), set_pass_rect(), Session::steal_tile(), MultiDevice::unmap_neighbor_tiles(), zero(), and ~RenderBuffers().
| bool RenderBuffers::map_neighbor_copied |
Definition at line 81 of file buffers.h.
Referenced by Session::acquire_tile(), and MultiDevice::map_neighbor_tiles().
| BufferParams RenderBuffers::params |
Definition at line 77 of file buffers.h.
Referenced by Session::acquire_tile(), copy_from_device(), get_denoising_pass_rect(), get_pass_rect(), Session::map_neighbor_tiles(), reset(), set_pass_rect(), and Session::~Session().
| double RenderBuffers::render_time |
Definition at line 82 of file buffers.h.
Referenced by get_pass_rect(), and CPUDevice::render().