nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_format_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_TESTS_H
3
4#include <string>
5
6#include "test_host.h"
7#include "test_suite.h"
8
9namespace PBKitPlusPlus {
10struct TextureFormatInfo;
11}
12using namespace PBKitPlusPlus;
13
24 public:
25 TextureFormatTests(TestHost &host, std::string output_dir, const Config &config);
26
27 void Initialize() override;
28 void Deinitialize() override;
29
30 private:
31 void CreateGeometry();
32
34 void Test(const TextureFormatInfo &texture_format);
35
37 void TestPalettized(TestHost::PaletteSize size);
38
40 void TestXAlpha(const TextureFormatInfo &texture_format);
41
43 void TestDepth(const TextureFormatInfo &texture_format);
44
45 static std::string MakeTestName(const TextureFormatInfo &texture_format);
46 static std::string MakePalettizedTestName(TestHost::PaletteSize size);
47 static std::string MakeXAlphaTestName(const TextureFormatInfo &texture_format);
48 static std::string MakeDepthTestName(const TextureFormatInfo &texture_format);
49};
50
51#endif // NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_TESTS_H
Definition test_host.h:33
Definition test_suite.h:21
Tests sampling of NV2A texture formats, verifying color conversion, swizzling, and alpha channel hand...
Definition texture_format_tests.h:23
void Initialize() override
Called to initialize the test suite.
Definition texture_format_tests.cpp:277
void Deinitialize() override
Called to tear down the test suite.
Definition texture_format_tests.cpp:287
Runtime configuration for TestSuites.
Definition test_suite.h:24