summaryrefslogtreecommitdiff
path: root/video.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'video.hpp')
-rw-r--r--video.hpp17
1 files changed, 17 insertions, 0 deletions
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