Blender
V2.93
source
blender
compositor
intern
COM_CPUDevice.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* Copyright 2011, Blender Foundation.
17
*/
18
19
#pragma once
20
21
#include "
COM_Device.h
"
22
23
namespace
blender::compositor
{
24
30
class
CPUDevice
:
public
Device
{
31
public
:
32
CPUDevice
(
int
thread_id
);
33
38
void
execute
(
WorkPackage
*work)
override
;
39
40
int
thread_id
()
41
{
42
return
m_thread_id
;
43
}
44
45
protected
:
46
int
m_thread_id
;
47
};
48
49
}
// namespace blender::compositor
COM_Device.h
blender::compositor::CPUDevice
class representing a CPU device.
Definition:
COM_CPUDevice.h:30
blender::compositor::CPUDevice::m_thread_id
int m_thread_id
Definition:
COM_CPUDevice.h:46
blender::compositor::CPUDevice::CPUDevice
CPUDevice(int thread_id)
Definition:
COM_CPUDevice.cc:27
blender::compositor::CPUDevice::thread_id
int thread_id()
Definition:
COM_CPUDevice.h:40
blender::compositor::CPUDevice::execute
void execute(WorkPackage *work) override
execute a WorkPackage
Definition:
COM_CPUDevice.cc:31
blender::compositor::Device
Abstract class for device implementations to be used by the Compositor. devices are queried,...
Definition:
COM_Device.h:30
blender::compositor
Definition:
COM_defines.h:21
blender::compositor::WorkPackage
contains data about work that can be scheduled
Definition:
COM_WorkPackage.h:35
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1