* @brief The Device class is a key component of OpenPGL. It is used to set * compute architecture and optimizations (e.g., SIMD) used for the implementation of * guiding structures (e.g., Field, SurfaceSamplingDistribution, or VolumeSamplingDistribution). */
| 20 | * guiding structures (e.g., Field, SurfaceSamplingDistribution, or VolumeSamplingDistribution). |
| 21 | */ |
| 22 | struct Device |
| 23 | { |
| 24 | /** |
| 25 | * @brief Creates a new Device object. |
| 26 | * |
| 27 | * Creates a new Device object. The object can be optimized |
| 28 | * for different compute architechtures. On the CPU the device can be |
| 29 | * optimized for different SIMD architechtures (e.g., SSE4, AVX, or AVX-512) |
| 30 | * |
| 31 | * @param deviceType The device optimization type. |
| 32 | */ |
| 33 | Device(PGL_DEVICE_TYPE deviceType, size_t numThreads = 0); |
| 34 | |
| 35 | ~Device(); |
| 36 | |
| 37 | Device(const Device &) = delete; |
| 38 | |
| 39 | friend struct openpgl::cpp::Field; |
| 40 | |
| 41 | private: |
| 42 | PGLDevice m_deviceHandle{nullptr}; |
| 43 | }; |
| 44 | |
| 45 | //////////////////////////////////////////////////////////// |
| 46 | /// Implementation |
nothing calls this directly
no outgoing calls
no test coverage detected