Blender V2.61 - r43446
Public Types | Public Member Functions | Public Attributes

DeviceTask Class Reference

#include <device.h>

List of all members.

Public Types

enum  Type { PATH_TRACE, TONEMAP, SHADER }

Public Member Functions

 DeviceTask (Type type=PATH_TRACE)
void split (list< DeviceTask > &tasks, int num)
void split (ThreadQueue< DeviceTask > &tasks, int num)
void split_max_size (list< DeviceTask > &tasks, int max_size)

Public Attributes

Type type
int x
int y
int w
int h
device_ptr rng_state
device_ptr rgba
device_ptr buffer
int sample
int resolution
int offset
int stride
device_ptr shader_input
device_ptr shader_output
int shader_eval_type
int shader_x
int shader_w

Detailed Description

Definition at line 67 of file device.h.


Member Enumeration Documentation

Enumerator:
PATH_TRACE 
TONEMAP 
SHADER 

Definition at line 69 of file device.h.


Constructor & Destructor Documentation

CCL_NAMESPACE_BEGIN DeviceTask::DeviceTask ( Type  type = PATH_TRACE)

Definition at line 38 of file device.cpp.


Member Function Documentation

void DeviceTask::split ( list< DeviceTask > &  tasks,
int  num 
)

Definition at line 70 of file device.cpp.

References h, i, min, SHADER, shader_w, shader_x, type, and y.

Referenced by split(), split_max_size(), and CPUDevice::task_add().

void DeviceTask::split ( ThreadQueue< DeviceTask > &  tasks,
int  num 
)

Definition at line 61 of file device.cpp.

References ThreadQueue< T >::push(), and split().

void DeviceTask::split_max_size ( list< DeviceTask > &  tasks,
int  max_size 
)

Definition at line 46 of file device.cpp.

References h, max, SHADER, shader_w, split(), type, and w.


Member Data Documentation

Definition at line 74 of file device.h.

Referenced by CPUDevice::thread_tonemap(), Session::tonemap(), and CUDADevice::tonemap().

Definition at line 82 of file device.h.

Referenced by MeshManager::displace(), CUDADevice::shader(), and CPUDevice::thread_shader().

Definition at line 80 of file device.h.

Referenced by MeshManager::displace(), CUDADevice::shader(), and CPUDevice::thread_shader().

Definition at line 81 of file device.h.

Referenced by MeshManager::displace(), CUDADevice::shader(), and CPUDevice::thread_shader().

Definition at line 70 of file device.h.

Referenced by split(), split_max_size(), CUDADevice::task_add(), and CPUDevice::thread_run().


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