nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
FogExceptionalValueTests Class Reference

#include <fog_exceptional_value_tests.h>

Inheritance diagram for FogExceptionalValueTests:
Collaboration diagram for FogExceptionalValueTests:

Public Member Functions

 FogExceptionalValueTests (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)
 
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)
 
void RunAll ()
 
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
 
- Protected Attributes inherited from TestSuite
TestHosthost_
 
std::string output_dir_
 
std::string suite_name_
 
bool allow_saving_ {true}
 
std::map< std::string, std::function< void()> > tests_ {}
 
PGRAPHDiffToken pgraph_diff_
 
bool enable_progress_log_
 
bool enable_pgraph_region_diff_
 
uint32_t delay_milliseconds_between_tests_
 
std::shared_ptr< FTPLoggerftp_logger_
 

Detailed Description

Tests the effects of exceptional values (e.g., inf, nan) on the vertex fog coordinate. Fog is set to bright red.

Each test renders a series of blueish quads with their fog coordinate set to interesting test values to observe the resulting behavior.

Constructor & Destructor Documentation

◆ FogExceptionalValueTests()

FogExceptionalValueTests::FogExceptionalValueTests ( TestHost host,
std::string  output_dir,
const Config config 
)
Remarks
FogExc-exp-abs_planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP and fog generation mode NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR.
FogExc-exp-fog_x Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP and fog generation mode NV097_SET_FOG_GEN_MODE_V_FOG_X.
FogExc-exp-planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP and fog generation mode NV097_SET_FOG_GEN_MODE_V_PLANAR.
FogExc-exp-radial Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP and fog generation mode NV097_SET_FOG_GEN_MODE_V_RADIAL.
FogExc-exp-spec_alpha Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP and fog generation mode NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA.
FogExc-exp2-abs_planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2 and fog generation mode NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR.
FogExc-exp2-fog_x Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2 and fog generation mode NV097_SET_FOG_GEN_MODE_V_FOG_X.
FogExc-exp2-planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2 and fog generation mode NV097_SET_FOG_GEN_MODE_V_PLANAR.
FogExc-exp2-radial Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2 and fog generation mode NV097_SET_FOG_GEN_MODE_V_RADIAL.
FogExc-exp2-spec_alpha Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2 and fog generation mode NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA.
FogExc-exp2_abs-abs_planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR.
FogExc-exp2_abs-fog_x Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_FOG_X.
FogExc-exp2_abs-planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_PLANAR.
FogExc-exp2_abs-radial Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_RADIAL.
FogExc-exp2_abs-spec_alpha Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP2_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA.
FogExc-exp_abs-abs_planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR.
FogExc-exp_abs-fog_x Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_FOG_X.
FogExc-exp_abs-planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_PLANAR.
FogExc-exp_abs-radial Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_RADIAL.
FogExc-exp_abs-spec_alpha Tests various fog values with fog mode NV097_SET_FOG_MODE_V_EXP_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA.
FogExc-linear-abs_planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR and fog generation mode NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR.
FogExc-linear-fog_x Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR and fog generation mode NV097_SET_FOG_GEN_MODE_V_FOG_X.
FogExc-linear-planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR and fog generation mode NV097_SET_FOG_GEN_MODE_V_PLANAR.
FogExc-linear-radial Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR and fog generation mode NV097_SET_FOG_GEN_MODE_V_RADIAL.
FogExc-linear-spec_alpha Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR and fog generation mode NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA.
FogExc-linear_abs-abs_planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_ABS_PLANAR.
FogExc-linear_abs-fog_x Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_FOG_X.
FogExc-linear_abs-planar Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_PLANAR.
FogExc-linear_abs-radial Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_RADIAL.
FogExc-linear_abs-spec_alpha Tests various fog values with fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS and fog generation mode NV097_SET_FOG_GEN_MODE_V_SPEC_ALPHA.

Member Function Documentation

◆ Initialize()

void FogExceptionalValueTests::Initialize ( )
overridevirtual

Called to initialize the test suite.

Reimplemented from TestSuite.


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