]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/texture2darray_backend.cpp
Minor tweaks to MemoryAllocator
[libs/gl.git] / source / backends / vulkan / texture2darray_backend.cpp
1 #include "texture2darray_backend.h"
2 #include "vulkan.h"
3
4 namespace Msp {
5 namespace GL {
6
7 VulkanTexture2DArray::VulkanTexture2DArray():
8         Texture3D(VK_IMAGE_VIEW_TYPE_2D_ARRAY)
9 { }
10
11 void VulkanTexture2DArray::fill_image_info(void *ii) const
12 {
13         VkImageCreateInfo *image_info = static_cast<VkImageCreateInfo *>(ii);
14         image_info->imageType = VK_IMAGE_TYPE_2D;
15         image_info->extent.width = width;
16         image_info->extent.height = height;
17         image_info->arrayLayers = depth;
18 }
19
20 } // namespace GL
21 } // namespace Msp