This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/tests/gpu_testing.hh

28 lines
480 B
C++

#include "testing/testing.h"
#include "GHOST_C-api.h"
struct GPUContext;
namespace blender::gpu {
/* Test class that setups a GPUContext for test cases.
*
* Usage:
* TEST_F(GPUTest, my_gpu_test) {
* ...
* }
*/
class GPUTest : public ::testing::Test {
private:
GHOST_SystemHandle ghost_system;
GHOST_ContextHandle ghost_context;
struct GPUContext *context;
protected:
void SetUp() override;
void TearDown() override;
};
} // namespace blender::gpu