|
Blender V5.0
|
#include <path_trace_display.h>
Public Member Functions | |
| PathTraceDisplay (unique_ptr< DisplayDriver > driver) | |
| virtual | ~PathTraceDisplay ()=default |
| void | reset (const BufferParams &buffer_params, bool reset_rendering) |
| bool | update_begin (const int texture_width, const int texture_height) |
| void | update_end () |
| int2 | get_texture_size () const |
| void | copy_pixels_to_texture (const half4 *rgba_pixels, const int texture_x, const int texture_y, const int pixels_width, const int pixels_height) |
| half4 * | map_texture_buffer () |
| void | unmap_texture_buffer () |
| GraphicsInteropDevice | graphics_interop_get_device () |
| GraphicsInteropBuffer & | graphics_interop_get_buffer () |
| void | graphics_interop_activate () |
| void | graphics_interop_deactivate () |
| void | zero () |
| bool | draw () |
| void | flush () |
Definition at line 26 of file path_trace_display.h.
|
explicit |
Definition at line 14 of file path_trace_display.cpp.
|
virtualdefault |
| void PathTraceDisplay::copy_pixels_to_texture | ( | const half4 * | rgba_pixels, |
| const int | texture_x, | ||
| const int | texture_y, | ||
| const int | pixels_width, | ||
| const int | pixels_height ) |
Definition at line 95 of file path_trace_display.cpp.
References DCHECK, LOG_ERROR, map_texture_buffer(), unmap_texture_buffer(), and y.
Referenced by PathTraceWorkGPU::copy_to_display_naive().
| bool PathTraceDisplay::draw | ( | ) |
Definition at line 240 of file path_trace_display.cpp.
References is_outdated, lock, and params.
| void PathTraceDisplay::flush | ( | ) |
Definition at line 259 of file path_trace_display.cpp.
| int2 PathTraceDisplay::get_texture_size | ( | ) | const |
Definition at line 86 of file path_trace_display.cpp.
Referenced by PathTraceWork::get_display_destination_template().
| void PathTraceDisplay::graphics_interop_activate | ( | ) |
Definition at line 221 of file path_trace_display.cpp.
Referenced by PathTraceWorkGPU::destroy_gpu_resources().
| void PathTraceDisplay::graphics_interop_deactivate | ( | ) |
Definition at line 226 of file path_trace_display.cpp.
Referenced by PathTraceWorkGPU::destroy_gpu_resources().
| GraphicsInteropBuffer & PathTraceDisplay::graphics_interop_get_buffer | ( | ) |
Definition at line 195 of file path_trace_display.cpp.
References GraphicsInteropBuffer::clear(), DCHECK, and LOG_ERROR.
Referenced by PathTraceWorkGPU::copy_to_display_interop().
| GraphicsInteropDevice PathTraceDisplay::graphics_interop_get_device | ( | ) |
Definition at line 190 of file path_trace_display.cpp.
Referenced by PathTraceWorkGPU::should_use_graphics_interop().
| half4 * PathTraceDisplay::map_texture_buffer | ( | ) |
Definition at line 147 of file path_trace_display.cpp.
References DCHECK, and LOG_ERROR.
Referenced by copy_pixels_to_texture(), and PathTraceWorkCPU::copy_to_display().
| void PathTraceDisplay::reset | ( | const BufferParams & | buffer_params, |
| bool | reset_rendering ) |
Definition at line 18 of file path_trace_display.cpp.
References BufferParams::full_height, BufferParams::full_width, BufferParams::full_x, BufferParams::full_y, lock, make_int2(), BufferParams::window_height, BufferParams::window_width, BufferParams::window_x, and BufferParams::window_y.
| void PathTraceDisplay::unmap_texture_buffer | ( | ) |
Definition at line 171 of file path_trace_display.cpp.
References DCHECK, and LOG_ERROR.
Referenced by copy_pixels_to_texture(), and PathTraceWorkCPU::copy_to_display().
| bool PathTraceDisplay::update_begin | ( | const int | texture_width, |
| const int | texture_height ) |
Definition at line 43 of file path_trace_display.cpp.
References DCHECK, lock, LOG_ERROR, make_int2(), and params.
| void PathTraceDisplay::update_end | ( | ) |
Definition at line 72 of file path_trace_display.cpp.
| void PathTraceDisplay::zero | ( | ) |
Definition at line 235 of file path_trace_display.cpp.
References GraphicsInteropBuffer::zero().
| bool PathTraceDisplay::is_active = false |
Definition at line 168 of file path_trace_display.h.
| bool PathTraceDisplay::is_mapped = false |
Definition at line 185 of file path_trace_display.h.
| bool PathTraceDisplay::is_outdated = true |
Definition at line 176 of file path_trace_display.h.
Referenced by draw().
Definition at line 179 of file path_trace_display.h.