20 #include "../context.h"
22 #include "../bitmap/abstract_bitmap.h"
A very basic class for any image.
Stores references to GPU resources that will not be used anymore and needed to be recycled in a threa...
const size_t outputBufferSize
bool processOnGPU(GraphicPipeline &gpu, TaskThread &thread)
Executes the task on GPU.
StorageBufferFetcher(StorageBuffer &buffer, void *outputBuffer, size_t outputBufferSize)
void fetch(GraphicPipeline &gpu, void *data, size_t limit)
GL::RecycleBin & recycleBin
StorageBuffer(GL::RecycleBin &recycleBin)
void bind(GraphicPipeline &gpu, int unit) const
void allocate(GraphicPipeline &gpu, const size_t sizeBytes, const void *data=nullptr)
size_t getCurrentCapacity() const
void fetchToBitmap(GraphicPipeline &gpu, size_t offset, size_t stride, AbstractBitmap &bitmap)
Copies buffer content to a bitmap.
void allocateStatic(GraphicPipeline &gpu, const size_t sizeBytes, const void *data)
Template of a task using GPU.
Internal low-level GPU control API.
unsigned int handle_t
A reference to a GPU resource.
Beatmup::InternalBitmap * bitmap