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
11class VertexBuffer;
12
21 public:
22 struct Instruction {
23 const char *name;
24 const char *mask;
25 const char *swizzle;
26 const uint32_t instruction[4];
27 };
28
29 public:
30 AntialiasingTests(TestHost &host, std::string output_dir, const Config &config);
31
32 void Initialize() override;
33
34 private:
35 void Test(const char *name, TestHost::AntiAliasingSetting aa);
36 void TestAARenderToFramebufferSurface(const char *name, TestHost::AntiAliasingSetting aa);
37 void TestAAOnThenOffThenCPUWrite();
38 void TestModifyNonFramebufferSurface();
39 void TestFramebufferIsIndependentOfSurface();
40 void TestCPUWriteIgnoresSurfaceConfig();
41 void TestGPUAAWriteAfterCPUWrite();
42 void TestNonAACPURoundTrip();
43
44#ifdef ENABLE_MULTIFRAME_CPU_BLIT_TEST
45 // This test is only useful when viewing live and should generally be disabled.
46 void TestMultiframeCPUBlit();
47#endif
48
49 void Draw() const;
50 void NoOpDraw() const;
51 void WaitForGPU() const;
52};
53
54#endif // NXDK_PGRAPH_TESTS_ANTIALIASING_TESTS_H
Definition antialiasing_tests.h:20
void Initialize() override
Called to initialize the test suite.
Definition antialiasing_tests.cpp:101
Definition test_host.h:47
AntiAliasingSetting
Antialiasing settings for surfaces.
Definition test_host.h:225
Definition test_suite.h:20
Definition vertex_buffer.h:204
Definition antialiasing_tests.h:22
Runtime configuration for TestSuites.
Definition test_suite.h:23
Definition texture_format.h:8