]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/texture2darray_backend.cpp
Implement textures and samplers for Vulkan
[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->mipLevels = levels;
18         image_info->arrayLayers = depth;
19 }
20
21 } // namespace GL
22 } // namespace Msp