Blender V5.0
draw_testing.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#include "draw_testing.hh"
6
7#include "DRW_engine.hh"
8#include "GPU_shader.hh"
9
10namespace blender::draw {
11
12/* Base class for draw test cases. It will setup and tear down the GPU part around each test. */
13#ifdef WITH_OPENGL_BACKEND
14void DrawOpenGLTest::SetUp()
15{
16 GPUOpenGLTest::SetUp();
18}
19
20void DrawOpenGLTest::TearDown()
21{
23 GPUOpenGLTest::TearDown();
24}
25#endif
26
27#ifdef WITH_METAL_BACKEND
28void DrawMetalTest::SetUp()
29{
30 GPUMetalTest::SetUp();
32}
33
34void DrawMetalTest::TearDown()
35{
37 GPUMetalTest::TearDown();
38}
39#endif
40
41#ifdef WITH_VULKAN_BACKEND
42void DrawVulkanTest::SetUp()
43{
44 GPUVulkanTest::SetUp();
46}
47
48void DrawVulkanTest::TearDown()
49{
51 GPUVulkanTest::TearDown();
52}
53#endif
54
55} // namespace blender::draw
void DRW_mutexes_init()
void DRW_mutexes_exit()