]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture2d_backend.cpp
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / texture2d_backend.cpp
diff --git a/source/backends/vulkan/texture2d_backend.cpp b/source/backends/vulkan/texture2d_backend.cpp
new file mode 100644 (file)
index 0000000..a80e1f9
--- /dev/null
@@ -0,0 +1,33 @@
+#include "texture2d_backend.h"
+#include "vulkan.h"
+
+using namespace std;
+
+namespace Msp {
+namespace GL {
+
+VulkanTexture2D::VulkanTexture2D():
+       Texture(VK_IMAGE_VIEW_TYPE_2D)
+{ }
+
+void VulkanTexture2D::sub_image(unsigned, int, int, unsigned, unsigned, const void *)
+{
+       throw logic_error("Texture2D::sub_image is unimplemented");
+}
+
+Resource::AsyncLoader *VulkanTexture2D::load(IO::Seekable &, const Resources *)
+{
+       throw logic_error("Texture2D::load is unimplemented");
+}
+
+uint64_t VulkanTexture2D::get_data_size() const
+{
+       return 0;
+}
+
+void VulkanTexture2D::unload()
+{
+}
+
+} // namespace GL
+} // namespace Msp