nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
vertex_shader_swizzle_tests.h
1#ifndef NXDK_PGRAPH_TESTS_VERTEX_SHADER_SWIZZLE_TESTS_H
2#define NXDK_PGRAPH_TESTS_VERTEX_SHADER_SWIZZLE_TESTS_H
3
4#include <memory>
5#include <string>
6
7#include "test_host.h"
8#include "test_suite.h"
9
11class VertexBuffer;
12
14 public:
15 struct Instruction {
16 const char *name;
17 const char *mask;
18 const char *swizzle;
19 const uint32_t instruction[4];
20 };
21
22 public:
23 VertexShaderSwizzleTests(TestHost &host, std::string output_dir, const Config &config);
24
25 void Initialize() override;
26 void Deinitialize() override;
27
28 private:
29 void Test(const std::string &name, const Instruction *instructions, uint32_t count, bool full_opacity = false);
30
31 void DrawCheckerboardBackground() const;
32
33 private:
34 uint32_t *shader_code_{nullptr};
35 uint32_t shader_code_size_{0};
36};
37
38#endif // NXDK_PGRAPH_TESTS_VERTEX_SHADER_SWIZZLE_TESTS_H
Definition test_host.h:47
Definition test_suite.h:20
Definition vertex_buffer.h:204
Definition vertex_shader_swizzle_tests.h:13
void Deinitialize() override
Called to tear down the test suite.
Definition vertex_shader_swizzle_tests.cpp:387
void Initialize() override
Called to initialize the test suite.
Definition vertex_shader_swizzle_tests.cpp:375
Runtime configuration for TestSuites.
Definition test_suite.h:23
Definition texture_format.h:8
Definition vertex_shader_swizzle_tests.h:15