nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
surface_as_vertex_array_tests.h
1#ifndef NXDK_PGRAPH_TESTS_SURFACE_AS_VERTEX_ARRAY_TESTS_H
2#define NXDK_PGRAPH_TESTS_SURFACE_AS_VERTEX_ARRAY_TESTS_H
3
4#include <memory>
5#include <string>
6
7#include "test_suite.h"
8
9namespace PBKitPlusPlus {
10class VertexBuffer;
11}
12
13class TestHost;
14
24 public:
25 SurfaceAsVertexArrayTests(TestHost &host, std::string output_dir, const Config &config);
26
27 void Initialize() override;
28 void Deinitialize() override;
29 void TearDownTest() override;
30
31 private:
32 void AllocateTestSurfaces(bool need_surface_b = false);
33 void FreeTestSurfaces();
34
35 void DrawQuads(const void *diffuse_surface);
36
39 void TestLinearDiffuseArray();
40
43 void TestSwizzledDiffuseArray();
44
46 void TestMultiStream();
47
49 void TestDynamicUpdateLoop();
50
53 void TestRenderScalePattern();
54
55 private:
56 uint8_t *surface_a_{nullptr};
57 uint8_t *surface_b_{nullptr};
58 std::shared_ptr<VertexBuffer> vertex_buffer_;
59};
60
61#endif // NXDK_PGRAPH_TESTS_SURFACE_AS_VERTEX_ARRAY_TESTS_H
Definition surface_as_vertex_array_tests.h:23
void Deinitialize() override
Called to tear down the test suite.
Definition surface_as_vertex_array_tests.cpp:252
void Initialize() override
Called to initialize the test suite.
Definition surface_as_vertex_array_tests.cpp:198
void TearDownTest() override
Called after running an individual test within this suite.
Definition surface_as_vertex_array_tests.cpp:259
Definition test_host.h:33
Definition test_suite.h:21
Runtime configuration for TestSuites.
Definition test_suite.h:24