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

#include <test_host.h>

Inheritance diagram for TestHost:
Collaboration diagram for TestHost:

Public Member Functions

 TestHost (std::shared_ptr< FTPLogger > ftp_logger, uint32_t framebuffer_width, uint32_t framebuffer_height, uint32_t max_texture_width, uint32_t max_texture_height, uint32_t max_texture_depth=4)
 
void FinishDraw (bool allow_saving, const std::string &output_directory, const std::string &suite_name, const std::string &name, bool save_zbuffer=false)
 Marks drawing as completed, potentially causing artifacts (framebuffer, z/stencil-buffer) to be saved to disk.
 
bool GetSaveResults () const
 Returns the current override flag to allow/prevent artifact saving.
 
void SetSaveResults (bool enable=true)
 Sets the override flag to prevent artifact saving during FinishDraw.
 
std::string SaveZBuffer (const std::string &output_directory, const std::string &name) const
 Saves the Z/Stencil buffer to the filesystem/.
 

Static Public Member Functions

static std::string SaveTexture (const std::string &output_directory, const std::string &name, const uint8_t *texture, uint32_t width, uint32_t height, uint32_t pitch, uint32_t bits_per_pixel, SDL_PixelFormatEnum format)
 Saves the given texture to the filesystem as a PNG file.
 
static std::string SaveRawTexture (const std::string &output_directory, const std::string &name, const uint8_t *texture, uint32_t width, uint32_t height, uint32_t pitch, uint32_t bits_per_pixel)
 Saves the given region of memory as a flat binary file.
 
static void EnsureFolderExists (const std::string &folder_path)
 Creates the given directory if it does not already exist.
 

Detailed Description

Provides utility methods for use by TestSuite subclasses.


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