Main application class for running compute and rendering pipelines. More...
Classes | |
class | Parameters |
Parameters configuring the behavior of the App. More... | |
Public Member Functions | |
App () | |
Constructs a new App instance. | |
void | run (Parameters const &inputParameters) |
Runs the compute and rendering pipelines based on provided parameters. | |
const Resolution | getImageResolution (std::string path) const |
Retrieves the resolution of an image file. | |
const Shader::Shader::Info::WorkGroupSize | getShaderWorkGroupSize (std::string path) const |
Retrieves the work group size defined in a shader file. | |
const Gpu::Gpu::WorkGroupCount | calculateWorkGroupCount (Shader::Shader::Info::WorkGroupSize workGroupSize, Shader::Shader::Info::ThreadCount threadCount) const |
Calculates the number of work groups needed for given work group size and thread count. | |
void | saveResultImage (std::string path) const |
Saves the first output texture to an image file. | |
std::vector< float > | resultBuffer (std::size_t size=0) const |
Retrieves the shader storage buffer result. | |
const std::vector< Gpu::Gpu::BenchmarkReport > | benchmarkReports () const |
Returns a list of benchmark reports with performance data. | |
~App () | |
Destroys the App instance and cleans up resources. | |
Main application class for running compute and rendering pipelines.
|
export |
Constructs a new App instance.
|
export |
Destroys the App instance and cleans up resources.
|
inlineexport |
Returns a list of benchmark reports with performance data.
|
export |
Calculates the number of work groups needed for given work group size and thread count.
workGroupSize | Size of a work group. |
threadCount | Number of threads to dispatch. |
|
export |
Retrieves the resolution of an image file.
path | Path to the image file. |
|
export |
Retrieves the work group size defined in a shader file.
path | Path to the shader file. |
|
inlineexport |
Retrieves the shader storage buffer result.
size | Number of floats to retrieve; if 0, returns the whole buffer. |
|
export |
Runs the compute and rendering pipelines based on provided parameters.
inputParameters | Parameters configuring the run. |
|
export |
Saves the first output texture to an image file.
path | Path where the image should be saved. |