Blender V2.61 - r43446
|
#include <buffers.h>
Public Member Functions | |
RenderBuffers (Device *device) | |
~RenderBuffers () | |
void | reset (Device *device, BufferParams ¶ms) |
float4 * | copy_from_device (float exposure, int sample) |
Public Attributes | |
BufferParams | params |
device_vector< float4 > | buffer |
device_vector< uint > | rng_state |
thread_mutex | mutex |
Protected Member Functions | |
void | device_free () |
Protected Attributes | |
Device * | device |
CCL_NAMESPACE_BEGIN RenderBuffers::RenderBuffers | ( | Device * | device | ) |
Definition at line 36 of file buffers.cpp.
References device.
RenderBuffers::~RenderBuffers | ( | ) |
Definition at line 41 of file buffers.cpp.
References device_free().
float4 * RenderBuffers::copy_from_device | ( | float | exposure, |
int | sample | ||
) |
Definition at line 85 of file buffers.cpp.
References buffer, clamp, device_memory::data_pointer, device, device_memory::device_pointer, BufferParams::height, i, Device::mem_copy_from(), NULL, params, float4::w, BufferParams::width, float4::x, float4::y, and float4::z.
Referenced by BlenderSession::write_render_result().
void RenderBuffers::device_free | ( | ) | [protected] |
Definition at line 46 of file buffers.cpp.
References buffer, device_vector< T >::clear(), device, device_memory::device_pointer, Device::mem_free(), and rng_state.
Referenced by reset(), and ~RenderBuffers().
void RenderBuffers::reset | ( | Device * | device, |
BufferParams & | params | ||
) |
Definition at line 59 of file buffers.cpp.
References buffer, device_free(), hash_int_2d(), BufferParams::height, Device::mem_alloc(), Device::mem_copy_to(), MEM_READ_WRITE, Device::mem_zero(), params, device_vector< T >::resize(), rng_state, and BufferParams::width.
Referenced by Session::reset_().
Definition at line 83 of file buffers.h.
Referenced by copy_from_device(), device_free(), Session::path_trace(), reset(), and Session::tonemap().
Device* RenderBuffers::device [protected] |
Definition at line 98 of file buffers.h.
Referenced by copy_from_device(), device_free(), and RenderBuffers().
Definition at line 87 of file buffers.h.
Referenced by Session::draw_gpu(), Session::reset_gpu(), Session::run_cpu(), and Session::run_gpu().
Definition at line 81 of file buffers.h.
Referenced by copy_from_device(), reset(), and Session::reset_().
Definition at line 85 of file buffers.h.
Referenced by device_free(), Session::path_trace(), and reset().