nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_projective_2d_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_PROJECTIVE_2D_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_PROJECTIVE_2D_TESTS_H
3
4#include <memory>
5#include <string>
6
7#include "test_host.h"
8#include "test_suite.h"
9
10struct TexCoord4 {
11 float s, t, r, q;
12};
13
19 public:
20 struct TestConfig {
21 const char *test_name;
22 const char *description;
23 TexCoord4 corners[4];
24 bool draw_quad{true};
25 const char *notes_line1{nullptr};
26 };
27
28 TextureProjective2DTests(TestHost &host, std::string output_dir, const Config &config);
29
30 void Initialize() override;
31
32 private:
33 void TestExplicitQ(const TestConfig &config);
34 void TestUniformSigns();
35
36 void GenerateTestTexture();
37
38 private:
39 static constexpr uint32_t kTextureSize = 128;
40};
41
42#endif // NXDK_PGRAPH_TESTS_TEXTURE_PROJECTIVE_2D_TESTS_H
Definition test_host.h:33
Definition test_suite.h:21
Definition texture_projective_2d_tests.h:18
void Initialize() override
Called to initialize the test suite.
Definition texture_projective_2d_tests.cpp:279
Runtime configuration for TestSuites.
Definition test_suite.h:24
Definition texture_projective_2d_tests.h:10
Definition texture_projective_2d_tests.h:20