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

#include <vertex_buffer_allocation_tests.h>

Inheritance diagram for VertexBufferAllocationTests:
Collaboration diagram for VertexBufferAllocationTests:

Public Types

enum  DrawMode { DRAW_ARRAYS , DRAW_INLINE_BUFFERS , DRAW_INLINE_ARRAYS , DRAW_INLINE_ELEMENTS }
 

Public Member Functions

 VertexBufferAllocationTests (TestHost &host, std::string output_dir, const Config &config)
 
void Initialize () override
 Called to initialize the test suite.
 
void Deinitialize () override
 Called to tear down 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 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from TestSuite
TestHost::ProfileResults Profile (const std::string &test_name, uint32_t num_iterations, const std::function< void(void)> &body) const
 Runs the given body function a number of times and calculates profiling information.
 
void SetDefaultTextureFormat () const
 
- Protected Attributes inherited from TestSuite
TestHosthost_
 
std::string output_dir_
 
std::string suite_name_
 
std::map< std::string, std::function< void(void)> > tests_ {}
 

Detailed Description

Tests behavior of pathological xemu GL buffer allocations due to use of certain vertex specification methods.

Constructor & Destructor Documentation

◆ VertexBufferAllocationTests()

VertexBufferAllocationTests::VertexBufferAllocationTests ( TestHost host,
std::string  output_dir,
const Config config 
)

Initializes the test suite and creates test cases.

Remarks
MixedVtxAlloc-arrays Tests NV097_DRAW_ARRAYS with multiple successive draws using a variety of different vertex counts.
MixedVtxAlloc-inlinebuffers Tests immediate mode (e.g., NV097_SET_VERTEX3F) with multiple successive draws using a variety of different vertex counts.
MixedVtxAlloc-inlinearrays Tests NV097_INLINE_ARRAY with multiple successive draws using a variety of different vertex counts.
MixedVtxAlloc-inlineelements Tests NV097_ARRAY_ELEMENT16 / NV097_ARRAY_ELEMENT32 with multiple successive draws using a variety of different vertex counts.
TinyAlloc-arrays Tests NV097_DRAW_ARRAYS with a large number of single quad draws.
TinyAlloc-inlinebuffers Tests immediate mode (e.g., NV097_SET_VERTEX3F) with a large number of single quad draws.
TinyAlloc-inlinearrays Tests NV097_INLINE_ARRAY with a large number of single quad draws.
TinyAlloc-inlineelements Tests NV097_ARRAY_ELEMENT16 / NV097_ARRAY_ELEMENT32 with a large number of single quad draws.

Member Function Documentation

◆ Deinitialize()

void VertexBufferAllocationTests::Deinitialize ( )
overridevirtual

Called to tear down the test suite.

Reimplemented from TestSuite.

◆ Initialize()

void VertexBufferAllocationTests::Initialize ( )
overridevirtual

Called to initialize the test suite.

Reimplemented from TestSuite.


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