X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Ftexture3d_backend.h;fp=source%2Fbackends%2Fvulkan%2Ftexture3d_backend.h;h=5a113ea06fbcebf614b2d6cc0dcce4851733024e;hb=99ca354f18119f82f1adeca100cd665a8f640317;hp=0000000000000000000000000000000000000000;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309;p=libs%2Fgl.git diff --git a/source/backends/vulkan/texture3d_backend.h b/source/backends/vulkan/texture3d_backend.h new file mode 100644 index 00000000..5a113ea0 --- /dev/null +++ b/source/backends/vulkan/texture3d_backend.h @@ -0,0 +1,30 @@ +#ifndef MSP_GL_TEXTURE3D_BACKEND_H_ +#define MSP_GL_TEXTURE3D_BACKEND_H_ + +#include "texture.h" + +namespace Msp { +namespace GL { + +class VulkanTexture3D: public Texture +{ +protected: + VulkanTexture3D(); + VulkanTexture3D(unsigned); + + void sub_image(unsigned, int, int, int, unsigned, unsigned, unsigned, const void *); + + bool is_array() const; + +public: + virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; } + virtual std::size_t get_data_size() const; + virtual void unload() { } +}; + +using Texture3DBackend = VulkanTexture3D; + +} // namespace GL +} // namespace Msp + +#endif