]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/texture1d_backend.h
Implement mipmap generation for the Vulkan backend
[libs/gl.git] / source / backends / vulkan / texture1d_backend.h
1 #ifndef MSP_GL_TEXTURE1D_BACKEND_H_
2 #define MSP_GL_TEXTURE1D_BACKEND_H_
3
4 #include "texture.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class VulkanTexture1D: public Texture
10 {
11 protected:
12         VulkanTexture1D();
13
14         virtual void fill_image_info(void *) const;
15         void sub_image(unsigned, int, unsigned, const void *);
16         virtual void generate_mipmap();
17         virtual void fill_mipmap_blit(unsigned, void *);
18
19 public:
20         virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
21         virtual std::size_t get_data_size() const;
22         virtual void unload() { }
23 };
24
25 using Texture1DBackend = VulkanTexture1D;
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif