Blender  V3.3
COM_CPUDevice.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
4 #pragma once
5 
6 #include "COM_Device.h"
7 
8 namespace blender::compositor {
9 
15 class CPUDevice : public Device {
16  public:
17  CPUDevice(int thread_id);
18 
23  void execute(WorkPackage *work) override;
24 
25  int thread_id()
26  {
27  return thread_id_;
28  }
29 
30  protected:
32 };
33 
34 } // namespace blender::compositor
class representing a CPU device.
Definition: COM_CPUDevice.h:15
void execute(WorkPackage *work) override
execute a WorkPackage
Abstract class for device implementations to be used by the Compositor. devices are queried,...
Definition: COM_Device.h:19
contains data about work that can be scheduled