]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/swapchaintexture.cpp
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / swapchaintexture.cpp
diff --git a/source/backends/vulkan/swapchaintexture.cpp b/source/backends/vulkan/swapchaintexture.cpp
new file mode 100644 (file)
index 0000000..c5ccf2f
--- /dev/null
@@ -0,0 +1,18 @@
+#include "swapchaintexture.h"
+
+namespace Msp {
+namespace GL {
+
+SwapChainTexture::SwapChainTexture(PixelFormat f, unsigned w, unsigned h, VkImage i)
+{
+       handle = i;
+       storage(f, w, h, 1);
+}
+
+SwapChainTexture::~SwapChainTexture()
+{
+       handle = 0;
+}
+
+} // namespace GL
+} // namespace Msp