Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/memory.h
| Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | public: | ||||
| void restore_device(); | void restore_device(); | ||||
| bool is_resident(Device *sub_device) const; | bool is_resident(Device *sub_device) const; | ||||
| protected: | protected: | ||||
| friend class CUDADevice; | friend class CUDADevice; | ||||
| friend class OptiXDevice; | friend class OptiXDevice; | ||||
| friend class HIPDevice; | friend class HIPDevice; | ||||
| friend class MetalDevice; | |||||
| /* Only create through subclasses. */ | /* Only create through subclasses. */ | ||||
| device_memory(Device *device, const char *name, MemoryType type); | device_memory(Device *device, const char *name, MemoryType type); | ||||
| /* No copying and allowed. | /* No copying and allowed. | ||||
| * | * | ||||
| * This is because device implementation might need to register device memory in an allocation | * This is because device implementation might need to register device memory in an allocation | ||||
| * map of some sort and use pointer as a key to identify blocks. Moving data from one place to | * map of some sort and use pointer as a key to identify blocks. Moving data from one place to | ||||
| ▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines | |||||