nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
w_param_tests.h
1#ifndef NXDK_PGRAPH_TESTS_INF_TESTS_H
2#define NXDK_PGRAPH_TESTS_INF_TESTS_H
3
4#include "test_suite.h"
5
6class TestHost;
7namespace PBKitPlusPlus {
8class VertexBuffer;
9}
10
11class WParamTests : public TestSuite {
12 public:
13 WParamTests(TestHost& host, std::string output_dir, const Config& config);
14
15 void Initialize() override;
16 void Deinitialize() override;
17
18 private:
19 void CreateGeometryWGaps();
20 void TestWGaps(bool texture_perspective_enable);
21
22 void CreateGeometryPositiveWTriangleStrip();
23 void TestPositiveWTriangleStrip(bool texture_perspective_enable);
24
25 void CreateGeometryNegativeWTriangleStrip();
26 void TestNegativeWTriangleStrip(bool texture_perspective_enable);
27
28 void TestFixedFunctionZeroW(bool draw_quad, bool texture_perspective_enable);
29
30 private:
31 std::shared_ptr<PBKitPlusPlus::VertexBuffer> triangle_strip_;
32 std::shared_ptr<PBKitPlusPlus::VertexBuffer> triangles_;
33};
34
35#endif // NXDK_PGRAPH_TESTS_INF_TESTS_H
Definition test_host.h:33
Definition test_suite.h:20
Definition w_param_tests.h:11
void Initialize() override
Called to initialize the test suite.
Definition w_param_tests.cpp:48
void Deinitialize() override
Called to tear down the test suite.
Definition w_param_tests.cpp:54
Runtime configuration for TestSuites.
Definition test_suite.h:23