Blender V4.3
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 27 of file path_trace_display.h.

Constructor & Destructor Documentation

◆ PathTraceDisplay()

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

Definition at line 13 of file path_trace_display.cpp.

◆ ~PathTraceDisplay()

virtual PathTraceDisplay::~PathTraceDisplay ( )
virtualdefault

Member Function Documentation

◆ clear()

void PathTraceDisplay::clear ( )

Definition at line 222 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 )

Definition at line 94 of file path_trace_display.cpp.

References DCHECK, LOG, map_texture_buffer(), unmap_texture_buffer(), and y.

◆ draw()

bool PathTraceDisplay::draw ( )

Definition at line 227 of file path_trace_display.cpp.

References is_outdated, lock, and params.

◆ flush()

void PathTraceDisplay::flush ( )

Definition at line 246 of file path_trace_display.cpp.

◆ get_texture_size()

int2 PathTraceDisplay::get_texture_size ( ) const

Definition at line 85 of file path_trace_display.cpp.

◆ graphics_interop_activate()

void PathTraceDisplay::graphics_interop_activate ( )

Definition at line 208 of file path_trace_display.cpp.

◆ graphics_interop_deactivate()

void PathTraceDisplay::graphics_interop_deactivate ( )

Definition at line 213 of file path_trace_display.cpp.

◆ graphics_interop_get()

DisplayDriver::GraphicsInterop PathTraceDisplay::graphics_interop_get ( )

Definition at line 186 of file path_trace_display.cpp.

References DCHECK, and LOG.

◆ map_texture_buffer()

half4 * PathTraceDisplay::map_texture_buffer ( )

Definition at line 143 of file path_trace_display.cpp.

References DCHECK, and LOG.

Referenced by copy_pixels_to_texture().

◆ reset()

◆ unmap_texture_buffer()

void PathTraceDisplay::unmap_texture_buffer ( )

Definition at line 167 of file path_trace_display.cpp.

References DCHECK, and LOG.

Referenced by copy_pixels_to_texture().

◆ update_begin()

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

Definition at line 42 of file path_trace_display.cpp.

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

◆ update_end()

void PathTraceDisplay::update_end ( )

Definition at line 71 of file path_trace_display.cpp.

References DCHECK, and LOG.

Member Data Documentation

◆ is_active

bool PathTraceDisplay::is_active = false

Definition at line 165 of file path_trace_display.h.

◆ is_mapped

bool PathTraceDisplay::is_mapped = false

Definition at line 182 of file path_trace_display.h.

◆ is_outdated

bool PathTraceDisplay::is_outdated = true

Definition at line 173 of file path_trace_display.h.

Referenced by draw().

◆ size

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

Definition at line 176 of file path_trace_display.h.


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