MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
texture.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_TEXTURE_H
7#define MAPLIBRE_NATIVE_C_TEXTURE_H
8
9#include <stddef.h>
10#include <stdint.h>
11
12#include "base.h"
13#include "render_target.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
27
51
54 uint32_t size;
56 uint64_t generation;
58 uint32_t width;
60 uint32_t height;
64 uint64_t frame_id;
66 void* texture;
68 void* device;
70 uint64_t pixel_format;
72
81
130
133 uint32_t size;
135 uint64_t generation;
137 uint32_t width;
139 uint32_t height;
143 uint64_t frame_id;
145 void* image;
149 void* device;
151 uint32_t format;
153 uint32_t layout;
155
167
203
206 uint32_t size;
208 uint64_t generation;
210 uint32_t width;
212 uint32_t height;
216 uint64_t frame_id;
218 uint32_t texture;
220 uint32_t target;
224 uint32_t format;
226 uint32_t type;
228
231 uint32_t size;
233 uint32_t width;
235 uint32_t height;
237 uint32_t stride;
241
247
253
259
265
271
277
283
305 mln_map* map, const mln_metal_owned_texture_descriptor* descriptor,
306 mln_render_session** out_session
307) MLN_NOEXCEPT;
308
335 mln_map* map, const mln_metal_borrowed_texture_descriptor* descriptor,
336 mln_render_session** out_session
337) MLN_NOEXCEPT;
338
361 mln_map* map, const mln_vulkan_owned_texture_descriptor* descriptor,
362 mln_render_session** out_session
363) MLN_NOEXCEPT;
364
399 mln_map* map, const mln_vulkan_borrowed_texture_descriptor* descriptor,
400 mln_render_session** out_session
401) MLN_NOEXCEPT;
402
426 mln_map* map, const mln_opengl_owned_texture_descriptor* descriptor,
427 mln_render_session** out_session
428) MLN_NOEXCEPT;
429
459 mln_map* map, const mln_opengl_borrowed_texture_descriptor* descriptor,
460 mln_render_session** out_session
461) MLN_NOEXCEPT;
462
488 mln_render_session* session, uint8_t* out_data, size_t out_data_capacity,
489 mln_texture_image_info* out_info
490) MLN_NOEXCEPT;
491
515 mln_render_session* session, mln_metal_owned_texture_frame* out_frame
516) MLN_NOEXCEPT;
517
533 mln_render_session* session, const mln_metal_owned_texture_frame* frame
534) MLN_NOEXCEPT;
535
558 mln_render_session* session, mln_vulkan_owned_texture_frame* out_frame
559) MLN_NOEXCEPT;
560
576 mln_render_session* session, const mln_vulkan_owned_texture_frame* frame
577) MLN_NOEXCEPT;
578
606 mln_render_session* session, mln_opengl_owned_texture_frame* out_frame
607) MLN_NOEXCEPT;
608
625 mln_render_session* session, const mln_opengl_owned_texture_frame* frame
626) MLN_NOEXCEPT;
627
628#ifdef __cplusplus
629}
630#endif
631
632#endif // MAPLIBRE_NATIVE_C_TEXTURE_H
mln_status
Definition base.h:39
uint32_t physical_height
Definition texture.h:40
void * texture
Definition texture.h:49
uint32_t physical_width
Definition texture.h:38
mln_render_target_extent extent
Definition texture.h:36
Definition render_target.h:29
Definition texture.h:20
mln_render_target_extent extent
Definition texture.h:23
mln_metal_context_descriptor context
Definition texture.h:25
Definition texture.h:53
uint64_t pixel_format
Definition texture.h:70
uint64_t frame_id
Definition texture.h:64
uint32_t width
Definition texture.h:58
void * device
Definition texture.h:68
void * texture
Definition texture.h:66
uint64_t generation
Definition texture.h:56
double scale_factor
Definition texture.h:62
uint32_t height
Definition texture.h:60
uint32_t physical_height
Definition texture.h:180
uint32_t physical_width
Definition texture.h:178
uint32_t texture
Definition texture.h:199
uint32_t target
Definition texture.h:201
mln_opengl_context_descriptor context
Definition texture.h:185
mln_render_target_extent extent
Definition texture.h:176
Definition render_target.h:100
Definition texture.h:157
mln_opengl_context_descriptor context
Definition texture.h:165
mln_render_target_extent extent
Definition texture.h:160
Definition texture.h:205
uint32_t internal_format
Definition texture.h:222
uint32_t format
Definition texture.h:224
double scale_factor
Definition texture.h:214
uint32_t width
Definition texture.h:210
uint32_t type
Definition texture.h:226
uint32_t texture
Definition texture.h:218
uint64_t generation
Definition texture.h:208
uint64_t frame_id
Definition texture.h:216
uint32_t height
Definition texture.h:212
uint32_t target
Definition texture.h:220
Definition render_target.h:18
Definition texture.h:230
uint32_t width
Definition texture.h:233
size_t byte_length
Definition texture.h:239
uint32_t stride
Definition texture.h:237
uint32_t height
Definition texture.h:235
void * image
Definition texture.h:110
uint32_t final_layout
Definition texture.h:128
uint32_t physical_height
Definition texture.h:94
uint32_t initial_layout
Definition texture.h:126
uint32_t physical_width
Definition texture.h:92
mln_render_target_extent extent
Definition texture.h:90
uint32_t format
Definition texture.h:119
mln_vulkan_context_descriptor context
Definition texture.h:96
void * image_view
Definition texture.h:116
Definition render_target.h:36
mln_render_target_extent extent
Definition texture.h:77
mln_vulkan_context_descriptor context
Definition texture.h:79
Definition texture.h:132
void * device
Definition texture.h:149
uint32_t height
Definition texture.h:139
void * image_view
Definition texture.h:147
uint64_t generation
Definition texture.h:135
void * image
Definition texture.h:145
uint64_t frame_id
Definition texture.h:143
uint32_t format
Definition texture.h:151
uint32_t layout
Definition texture.h:153
double scale_factor
Definition texture.h:141
uint32_t width
Definition texture.h:137
mln_status mln_opengl_borrowed_texture_attach(mln_map *map, const mln_opengl_borrowed_texture_descriptor *descriptor, mln_render_session **out_session)
mln_metal_owned_texture_descriptor mln_metal_owned_texture_descriptor_default(void)
mln_status mln_opengl_owned_texture_release_frame(mln_render_session *session, const mln_opengl_owned_texture_frame *frame)
mln_status mln_vulkan_borrowed_texture_attach(mln_map *map, const mln_vulkan_borrowed_texture_descriptor *descriptor, mln_render_session **out_session)
mln_status mln_metal_owned_texture_release_frame(mln_render_session *session, const mln_metal_owned_texture_frame *frame)
mln_status mln_texture_read_premultiplied_rgba8(mln_render_session *session, uint8_t *out_data, size_t out_data_capacity, mln_texture_image_info *out_info)
mln_status mln_vulkan_owned_texture_attach(mln_map *map, const mln_vulkan_owned_texture_descriptor *descriptor, mln_render_session **out_session)
mln_status mln_metal_borrowed_texture_attach(mln_map *map, const mln_metal_borrowed_texture_descriptor *descriptor, mln_render_session **out_session)
mln_status mln_opengl_owned_texture_acquire_frame(mln_render_session *session, mln_opengl_owned_texture_frame *out_frame)
mln_vulkan_owned_texture_descriptor mln_vulkan_owned_texture_descriptor_default(void)
mln_status mln_metal_owned_texture_acquire_frame(mln_render_session *session, mln_metal_owned_texture_frame *out_frame)
mln_texture_image_info mln_texture_image_info_default(void)
mln_vulkan_borrowed_texture_descriptor mln_vulkan_borrowed_texture_descriptor_default(void)
mln_status mln_opengl_owned_texture_attach(mln_map *map, const mln_opengl_owned_texture_descriptor *descriptor, mln_render_session **out_session)
mln_status mln_vulkan_owned_texture_release_frame(mln_render_session *session, const mln_vulkan_owned_texture_frame *frame)
mln_opengl_owned_texture_descriptor mln_opengl_owned_texture_descriptor_default(void)
mln_status mln_vulkan_owned_texture_acquire_frame(mln_render_session *session, mln_vulkan_owned_texture_frame *out_frame)
mln_status mln_metal_owned_texture_attach(mln_map *map, const mln_metal_owned_texture_descriptor *descriptor, mln_render_session **out_session)
mln_metal_borrowed_texture_descriptor mln_metal_borrowed_texture_descriptor_default(void)
mln_opengl_borrowed_texture_descriptor mln_opengl_borrowed_texture_descriptor_default(void)