Beatmup
Beatmup::GL::StorageBufferFetcher Class Reference

#include <storage_buffer.h>

Inheritance diagram for Beatmup::GL::StorageBufferFetcher:
Beatmup::GpuTask Beatmup::AbstractTask Beatmup::Object

Public Member Functions

 StorageBufferFetcher (StorageBuffer &buffer, void *outputBuffer, size_t outputBufferSize)
 
- Public Member Functions inherited from Beatmup::AbstractTask
virtual void beforeProcessing (ThreadIndex threadCount, ProcessingTarget target, GraphicPipeline *gpu)
 Instruction called before the task is executed. More...
 
virtual void afterProcessing (ThreadIndex threadCount, GraphicPipeline *gpu, bool aborted)
 Instruction called after the task is executed. More...
 
- Public Member Functions inherited from Beatmup::Object
virtual ~Object ()
 

Private Member Functions

bool processOnGPU (GraphicPipeline &gpu, TaskThread &thread)
 Executes the task on GPU. More...
 

Private Attributes

StorageBufferbuffer
 
void * outputBuffer
 
const size_t outputBufferSize
 

Additional Inherited Members

- Public Types inherited from Beatmup::AbstractTask
enum class  TaskDeviceRequirement { CPU_ONLY , GPU_OR_CPU , GPU_ONLY }
 Specifies which device (CPU and/or GPU) is used to run the task. More...
 
- Static Public Member Functions inherited from Beatmup::AbstractTask
static ThreadIndex validThreadCount (int number)
 Valid thread count from a given integer value. More...
 

Detailed Description

Definition at line 52 of file storage_buffer.h.

Constructor & Destructor Documentation

◆ StorageBufferFetcher()

StorageBufferFetcher::StorageBufferFetcher ( StorageBuffer buffer,
void *  outputBuffer,
size_t  outputBufferSize 
)

Member Function Documentation

◆ processOnGPU()

bool StorageBufferFetcher::processOnGPU ( GraphicPipeline gpu,
TaskThread thread 
)
privatevirtual

Executes the task on GPU.

Parameters
gpugraphic pipeline instance
threadassociated task execution context
Returns
true if the execution is finished correctly, false otherwise

Reimplemented from Beatmup::AbstractTask.

Definition at line 130 of file storage_buffer.cpp.

130  {
132  return true;
133 }
void fetch(GraphicPipeline &gpu, void *data, size_t limit)

Member Data Documentation

◆ buffer

StorageBuffer& Beatmup::GL::StorageBufferFetcher::buffer
private

Definition at line 54 of file storage_buffer.h.

◆ outputBuffer

void* Beatmup::GL::StorageBufferFetcher::outputBuffer
private

Definition at line 55 of file storage_buffer.h.

◆ outputBufferSize

const size_t Beatmup::GL::StorageBufferFetcher::outputBufferSize
private

Definition at line 56 of file storage_buffer.h.


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