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

#include <fog_param_tests.h>

Inheritance diagram for FogParamTests:
Collaboration diagram for FogParamTests:

Public Member Functions

 FogParamTests (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 NV097_SET_FOG_PARAMS.

Note that the 3rd parameter to SET_FOG_PARAMS always appears to be set to 0.0 in practice and alternative values do not appear to have any effect. Non-zero values are omitted from these tests for brevity.

Constructor & Destructor Documentation

◆ FogParamTests()

FogParamTests::FogParamTests ( TestHost host,
std::string  output_dir,
const Config config 
)
Remarks
FogZeroBias-exp2_abs Tests the bias parameter for NV097_SET_FOG_MODE_V_EXP2_ABS. Renders a series of quads and increments the bias fog param by 0.005 for each, starting at 1.0. The multiplier params are set to 0 so the fog coord (1.0) is irrelevant.

Indicates that the zero point is 1.5

Remarks
FogZeroBias-exp2 Tests the bias parameter for NV097_SET_FOG_MODE_V_EXP2. Renders a series of quads and increments the bias fog param by 0.005 for each, starting at 1.0. The multiplier params are set to 0 so the fog coord (1.0) is irrelevant.

Indicates that the zero point is 1.5

Remarks
FogZeroBias-exp_abs Tests the bias parameter for NV097_SET_FOG_MODE_V_EXP_ABS. Renders a series of quads and increments the bias fog param by 0.005 for each, starting at 1.0. The multiplier params are set to 0 so the fog coord (1.0) is irrelevant.

Indicates that the zero point is ~1.5075

Remarks
FogZeroBias-exp Tests the bias parameter for NV097_SET_FOG_MODE_V_EXP. Renders a series of quads and increments the bias fog param by 0.005 for each, starting at 1.0. The multiplier params are set to 0 so the fog coord (1.0) is irrelevant.

Indicates that the zero point is 1.51

Remarks
FogZeroBias-lin_abs Tests the bias parameter for NV097_SET_FOG_MODE_V_LINEAR_ABS. Renders a series of quads and increments the bias fog param by 0.005 for each, starting at 1.0. The multiplier params are set to 0 so the fog coord (1.0) is irrelevant.

Indicates that the zero point is 2.0

Remarks
FogZeroBias-lin Tests the bias parameter for NV097_SET_FOG_MODE_V_LINEAR. Renders a series of quads and increments the bias fog param by 0.005 for each, starting at 1.0. The multiplier params are set to 0 so the fog coord (1.0) is irrelevant.

Indicates that the zero point is 2.0

Remarks
FogParam-0.25-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to -0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.25-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to 0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.25-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to -0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.25-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to 0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.25-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to -0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.25-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to 0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.25-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to -0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.25-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to 0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.25-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to -0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.25-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to 0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.25-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to -0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.25-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to 0.25. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.50-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to -0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.50-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to XXXX. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.50-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to -0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.50-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to 0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.50-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to -0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.50-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to 0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.50-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to -0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.50-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to 0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.50-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to -0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.50-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to 0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-0.50-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to -0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam0.50-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to 0.50. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-1.00-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to -1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam1.00-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to 1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-1.00-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to -1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam1.00-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to 1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-1.00-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to -1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam1.00-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to 1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-1.00-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to -1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam1.00-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to 1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-1.00-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to -1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam1.00-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to 1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-1.00-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to -1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam1.00-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to 1.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-2.00-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to -2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam2.00-exp2_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP2_ABS with the bias param set to the zero point for the type and the multiplier set to 2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-2.00-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to -2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam2.00-exp2 Tests fog mode NV097_SET_FOG_MODE_V_EXP2 with the bias param set to the zero point for the type and the multiplier set to 2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-2.00-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to -2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam2.00-exp_abs Tests fog mode NV097_SET_FOG_MODE_V_EXP_ABS with the bias param set to the zero point for the type and the multiplier set to 2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-2.00-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to -2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam2.00-exp Tests fog mode NV097_SET_FOG_MODE_V_EXP with the bias param set to the zero point for the type and the multiplier set to 2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-2.00-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to -2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam2.00-lin_abs Tests fog mode NV097_SET_FOG_MODE_V_LINEAR_ABS with the bias param set to the zero point for the type and the multiplier set to 2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam-2.00-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to -2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.
FogParam2.00-lin Tests fog mode NV097_SET_FOG_MODE_V_LINEAR with the bias param set to the zero point for the type and the multiplier set to 2.0. Quads are rendered with fog coordinates starting at -1.4 and increasing by 0.01 per quad.

Member Function Documentation

◆ Initialize()

void FogParamTests::Initialize ( )
overridevirtual

Called to initialize the test suite.

Reimplemented from TestSuite.


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