5#include "testing/testing.h"
23GHOST_SystemHandle GPUTest::ghost_system_;
24GHOST_ContextHandle GPUTest::ghost_context_;
25GPUContext *GPUTest::context_;
33 prev_g_debug_ =
G.debug;
34 G.debug |= g_debug_flags;
40 GTEST_SKIP() <<
"GPU backend not supported";
72 G.debug = prev_g_debug_;
77 const ::testing::TestInfo *info = ::testing::UnitTest::GetInstance()->current_test_info();
79 ss << info->test_suite_name() <<
"." << info->name();
80 debug_group_name_ = ss.str();
void BLI_init_srgb_conversion(void)
void BLI_threadapi_init(void)
GHOST C-API function and type declarations.
GHOST_ContextHandle GHOST_CreateGPUContext(GHOST_SystemHandle systemhandle, GHOST_GPUSettings gpu_settings)
GHOST_SystemHandle GHOST_CreateSystemBackground(void)
GHOST_TSuccess GHOST_ActivateGPUContext(GHOST_ContextHandle contexthandle)
GHOST_TSuccess GHOST_DisposeGPUContext(GHOST_SystemHandle systemhandle, GHOST_ContextHandle contexthandle)
GHOST_TSuccess GHOST_DisposeSystem(GHOST_SystemHandle systemhandle)
GHOST_TSuccess GHOST_DisposeSystemPaths()
GHOST_TDrawingContextType
GPUContext * GPU_context_create(void *ghost_window, void *ghost_context)
bool GPU_backend_supported()
void GPU_context_begin_frame(GPUContext *ctx)
void GPU_backend_type_selection_set(const GPUBackendType backend)
void GPU_context_discard(GPUContext *)
void GPU_context_end_frame(GPUContext *ctx)
void GPU_backend_ghost_system_set(void *ghost_system_handle)
void GPU_debug_group_end()
void GPU_debug_capture_end()
void GPU_debug_capture_begin(const char *title)
void GPU_debug_group_begin(const char *name)
static void TearDownTestSuite()
static void SetUpTestSuite(GHOST_TDrawingContextType draw_context_type, GPUBackendType gpu_backend_type, int32_t g_debug_flags)
GHOST_TDrawingContextType context_type