31 lines
632 B
C++
31 lines
632 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#include "draw_testing.hh"
|
|
|
|
#include "GPU_shader.h"
|
|
|
|
#include "draw_manager_testing.h"
|
|
|
|
namespace blender::draw {
|
|
|
|
/* Base class for draw test cases. It will setup and tear down the GPU part around each test. */
|
|
#ifdef WITH_OPENGL_BACKEND
|
|
void DrawOpenGLTest::SetUp()
|
|
{
|
|
GPUOpenGLTest::SetUp();
|
|
DRW_draw_state_init_gtests(GPU_SHADER_CFG_DEFAULT);
|
|
}
|
|
#endif
|
|
|
|
#ifdef WITH_METAL_BACKEND
|
|
void DrawMetalTest::SetUp()
|
|
{
|
|
GPUMetalTest::SetUp();
|
|
DRW_draw_state_init_gtests(GPU_SHADER_CFG_DEFAULT);
|
|
}
|
|
#endif
|
|
|
|
} // namespace blender::draw
|