]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/texture3d_backend.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / texture3d_backend.h
1 #ifndef MSP_GL_TEXTURE3D_BACKEND_H_
2 #define MSP_GL_TEXTURE3D_BACKEND_H_
3
4 #include "texture.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class VulkanTexture3D: public Texture
10 {
11 protected:
12         VulkanTexture3D();
13         VulkanTexture3D(unsigned);
14
15         void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, const void *);
16
17         bool is_array() const;
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 Texture3DBackend = VulkanTexture3D;
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif