diff options
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); }; |