Blender  V2.93
Public Member Functions | Public Attributes | List of all members
RenderBuffers Class Reference

#include <buffers.h>

Public Member Functions

 RenderBuffers (Device *device)
 
 ~RenderBuffers ()
 
void reset (BufferParams &params)
 
void zero ()
 
bool copy_from_device ()
 
bool get_pass_rect (const string &name, float exposure, int sample, int components, float *pixels)
 
bool get_denoising_pass_rect (int offset, float exposure, int sample, int components, float *pixels)
 
bool set_pass_rect (PassType type, int components, float *pixels, int samples)
 

Public Attributes

BufferParams params
 
device_vector< floatbuffer
 
bool map_neighbor_copied
 
double render_time
 

Detailed Description

Definition at line 74 of file buffers.h.

Constructor & Destructor Documentation

◆ RenderBuffers()

RenderBuffers::RenderBuffers ( Device device)
explicit

Definition at line 133 of file buffers.cpp.

◆ ~RenderBuffers()

RenderBuffers::~RenderBuffers ( )

Definition at line 140 of file buffers.cpp.

References buffer, and device_vector< T >::free().

Member Function Documentation

◆ copy_from_device()

bool RenderBuffers::copy_from_device ( )

◆ get_denoising_pass_rect()

bool RenderBuffers::get_denoising_pass_rect ( int  offset,
float  exposure,
int  sample,
int  components,
float pixels 
)

◆ get_pass_rect()

bool RenderBuffers::get_pass_rect ( const string &  name,
float  exposure,
int  sample,
int  components,
float pixels 
)

◆ reset()

void RenderBuffers::reset ( BufferParams params)

◆ set_pass_rect()

bool RenderBuffers::set_pass_rect ( PassType  type,
int  components,
float pixels,
int  samples 
)

◆ zero()

void RenderBuffers::zero ( )

Definition at line 154 of file buffers.cpp.

References buffer, and device_vector< T >::zero_to_device().

Referenced by Session::render().

Member Data Documentation

◆ buffer

device_vector<float> RenderBuffers::buffer

◆ map_neighbor_copied

bool RenderBuffers::map_neighbor_copied

Definition at line 81 of file buffers.h.

Referenced by Session::acquire_tile(), and MultiDevice::map_neighbor_tiles().

◆ params

BufferParams RenderBuffers::params

◆ render_time

double RenderBuffers::render_time

Definition at line 82 of file buffers.h.

Referenced by get_pass_rect(), and CPUDevice::render().


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