The draw manager test case initialized ghost, gpu and draw manager. This change splits the base test case to GPU specific and draw manager specific test case. The GPU test base test case will be used for low level GPU tests.
27 lines
479 B
C++
27 lines
479 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
|