Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/hip/graphics_interop.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public: | ||||
| virtual device_ptr map() override; | virtual device_ptr map() override; | ||||
| virtual void unmap() override; | virtual void unmap() override; | ||||
| protected: | protected: | ||||
| HIPDeviceQueue *queue_ = nullptr; | HIPDeviceQueue *queue_ = nullptr; | ||||
| HIPDevice *device_ = nullptr; | HIPDevice *device_ = nullptr; | ||||
| /* OpenGL PBO which is currently registered as the destination for the CUDA buffer. */ | /* OpenGL PBO which is currently registered as the destination for the HIP buffer. */ | ||||
| uint opengl_pbo_id_ = 0; | uint opengl_pbo_id_ = 0; | ||||
| /* Buffer area in pixels of the corresponding PBO. */ | /* Buffer area in pixels of the corresponding PBO. */ | ||||
| int64_t buffer_area_ = 0; | int64_t buffer_area_ = 0; | ||||
| /* The destination was requested to be cleared. */ | /* The destination was requested to be cleared. */ | ||||
| bool need_clear_ = false; | bool need_clear_ = false; | ||||
| hipGraphicsResource hip_graphics_resource_ = nullptr; | hipGraphicsResource hip_graphics_resource_ = nullptr; | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif | #endif | ||||