|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| mln_render_target_extent | extent |
| mln_vulkan_context_descriptor | context |
| void * | image |
| void * | image_view |
| uint32_t | format |
| uint32_t | initial_layout |
| uint32_t | final_layout |
Vulkan caller-owned texture session attachment options.
| mln_vulkan_context_descriptor mln_vulkan_borrowed_texture_descriptor::context |
Borrowed Vulkan context. All handles are required.
| mln_render_target_extent mln_vulkan_borrowed_texture_descriptor::extent |
Logical texture extent.
| uint32_t mln_vulkan_borrowed_texture_descriptor::final_layout |
Backend-native VkImageLayout value left after rendering succeeds.
| uint32_t mln_vulkan_borrowed_texture_descriptor::format |
Backend-native VkFormat value for image. VK_FORMAT_UNDEFINED is invalid.
| void* mln_vulkan_borrowed_texture_descriptor::image |
Borrowed VkImage. Required.
The image must be a 2D, single-sample color image with VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT. Its physical dimensions must match extent. Include VK_IMAGE_USAGE_SAMPLED_BIT when the host will sample from the image after rendering.
| void* mln_vulkan_borrowed_texture_descriptor::image_view |
Borrowed VkImageView for image. Required.
The view must be a 2D color view that matches image and format.
| uint32_t mln_vulkan_borrowed_texture_descriptor::initial_layout |
Backend-native VkImageLayout value expected at render-pass begin.
Use VK_IMAGE_LAYOUT_UNDEFINED when the previous image contents may be discarded.