5#include "testing/testing.h"
25GHOST_ISystem *GPUTest::ghost_system_;
26GHOST_IContext *GPUTest::ghost_context_;
27GPUContext *GPUTest::context_;
35 prev_g_debug_ =
G.debug;
36 G.debug |= g_debug_flags;
41 GTEST_SKIP() <<
"GPU backend not supported";
49 ghost_context_ = ghost_system_->createOffscreenContext(gpu_settings);
50 ghost_context_->activateDrawingContext();
69 ghost_system_->disposeContext(ghost_context_);
75 G.debug = prev_g_debug_;
80 const ::testing::TestInfo *info = ::testing::UnitTest::GetInstance()->current_test_info();
82 ss << info->test_suite_name() <<
"." << info->name();
83 debug_group_name_ = ss.str();
GHOST_TDrawingContextType
static GHOST_TSuccess dispose()
static GHOST_ISystem * getSystem()
static GHOST_TSuccess disposeSystem()
static GHOST_TSuccess createSystemBackground()
static void TearDownTestSuite()
static void SetUpTestSuite(GHOST_TDrawingContextType draw_context_type, GPUBackendType gpu_backend_type, int32_t g_debug_flags)
GPUContext * GPU_context_create(GHOST_IWindow *ghost_window, GHOST_IContext *ghost_context)
void GPU_debug_capture_begin(const char *title)
void BLI_init_srgb_conversion()
void GPU_context_end_frame(GPUContext *ctx)
bool GPU_backend_supported()
void GPU_debug_capture_end()
void GPU_context_begin_frame(GPUContext *ctx)
void GPU_debug_group_end()
void GPU_backend_ghost_system_set(GHOST_ISystem *ghost_system_handle)
void GPU_backend_type_selection_set(const GPUBackendType backend)
void GPU_context_discard(GPUContext *)
void GPU_debug_group_begin(const char *name)
GHOST_TDrawingContextType context_type