Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_memory.cpp
| Context not available. | |||||
| device(device), | device(device), | ||||
| device_pointer(0), | device_pointer(0), | ||||
| host_pointer(0), | host_pointer(0), | ||||
| shared_pointer(0) | shared_pointer(0), | ||||
| shared_counter(0) | |||||
| { | { | ||||
| } | } | ||||
| device_memory::~device_memory() | device_memory::~device_memory() | ||||
| { | { | ||||
| assert(shared_pointer == 0); | |||||
| assert(shared_counter == 0); | |||||
| } | } | ||||
| device_memory::device_memory(device_memory &&other) | device_memory::device_memory(device_memory &&other) | ||||
| Context not available. | |||||
| device(other.device), | device(other.device), | ||||
| device_pointer(other.device_pointer), | device_pointer(other.device_pointer), | ||||
| host_pointer(other.host_pointer), | host_pointer(other.host_pointer), | ||||
| shared_pointer(other.shared_pointer) | shared_pointer(other.shared_pointer), | ||||
| shared_counter(other.shared_counter) | |||||
| { | { | ||||
| other.device_size = 0; | other.device_size = 0; | ||||
| other.device_pointer = 0; | other.device_pointer = 0; | ||||
| other.host_pointer = 0; | other.host_pointer = 0; | ||||
| other.shared_pointer = 0; | other.shared_pointer = 0; | ||||
| other.shared_counter = 0; | |||||
| } | } | ||||
| void *device_memory::host_alloc(size_t size) | void *device_memory::host_alloc(size_t size) | ||||
| Context not available. | |||||