Blender
V3.3
source
blender
compositor
intern
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
:
31
int
thread_id_
;
32
};
33
34
}
// namespace blender::compositor
COM_Device.h
blender::compositor::CPUDevice
class representing a CPU device.
Definition:
COM_CPUDevice.h:15
blender::compositor::CPUDevice::CPUDevice
CPUDevice(int thread_id)
Definition:
COM_CPUDevice.cc:11
blender::compositor::CPUDevice::thread_id_
int thread_id_
Definition:
COM_CPUDevice.h:31
blender::compositor::CPUDevice::thread_id
int thread_id()
Definition:
COM_CPUDevice.h:25
blender::compositor::CPUDevice::execute
void execute(WorkPackage *work) override
execute a WorkPackage
Definition:
COM_CPUDevice.cc:15
blender::compositor::Device
Abstract class for device implementations to be used by the Compositor. devices are queried,...
Definition:
COM_Device.h:19
blender::compositor
Definition:
COM_defines.h:10
blender::compositor::WorkPackage
contains data about work that can be scheduled
Definition:
COM_WorkPackage.h:25
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1