X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fswapchaintexture.cpp;fp=source%2Fbackends%2Fvulkan%2Fswapchaintexture.cpp;h=c5ccf2f28617549f39b2cc59039eee1952653872;hb=99ca354f18119f82f1adeca100cd665a8f640317;hp=0000000000000000000000000000000000000000;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309;p=libs%2Fgl.git diff --git a/source/backends/vulkan/swapchaintexture.cpp b/source/backends/vulkan/swapchaintexture.cpp new file mode 100644 index 00000000..c5ccf2f2 --- /dev/null +++ b/source/backends/vulkan/swapchaintexture.cpp @@ -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