|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| uint32_t | size |
| mln_logical_size | logical_size |
| uint32_t | physical_width |
| uint32_t | physical_height |
| mln_vulkan_context_descriptor | context |
| const mln_vulkan_borrowed_texture * | textures |
| size_t | texture_count |
| uint32_t | format |
| uint32_t | final_layout |
| mln_vulkan_image_owner | owner |
A ring of your Vulkan images, for mln_map_attach_vulkan_borrowed_texture().
logical_size sets the map's size. physical_width and physical_height give the images' size in pixels, which is usually logical_size times the map's scale factor. Each image must have that size, format, and VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, and belong to the context's device. The ring holds up to MLN_TEXTURE_RING_MAX_DEPTH distinct images.
The session uses the images until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.
| mln_vulkan_context_descriptor mln_vulkan_borrowed_texture_descriptor::context |
| uint32_t mln_vulkan_borrowed_texture_descriptor::final_layout |
The VkImageLayout that each frame leaves its image in.
| uint32_t mln_vulkan_borrowed_texture_descriptor::format |
The images' VkFormat.
| mln_logical_size mln_vulkan_borrowed_texture_descriptor::logical_size |
| mln_vulkan_image_owner mln_vulkan_borrowed_texture_descriptor::owner |
| uint32_t mln_vulkan_borrowed_texture_descriptor::physical_height |
| uint32_t mln_vulkan_borrowed_texture_descriptor::physical_width |
| uint32_t mln_vulkan_borrowed_texture_descriptor::size |
| size_t mln_vulkan_borrowed_texture_descriptor::texture_count |
| const mln_vulkan_borrowed_texture* mln_vulkan_borrowed_texture_descriptor::textures |