From e25b20717523e579bb6f1e0d17b635c71bad6fab Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 23:28:00 +1100 Subject: resource names --- video.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'video.hpp') diff --git a/video.hpp b/video.hpp index c89c60a..aa196a7 100644 --- a/video.hpp +++ b/video.hpp @@ -419,6 +419,7 @@ struct Device { Context& get_ctx(); Texture_Id create_texture( + const char* name, Texture_Format fmt, int flags, int w, @@ -431,7 +432,11 @@ struct Device { void destroy_texture(Texture_Id id); void destroy_texturei(Texture_Id id); - Buffer_Id create_buffer(size_t size, int flags); + Buffer_Id create_buffer( + const char* name, + 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); @@ -445,7 +450,10 @@ struct Device { Shader& get_shader(Shader_Id id); - Sampler_Id create_sampler(const Sampler_State& state); + Sampler_Id create_sampler( + const char* name, + const Sampler_State& state + ); void destroy_sampler(Sampler_Id id); void destroy_sampleri(Sampler_Id id); }; -- cgit v1.2.3-54-g00ecf