Blender V5.0
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 (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)
half4map_texture_buffer ()
void unmap_texture_buffer ()
GraphicsInteropDevice graphics_interop_get_device ()
GraphicsInteropBuffergraphics_interop_get_buffer ()
void graphics_interop_activate ()
void graphics_interop_deactivate ()
void zero ()
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 14 of file path_trace_display.cpp.

◆ ~PathTraceDisplay()

virtual PathTraceDisplay::~PathTraceDisplay ( )
virtualdefault

Member Function Documentation

◆ copy_pixels_to_texture()

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 )

◆ draw()

bool PathTraceDisplay::draw ( )

Definition at line 240 of file path_trace_display.cpp.

References is_outdated, lock, and params.

◆ flush()

void PathTraceDisplay::flush ( )

Definition at line 259 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 221 of file path_trace_display.cpp.

Referenced by PathTraceWorkGPU::destroy_gpu_resources().

◆ graphics_interop_deactivate()

void PathTraceDisplay::graphics_interop_deactivate ( )

Definition at line 226 of file path_trace_display.cpp.

Referenced by PathTraceWorkGPU::destroy_gpu_resources().

◆ graphics_interop_get_buffer()

GraphicsInteropBuffer & PathTraceDisplay::graphics_interop_get_buffer ( )

◆ graphics_interop_get_device()

GraphicsInteropDevice PathTraceDisplay::graphics_interop_get_device ( )

◆ map_texture_buffer()

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().

◆ reset()

◆ unmap_texture_buffer()

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().

◆ update_begin()

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.

◆ update_end()

void PathTraceDisplay::update_end ( )

Definition at line 72 of file path_trace_display.cpp.

References DCHECK, and LOG_ERROR.

◆ zero()

void PathTraceDisplay::zero ( )

Definition at line 235 of file path_trace_display.cpp.

References GraphicsInteropBuffer::zero().

Member Data Documentation

◆ is_active

bool PathTraceDisplay::is_active = false

Definition at line 168 of file path_trace_display.h.

◆ is_mapped

bool PathTraceDisplay::is_mapped = false

Definition at line 185 of file path_trace_display.h.

◆ is_outdated

bool PathTraceDisplay::is_outdated = true

Definition at line 176 of file path_trace_display.h.

Referenced by draw().

◆ size

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

Definition at line 179 of file path_trace_display.h.


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