]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture1d_backend.cpp
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / texture1d_backend.cpp
diff --git a/source/backends/vulkan/texture1d_backend.cpp b/source/backends/vulkan/texture1d_backend.cpp
new file mode 100644 (file)
index 0000000..8cc43f3
--- /dev/null
@@ -0,0 +1,22 @@
+#include "texture1d_backend.h"
+#include "vulkan.h"
+
+namespace Msp {
+namespace GL {
+
+VulkanTexture1D::VulkanTexture1D():
+       Texture(VK_IMAGE_VIEW_TYPE_1D)
+{
+       throw std::logic_error("VulkanTexture1D is unimplemented");
+}
+
+void VulkanTexture1D::sub_image(unsigned, int, unsigned, const void *)
+{ }
+
+size_t VulkanTexture1D::get_data_size() const
+{
+       return 0;
+}
+
+} // namespace GL
+} // namespace Msp