Welcome to mirror list, hosted at ThFree Co, Russian Federation.

device.py « api « performance « tests - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a5db54a9114851e4352786045c1faae32d9fcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

from . import TestEnvironment

class TestDevice:
    def __init__(self, name: str):
        self.name = name

class TestMachine:
    def __init__(self, env: TestEnvironment):
        # TODO: implement device detection, matching Blender Benchmark.
        self.devices = [TestDevice('CPU')]

    def cpu_device(self) -> str:
        return self.devices[0]