#include <display_switch.h>
Definition at line 28 of file display_switch.h.
◆ DisplaySwitch()
DisplaySwitch::DisplaySwitch |
( |
| ) |
|
|
private |
◆ processOnGPU()
Executes the task on GPU.
- Parameters
-
gpu | graphic pipeline instance |
thread | associated task execution context |
- Returns
true
if the execution is finished correctly, false
otherwise
Reimplemented from Beatmup::AbstractTask.
Definition at line 24 of file display_switch.cpp.
26 #ifdef BEATMUP_PLATFORM_ANDROID
void switchDisplay(void *data)
◆ process()
bool DisplaySwitch::process |
( |
TaskThread & |
thread | ) |
|
|
privatevirtual |
Executes the task on CPU within a given thread.
Generally called by multiple threads.
- Parameters
-
thread | associated task execution context |
- Returns
true
if the execution is finished correctly, false
otherwise
Implements Beatmup::AbstractTask.
Definition at line 33 of file display_switch.cpp.
◆ getUsedDevices()
Communicates devices (CPU and/or GPU) the task is run on.
Reimplemented from Beatmup::AbstractTask.
Definition at line 39 of file display_switch.cpp.
@ GPU_OR_CPU
this task uses GPU if it is available, but CPU fallback is possible
◆ run()
bool DisplaySwitch::run |
( |
Context & |
ctx, |
|
|
void * |
switchingData = nullptr |
|
) |
| |
|
static |
Definition at line 47 of file display_switch.cpp.
float performTask(AbstractTask &task, const PoolIndex pool=DEFAULT_POOL)
Performs a given task.
Beatmup::NNets::InferenceTask * task
◆ switchingData
void* Beatmup::DisplaySwitch::switchingData |
|
private |
◆ gpuIsOk
bool Beatmup::DisplaySwitch::gpuIsOk |
|
private |
The documentation for this class was generated from the following files: