1 #include "frameformat.h"
2 #include "texture2dmultisample.h"
3 #include "texture2dmultisample_backend.h"
9 VulkanTexture2DMultisample::VulkanTexture2DMultisample():
10 Texture(VK_IMAGE_TYPE_2D)
12 throw std::logic_error("VulkanTexture2DMultisample is unimplemented");
15 void VulkanTexture2DMultisample::fill_image_info(void *ii) const
17 const Texture2DMultisample &self = *static_cast<const Texture2DMultisample *>(this);
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));
26 size_t VulkanTexture2DMultisample::get_data_size() const