nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_format_dxt_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_DXT_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_DXT_TESTS_H
3
4#include <string>
5
6#include "test_host.h"
7#include "test_suite.h"
8
10 public:
11 enum class CompressedTextureFormat {
12 DXT1 = NV097_SET_TEXTURE_FORMAT_COLOR_L_DXT1_A1R5G5B5,
13 DXT3 = NV097_SET_TEXTURE_FORMAT_COLOR_L_DXT23_A8R8G8B8,
14 DXT5 = NV097_SET_TEXTURE_FORMAT_COLOR_L_DXT45_A8R8G8B8,
15 };
16
17 public:
18 TextureFormatDXTTests(TestHost &host, std::string output_dir, const Config &config);
19 void Initialize() override;
20
21 private:
22 void Test(const char *filename, CompressedTextureFormat texture_format);
23 void TestMipmap(const char *filename, CompressedTextureFormat texture_format);
24 static std::string MakeTestName(const std::string &filename, CompressedTextureFormat texture_format,
25 bool mipmap = false);
26};
27
28#endif // NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_DXT_TESTS_H
Definition test_host.h:33
Definition test_suite.h:20
Definition texture_format_dxt_tests.h:9
void Initialize() override
Called to initialize the test suite.
Definition texture_format_dxt_tests.cpp:63
Runtime configuration for TestSuites.
Definition test_suite.h:23