Blender
V3.3
|
#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 (int texture_width, int texture_height) |
void | update_end () |
int2 | get_texture_size () const |
void | copy_pixels_to_texture (const half4 *rgba_pixels, int texture_x, int texture_y, int pixels_width, int pixels_height) |
half4 * | map_texture_buffer () |
void | unmap_texture_buffer () |
DisplayDriver::GraphicsInterop | graphics_interop_get () |
void | graphics_interop_activate () |
void | graphics_interop_deactivate () |
void | clear () |
bool | draw () |
void | flush () |
Definition at line 26 of file path_trace_display.h.
|
explicit |
Definition at line 12 of file path_trace_display.cpp.
|
virtualdefault |
void PathTraceDisplay::clear | ( | ) |
Definition at line 219 of file path_trace_display.cpp.
void PathTraceDisplay::copy_pixels_to_texture | ( | const half4 * | rgba_pixels, |
int | texture_x, | ||
int | texture_y, | ||
int | pixels_width, | ||
int | pixels_height | ||
) |
Definition at line 93 of file path_trace_display.cpp.
References DCHECK, LOG, map_texture_buffer(), unmap_texture_buffer(), and y.
Referenced by PathTraceWorkGPU::copy_to_display_naive().
bool PathTraceDisplay::draw | ( | ) |
Definition at line 224 of file path_trace_display.cpp.
References is_outdated, lock, and params.
void PathTraceDisplay::flush | ( | ) |
Definition at line 243 of file path_trace_display.cpp.
int2 PathTraceDisplay::get_texture_size | ( | ) | const |
Definition at line 84 of file path_trace_display.cpp.
Referenced by PathTraceWork::get_display_destination_template().
void PathTraceDisplay::graphics_interop_activate | ( | ) |
Definition at line 205 of file path_trace_display.cpp.
Referenced by PathTraceWorkGPU::destroy_gpu_resources().
void PathTraceDisplay::graphics_interop_deactivate | ( | ) |
Definition at line 210 of file path_trace_display.cpp.
Referenced by PathTraceWorkGPU::destroy_gpu_resources().
DisplayDriver::GraphicsInterop PathTraceDisplay::graphics_interop_get | ( | ) |
Definition at line 183 of file path_trace_display.cpp.
Referenced by PathTraceWorkGPU::copy_to_display_interop().
half4 * PathTraceDisplay::map_texture_buffer | ( | ) |
Definition at line 140 of file path_trace_display.cpp.
Referenced by copy_pixels_to_texture(), and PathTraceWorkCPU::copy_to_display().
void PathTraceDisplay::reset | ( | const BufferParams & | buffer_params, |
bool | reset_rendering | ||
) |
Definition at line 16 of file path_trace_display.cpp.
References BufferParams::full_height, DisplayDriver::Params::full_offset, DisplayDriver::Params::full_size, BufferParams::full_width, BufferParams::full_x, BufferParams::full_y, lock, make_int2, DisplayDriver::Params::size, BufferParams::window_height, BufferParams::window_width, BufferParams::window_x, and BufferParams::window_y.
void PathTraceDisplay::unmap_texture_buffer | ( | ) |
Definition at line 164 of file path_trace_display.cpp.
Referenced by copy_pixels_to_texture(), and PathTraceWorkCPU::copy_to_display().
bool PathTraceDisplay::update_begin | ( | int | texture_width, |
int | texture_height | ||
) |
void PathTraceDisplay::update_end | ( | ) |
Definition at line 70 of file path_trace_display.cpp.
bool PathTraceDisplay::is_active = false |
Definition at line 164 of file path_trace_display.h.
bool PathTraceDisplay::is_mapped = false |
Definition at line 181 of file path_trace_display.h.
bool PathTraceDisplay::is_outdated = true |
Definition at line 172 of file path_trace_display.h.
Referenced by draw().
Definition at line 175 of file path_trace_display.h.