nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
Loading...
Searching...
No Matches
texture_projective_2d_tests.h
1
#ifndef NXDK_PGRAPH_TESTS_TEXTURE_PROJECTIVE_2D_TESTS_H
2
#define NXDK_PGRAPH_TESTS_TEXTURE_PROJECTIVE_2D_TESTS_H
3
4
#include <memory>
5
#include <string>
6
7
#include "test_host.h"
8
#include "test_suite.h"
9
10
struct
TexCoord4
{
11
float
s, t, r, q;
12
};
13
18
class
TextureProjective2DTests
:
public
TestSuite
{
19
public
:
20
struct
TestConfig
{
21
const
char
*test_name;
22
const
char
*description;
23
TexCoord4
corners[4];
24
bool
draw_quad{
true
};
25
const
char
*notes_line1{
nullptr
};
26
};
27
28
TextureProjective2DTests
(
TestHost
&host, std::string output_dir,
const
Config
&config);
29
30
void
Initialize
()
override
;
31
32
private
:
33
void
TestExplicitQ(
const
TestConfig
&config);
34
void
TestUniformSigns();
35
36
void
GenerateTestTexture();
37
38
private
:
39
static
constexpr
uint32_t kTextureSize = 128;
40
};
41
42
#endif
// NXDK_PGRAPH_TESTS_TEXTURE_PROJECTIVE_2D_TESTS_H
TestHost
Definition
test_host.h:33
TestSuite
Definition
test_suite.h:21
TextureProjective2DTests
Definition
texture_projective_2d_tests.h:18
TextureProjective2DTests::Initialize
void Initialize() override
Called to initialize the test suite.
Definition
texture_projective_2d_tests.cpp:279
TestSuite::Config
Runtime configuration for TestSuites.
Definition
test_suite.h:24
TexCoord4
Definition
texture_projective_2d_tests.h:10
TextureProjective2DTests::TestConfig
Definition
texture_projective_2d_tests.h:20
src
tests
texture_projective_2d_tests.h
Generated by
1.9.8