]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/texture2dmultisample_backend.cpp
4a81273b7d614e483946a4a358037d532b00f536
[libs/gl.git] / source / backends / vulkan / texture2dmultisample_backend.cpp
1 #include "frameformat.h"
2 #include "texture2dmultisample.h"
3 #include "texture2dmultisample_backend.h"
4 #include "vulkan.h"
5
6 namespace Msp {
7 namespace GL {
8
9 VulkanTexture2DMultisample::VulkanTexture2DMultisample():
10         Texture(VK_IMAGE_TYPE_2D)
11 {
12         throw std::logic_error("VulkanTexture2DMultisample is unimplemented");
13 }
14
15 void VulkanTexture2DMultisample::fill_image_info(void *ii) const
16 {
17         const Texture2DMultisample &self = *static_cast<const Texture2DMultisample *>(this);
18
19         VkImageCreateInfo *image_info = static_cast<VkImageCreateInfo *>(ii);
20         image_info->imageType = VK_IMAGE_TYPE_2D;
21         image_info->extent.width = self.width;
22         image_info->extent.height = self.height;
23         image_info->samples = static_cast<VkSampleCountFlagBits>(get_vulkan_samples(self.samples));
24 }
25
26 size_t VulkanTexture2DMultisample::get_data_size() const
27 {
28         return 0;
29 }
30
31 } // namespace GL
32 } // namespace Msp