nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
antialiasing_tests.h
1#ifndef NXDK_PGRAPH_TESTS_ANTIALIASING_TESTS_H
2#define NXDK_PGRAPH_TESTS_ANTIALIASING_TESTS_H
3
4#include <string>
5
6#include "configure.h"
7#include "test_host.h"
8#include "test_suite.h"
9
10namespace PBKitPlusPlus {
11struct TextureFormatInfo;
12class VertexBuffer;
13} // namespace PBKitPlusPlus
14
23 public:
24 struct Instruction {
25 const char *name;
26 const char *mask;
27 const char *swizzle;
28 const uint32_t instruction[4];
29 };
30
31 public:
32 AntialiasingTests(TestHost &host, std::string output_dir, const Config &config);
33
34 void Initialize() override;
35
36 private:
37 void Test(const char *name, TestHost::AntiAliasingSetting aa);
38 void TestAARenderToFramebufferSurface(const char *name, TestHost::AntiAliasingSetting aa);
39 void TestAAOnThenOffThenCPUWrite();
40 void TestModifyNonFramebufferSurface();
41 void TestFramebufferIsIndependentOfSurface();
42 void TestCPUWriteIgnoresSurfaceConfig();
43 void TestGPUAAWriteAfterCPUWrite();
44 void TestNonAACPURoundTrip();
45
46#ifdef ENABLE_MULTIFRAME_CPU_BLIT_TEST
47 // This test is only useful when viewing live and should generally be disabled.
48 void TestMultiframeCPUBlit();
49#endif
50
51 void Draw() const;
52 void NoOpDraw() const;
53 void WaitForGPU() const;
54};
55
56#endif // NXDK_PGRAPH_TESTS_ANTIALIASING_TESTS_H
Definition antialiasing_tests.h:22
void Initialize() override
Called to initialize the test suite.
Definition antialiasing_tests.cpp:101
Definition test_host.h:33
Definition test_suite.h:20
Definition antialiasing_tests.h:24
Runtime configuration for TestSuites.
Definition test_suite.h:23