From 4123d42aee69537f6fcede748a5d7b88277ef4af Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 18:39:09 +1100 Subject: functions to destroy objects immediately --- video.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video.hpp') 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 { -- cgit v1.2.3-54-g00ecf