Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_multi.cpp
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| void const_copy_to(const char *name, void *host, size_t size) | void const_copy_to(const char *name, void *host, size_t size) | ||||
| { | { | ||||
| foreach(SubDevice& sub, devices) | foreach(SubDevice& sub, devices) | ||||
| sub.device->const_copy_to(name, host, size); | sub.device->const_copy_to(name, host, size); | ||||
| } | } | ||||
| void tex_alloc(const char *name, device_memory& mem, bool interpolation, bool periodic) | void tex_alloc(const char *name, device_memory& mem, InterpolationType interpolation, bool periodic) | ||||
| { | { | ||||
| foreach(SubDevice& sub, devices) { | foreach(SubDevice& sub, devices) { | ||||
| mem.device_pointer = 0; | mem.device_pointer = 0; | ||||
| sub.device->tex_alloc(name, mem, interpolation, periodic); | sub.device->tex_alloc(name, mem, interpolation, periodic); | ||||
| sub.ptr_map[unique_ptr] = mem.device_pointer; | sub.ptr_map[unique_ptr] = mem.device_pointer; | ||||
| } | } | ||||
| mem.device_pointer = unique_ptr++; | mem.device_pointer = unique_ptr++; | ||||
| ▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines | |||||