diff options
author | quou <quou@disroot.org> | 2024-12-30 10:17:36 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-30 10:17:36 +1100 |
commit | 19f6f130f9bc60cb89155dcff11c34c52714416f (patch) | |
tree | 40c007668dc7a3d5676a9ed45272cb658c1018a6 /video.hpp | |
parent | 6f3f76b8511dee30e835a998005adba57adebe17 (diff) |
Staged_Buffer
Diffstat (limited to 'video.hpp')
-rw-r--r-- | video.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |