diff options
author | quou <quou@disroot.org> | 2024-12-29 23:28:00 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 23:28:00 +1100 |
commit | e25b20717523e579bb6f1e0d17b635c71bad6fab (patch) | |
tree | dd7839c247b81554d0ea2f5207df0f52f0484637 /video.hpp | |
parent | 39fc0b5af67aa2dc0763394b0727e919840f9f57 (diff) |
resource names
Diffstat (limited to 'video.hpp')
-rw-r--r-- | video.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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); }; |