summaryrefslogtreecommitdiff
path: root/video.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 18:39:09 +1100
committerquou <quou@disroot.org>2024-12-29 18:39:51 +1100
commit4123d42aee69537f6fcede748a5d7b88277ef4af (patch)
tree2873af4aed3aba320ddb127b8dd2653f577bd57c /video.hpp
parentee50c66126d56d4b456046ed533f90abb0075363 (diff)
functions to destroy objects immediately
Diffstat (limited to 'video.hpp')
-rw-r--r--video.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/video.hpp b/video.hpp
index 523ded6..9a5dbe3 100644
--- a/video.hpp
+++ b/video.hpp
@@ -386,12 +386,14 @@ struct Device {
Texture_Id get_depth_target();
Texture& get_texture(Texture_Id id);
void destroy_texture(Texture_Id id);
+ void destroy_texturei(Texture_Id id);
Buffer_Id create_buffer(size_t size, int flags);
void* map_buffer(Buffer_Id id, size_t offset, size_t size);
void unmap_buffer(Buffer_Id id);
Buffer& get_buffer(Buffer_Id id);
void destroy_buffer(Buffer_Id id);
+ void destroy_bufferi(Buffer_Id id);
Vertex_Format_Id create_vertex_format(
const Vertex_Format_Desc& desc
@@ -402,6 +404,7 @@ struct Device {
Sampler_Id create_sampler(const Sampler_State& state);
void destroy_sampler(Sampler_Id id);
+ void destroy_sampleri(Sampler_Id id);
};
struct Context {