Classes | |
class | BenchmarkReport |
Reports detailed benchmark statistics for GPU computation and rendering. More... | |
class | WorkGroupCount |
Represents the number of workgroups dispatched in each dimension. More... | |
Public Member Functions | |
Gpu ()=default | |
virtual void | run ()=0 |
virtual void | computeSettings (std::vector< WorkGroupCount > shaderWorkGroupCounts, bool runBenchmark)=0 |
virtual void | resize ()=0 |
virtual void | updateUniformBuffer (std::vector< std::uint32_t > buffer)=0 |
virtual void | updateUniform (std::string name, float value)=0 |
virtual void | setUniformLimits (std::string name, float minValue, float maxValue)=0 |
virtual void | printUniforms () const =0 |
virtual void | addToUniform (std::string name, float value)=0 |
virtual std::shared_ptr< Loader::Image > | resultTexture ()=0 |
virtual std::vector< float > | resultBuffer (std::size_t size=0)=0 |
virtual | ~Gpu ()=default |
const std::vector< BenchmarkReport > | benchmarkReports () const |
Returns the benchmark reports collected during execution. | |
Protected Attributes | |
bool | benchmark = false |
std::vector< BenchmarkReport > | benchmarks |
|
exportdefault |
|
exportvirtualdefault |
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
inlineexport |
Returns the benchmark reports collected during execution.
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
Implemented in Gpu::Vulkan.
|
exportpure virtual |
|
exportprotected |
|
exportprotected |