]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/texture2d_backend.cpp
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / texture2d_backend.cpp
1 #include "texture2d_backend.h"
2 #include "vulkan.h"
3
4 using namespace std;
5
6 namespace Msp {
7 namespace GL {
8
9 VulkanTexture2D::VulkanTexture2D():
10         Texture(VK_IMAGE_VIEW_TYPE_2D)
11 { }
12
13 void VulkanTexture2D::sub_image(unsigned, int, int, unsigned, unsigned, const void *)
14 {
15         throw logic_error("Texture2D::sub_image is unimplemented");
16 }
17
18 Resource::AsyncLoader *VulkanTexture2D::load(IO::Seekable &, const Resources *)
19 {
20         throw logic_error("Texture2D::load is unimplemented");
21 }
22
23 uint64_t VulkanTexture2D::get_data_size() const
24 {
25         return 0;
26 }
27
28 void VulkanTexture2D::unload()
29 {
30 }
31
32 } // namespace GL
33 } // namespace Msp