X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Ftransferqueue.h;h=e78137fc4067701fc9a2168ffc6f5e673392e0cd;hb=a9b6dba74b595361df3d9c934e479ccf83ad91a1;hp=592bb69e1303458870842391c2d1ad41ba44049f;hpb=33253bf6d6a330181fda83ba23a6ac0a756d9a8d;p=libs%2Fgl.git diff --git a/source/backends/vulkan/transferqueue.h b/source/backends/vulkan/transferqueue.h index 592bb69e..e78137fc 100644 --- a/source/backends/vulkan/transferqueue.h +++ b/source/backends/vulkan/transferqueue.h @@ -22,6 +22,8 @@ private: std::size_t size = 0; std::size_t used = 0; void *mapped_address = 0; + unsigned async_count = 0; + unsigned last_frame = 0; StagingBuffer(Device &, std::size_t); StagingBuffer(StagingBuffer &&); @@ -46,6 +48,7 @@ private: std::vector transfers; std::vector async_transfers; std::map next_orders; + unsigned current_frame = 0; public: TransferQueue(Device &);