nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
TexgenTests Class Reference
Inheritance diagram for TexgenTests:
Collaboration diagram for TexgenTests:

Public Member Functions

 TexgenTests (TestHost &host, std::string output_dir, const Config &config)
 
void Initialize () override
 Called to initialize the test suite.
 
- Public Member Functions inherited from TestSuite
 TestSuite (TestHost &host, std::string output_dir, std::string suite_name, const Config &config, bool interactive_only=false)
 
const std::string & Name () const
 
virtual void Deinitialize ()
 Called to tear down the test suite.
 
virtual void SetupTest ()
 Called before running an individual test within this suite.
 
virtual void TearDownTest ()
 Called after running an individual test within this suite.
 
void DisableTests (const std::set< std::string > &tests_to_skip)
 
std::vector< std::string > TestNames () const
 
bool HasEnabledTests () const
 
void Run (const std::string &test_name, uint32_t test_index=0, uint32_t total_tests=0)
 
void RunAll (bool include_interactive)
 
bool IsInteractiveOnly () const
 
void SetSavingAllowed (bool enable=true)
 

Additional Inherited Members

- Static Public Member Functions inherited from TestSuite
static void TagNV2ATrace (uint32_t num_nops)
 Inserts a pattern of NV097_NO_OPERATION's into the pushbuffer to allow identification when viewing nv2a traces.
 
- Protected Member Functions inherited from TestSuite
void SetDefaultTextureFormat () const
 
void FinishDraw (const std::string &name, bool save_zbuffer=false)
 
void FinishDrawNoSave (const std::string &name, bool save_zbuffer=false)
 
- Protected Attributes inherited from TestSuite
TestHost & host_
 
std::string output_dir_
 
std::string suite_name_
 
bool interactive_only_
 
bool allow_saving_ {true}
 
std::map< std::string, std::function< void()> > tests_ {}
 
std::set< std::string > interactive_only_tests_ {}
 
PGRAPHDiffToken pgraph_diff_
 
bool enable_progress_log_
 
bool enable_pgraph_region_diff_
 
uint32_t delay_milliseconds_between_tests_
 
std::shared_ptr< FTPLogger > ftp_logger_
 

Constructor & Destructor Documentation

◆ TexgenTests()

TexgenTests::TexgenTests ( TestHost &  host,
std::string  output_dir,
const Config &  config 
)
Remarks
Disabled TexGen is disabled with NV097_SET_TEXGEN_VIEW_MODEL_LOCAL_VIEWER. Tests default texcoords with local viewer model.
Disabled_InfiniteViewer TexGen is disabled with NV097_SET_TEXGEN_VIEW_MODEL_INFINITE_VIEWER. Tests default texcoords with infinite viewer model.
EyeLinear Tests EyeLinear TexGen with NV097_SET_TEXGEN_VIEW_MODEL_LOCAL_VIEWER. Coordinates are generated from eye-space vertex positions using eye plane equations.
EyeLinear_InfiniteViewer Tests EyeLinear TexGen with NV097_SET_TEXGEN_VIEW_MODEL_INFINITE_VIEWER. Coordinates are generated from eye-space vertex positions using eye plane equations; the viewer model should not affect coordinate generation.
ObjectLinear Tests ObjectLinear TexGen with NV097_SET_TEXGEN_VIEW_MODEL_LOCAL_VIEWER. Coordinates are generated from object-space vertex positions using object plane equations.
ObjectLinear_InfiniteViewer Tests ObjectLinear TexGen with NV097_SET_TEXGEN_VIEW_MODEL_INFINITE_VIEWER. Coordinates are generated from object-space vertex positions using object plane equations; the viewer model should not affect coordinate generation.
ReflectionMap Tests ReflectionMap TexGen with NV097_SET_TEXGEN_VIEW_MODEL_LOCAL_VIEWER. Reflection vectors are computed using a local viewer model where the eye vector originates from (0,0,0,1) towards the vertex.
ReflectionMap_InfiniteViewer Tests ReflectionMap TexGen with NV097_SET_TEXGEN_VIEW_MODEL_INFINITE_VIEWER. Reflection vectors are computed using an infinite parallel viewer model with a fixed direction along the +Z axis.
SphereMap.png Tests SphereMap TexGen with NV097_SET_TEXGEN_VIEW_MODEL_LOCAL_VIEWER. Sphere map vectors are computed using a local viewer model where the eye vector originates from (0,0,0,1) towards the vertex.
SphereMap_InfiniteViewer.png Tests SphereMap TexGen with NV097_SET_TEXGEN_VIEW_MODEL_INFINITE_VIEWER. Sphere map vectors are computed using an infinite parallel viewer model with a fixed direction along the +Z axis.

Member Function Documentation

◆ Initialize()

void TexgenTests::Initialize ( )
overridevirtual

Called to initialize the test suite.

Reimplemented from TestSuite.


The documentation for this class was generated from the following files: