From 19f6f130f9bc60cb89155dcff11c34c52714416f Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 30 Dec 2024 10:17:36 +1100 Subject: Staged_Buffer --- video.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'video.hpp') diff --git a/video.hpp b/video.hpp index aa196a7..60127f3 100644 --- a/video.hpp +++ b/video.hpp @@ -492,4 +492,21 @@ struct Shader : public Asset { int descriptor_stage(int slot); }; +struct Staged_Buffer { + Buffer_Id stage; + Buffer_Id gpuonly; + int size; + + void init( + Device* dev, + const char* name, + int size, + int flags + ); + void destroy(Device* dev); + void* map(Device* dev); + void unmap(Device* dev); + void update(Context& ctx); +}; + #endif -- cgit v1.2.3-54-g00ecf