nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_border_tests.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_BORDER_TESTS_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_BORDER_TESTS_H
3
4#include <string>
5
6#include "test_host.h"
7#include "test_suite.h"
8
9namespace PBKitPlusPlus {
10class VertexBuffer;
11}
12
13using namespace PBKitPlusPlus;
14
16 public:
17 TextureBorderTests(TestHost &host, std::string output_dir, const Config &config);
18
19 void Initialize() override;
20
21 private:
22 void CreateGeometry();
23
24 void Test2D();
25 void TestXemu1034();
26 void Test2DBorderedSwizzled();
27 // void Test2DPalettized();
28
29 void Test3DBorderedSwizzled(const std::string &name, uint32_t width, uint32_t height);
30 void TestCubemapBorderedSwizzled(const std::string &name, uint32_t width, uint32_t height);
31
32 void GenerateBordered3DSurface(uint8_t *texture_memory, uint32_t width, uint32_t height, uint32_t depth,
33 bool swizzle) const;
34 void GenerateBorderedCubemapSurface(uint8_t *texture_memory, uint32_t width, uint32_t height, bool swizzle) const;
35
36 private:
37 std::shared_ptr<VertexBuffer> vertex_buffers_[6];
38};
39
40#endif // NXDK_PGRAPH_TESTS_TEXTURE_BORDER_TESTS_H
Definition test_host.h:33
Definition test_suite.h:20
Definition texture_border_tests.h:15
void Initialize() override
Called to initialize the test suite.
Definition texture_border_tests.cpp:107
Runtime configuration for TestSuites.
Definition test_suite.h:23