Blender  V3.3
Public Member Functions | List of all members
PathTraceDisplay Class Reference

#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)
 
half4map_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 ()
 

Detailed Description

Definition at line 26 of file path_trace_display.h.

Constructor & Destructor Documentation

◆ PathTraceDisplay()

CCL_NAMESPACE_BEGIN PathTraceDisplay::PathTraceDisplay ( unique_ptr< DisplayDriver driver)
explicit

Definition at line 12 of file path_trace_display.cpp.

◆ ~PathTraceDisplay()

virtual PathTraceDisplay::~PathTraceDisplay ( )
virtualdefault

Member Function Documentation

◆ clear()

void PathTraceDisplay::clear ( )

Definition at line 219 of file path_trace_display.cpp.

◆ copy_pixels_to_texture()

void PathTraceDisplay::copy_pixels_to_texture ( const half4 rgba_pixels,
int  texture_x,
int  texture_y,
int  pixels_width,
int  pixels_height 
)

◆ draw()

bool PathTraceDisplay::draw ( )

Definition at line 224 of file path_trace_display.cpp.

References is_outdated, lock, and params.

◆ flush()

void PathTraceDisplay::flush ( )

Definition at line 243 of file path_trace_display.cpp.

◆ get_texture_size()

int2 PathTraceDisplay::get_texture_size ( ) const

◆ graphics_interop_activate()

void PathTraceDisplay::graphics_interop_activate ( )

Definition at line 205 of file path_trace_display.cpp.

Referenced by PathTraceWorkGPU::destroy_gpu_resources().

◆ graphics_interop_deactivate()

void PathTraceDisplay::graphics_interop_deactivate ( )

Definition at line 210 of file path_trace_display.cpp.

Referenced by PathTraceWorkGPU::destroy_gpu_resources().

◆ graphics_interop_get()

DisplayDriver::GraphicsInterop PathTraceDisplay::graphics_interop_get ( )

Definition at line 183 of file path_trace_display.cpp.

References DCHECK, and LOG.

Referenced by PathTraceWorkGPU::copy_to_display_interop().

◆ map_texture_buffer()

half4 * PathTraceDisplay::map_texture_buffer ( )

Definition at line 140 of file path_trace_display.cpp.

References DCHECK, and LOG.

Referenced by copy_pixels_to_texture(), and PathTraceWorkCPU::copy_to_display().

◆ reset()

void PathTraceDisplay::reset ( const BufferParams buffer_params,
bool  reset_rendering 
)

◆ unmap_texture_buffer()

void PathTraceDisplay::unmap_texture_buffer ( )

Definition at line 164 of file path_trace_display.cpp.

References DCHECK, and LOG.

Referenced by copy_pixels_to_texture(), and PathTraceWorkCPU::copy_to_display().

◆ update_begin()

bool PathTraceDisplay::update_begin ( int  texture_width,
int  texture_height 
)

Definition at line 41 of file path_trace_display.cpp.

References DCHECK, lock, LOG, make_int2, and params.

◆ update_end()

void PathTraceDisplay::update_end ( )

Definition at line 70 of file path_trace_display.cpp.

References DCHECK, and LOG.

Member Data Documentation

◆ is_active

bool PathTraceDisplay::is_active = false

Definition at line 164 of file path_trace_display.h.

◆ is_mapped

bool PathTraceDisplay::is_mapped = false

Definition at line 181 of file path_trace_display.h.

◆ is_outdated

bool PathTraceDisplay::is_outdated = true

Definition at line 172 of file path_trace_display.h.

Referenced by draw().

◆ size

int2 PathTraceDisplay::size = make_int2(0, 0)

Definition at line 175 of file path_trace_display.h.


The documentation for this class was generated from the following files: