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
10
12 public:
13 TextureBorderTests(TestHost &host, std::string output_dir, const Config &config);
14
15 void Initialize() override;
16
17 private:
18 void CreateGeometry();
19
20 void Test2D();
21 void TestXemu1034();
22 void Test2DBorderedSwizzled();
23 // void Test2DPalettized();
24
25 void Test3DBorderedSwizzled(const std::string &name, uint32_t width, uint32_t height);
26 void TestCubemapBorderedSwizzled(const std::string &name, uint32_t width, uint32_t height);
27
28 void GenerateBordered3DSurface(uint8_t *texture_memory, uint32_t width, uint32_t height, uint32_t depth,
29 bool swizzle) const;
30 void GenerateBorderedCubemapSurface(uint8_t *texture_memory, uint32_t width, uint32_t height, bool swizzle) const;
31
32 private:
33 std::shared_ptr<VertexBuffer> vertex_buffers_[6];
34};
35
36#endif // NXDK_PGRAPH_TESTS_TEXTURE_BORDER_TESTS_H
Definition test_host.h:47
Definition test_suite.h:20
Definition texture_border_tests.h:11
void Initialize() override
Called to initialize the test suite.
Definition texture_border_tests.cpp:107
Runtime configuration for TestSuites.
Definition test_suite.h:23
Definition texture_format.h:8