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
42
45 uint32_t size;
47 uint64_t generation;
49 uint32_t width;
51 uint32_t height;
55 uint64_t frame_id;
57 void* texture;
59 void* device;
61 uint64_t pixel_format;
63
72
108
111 uint32_t size;
113 uint64_t generation;
115 uint32_t width;
117 uint32_t height;
121 uint64_t frame_id;
123 void* image;
127 void* device;
129 uint32_t format;
131 uint32_t layout;
133
145
161
164 uint32_t size;
166 uint64_t generation;
168 uint32_t width;
170 uint32_t height;
174 uint64_t frame_id;
176 uint32_t texture;
178 uint32_t target;
182 uint32_t format;
184 uint32_t type;
186
189 uint32_t size;
191 uint32_t width;
193 uint32_t height;
195 uint32_t stride;
199
205
211
217
223
229
235
241
263 mln_map* map, const mln_metal_owned_texture_descriptor* descriptor,
264 mln_render_session** out_session
265) MLN_NOEXCEPT;
266
289 mln_map* map, const mln_metal_borrowed_texture_descriptor* descriptor,
290 mln_render_session** out_session
291) MLN_NOEXCEPT;
292
315 mln_map* map, const mln_vulkan_owned_texture_descriptor* descriptor,
316 mln_render_session** out_session
317) MLN_NOEXCEPT;
318
348 mln_map* map, const mln_vulkan_borrowed_texture_descriptor* descriptor,
349 mln_render_session** out_session
350) MLN_NOEXCEPT;
351
375 mln_map* map, const mln_opengl_owned_texture_descriptor* descriptor,
376 mln_render_session** out_session
377) MLN_NOEXCEPT;
378
401 mln_map* map, const mln_opengl_borrowed_texture_descriptor* descriptor,
402 mln_render_session** out_session
403) MLN_NOEXCEPT;
404
428 mln_render_session* session, uint8_t* out_data, size_t out_data_capacity,
429 mln_texture_image_info* out_info
430) MLN_NOEXCEPT;
431
454 mln_render_session* session, mln_metal_owned_texture_frame* out_frame
455) MLN_NOEXCEPT;
456
472 mln_render_session* session, const mln_metal_owned_texture_frame* frame
473) MLN_NOEXCEPT;
474
497 mln_render_session* session, mln_vulkan_owned_texture_frame* out_frame
498) MLN_NOEXCEPT;
499
515 mln_render_session* session, const mln_vulkan_owned_texture_frame* frame
516) MLN_NOEXCEPT;
517
540 mln_render_session* session, mln_opengl_owned_texture_frame* out_frame
541) MLN_NOEXCEPT;
542
559 mln_render_session* session, const mln_opengl_owned_texture_frame* frame
560) MLN_NOEXCEPT;
561
562#ifdef __cplusplus
563}
564#endif
565
566#endif // MAPLIBRE_NATIVE_C_TEXTURE_H
mln_status
Definition base.h:37
void * texture
Definition texture.h:40
mln_render_target_extent extent
Definition texture.h:32
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:44
uint64_t pixel_format
Definition texture.h:61
uint64_t frame_id
Definition texture.h:55
uint32_t width
Definition texture.h:49
void * device
Definition texture.h:59
void * texture
Definition texture.h:57
uint64_t generation
Definition texture.h:47
double scale_factor
Definition texture.h:53
uint32_t height
Definition texture.h:51
uint32_t texture
Definition texture.h:157
uint32_t target
Definition texture.h:159
mln_opengl_context_descriptor context
Definition texture.h:155
mln_render_target_extent extent
Definition texture.h:150
Definition render_target.h:100
Definition texture.h:135
mln_opengl_context_descriptor context
Definition texture.h:143
mln_render_target_extent extent
Definition texture.h:138
Definition texture.h:163
uint32_t internal_format
Definition texture.h:180
uint32_t format
Definition texture.h:182
double scale_factor
Definition texture.h:172
uint32_t width
Definition texture.h:168
uint32_t type
Definition texture.h:184
uint32_t texture
Definition texture.h:176
uint64_t generation
Definition texture.h:166
uint64_t frame_id
Definition texture.h:174
uint32_t height
Definition texture.h:170
uint32_t target
Definition texture.h:178
Definition render_target.h:18
Definition texture.h:188
uint32_t width
Definition texture.h:191
size_t byte_length
Definition texture.h:197
uint32_t stride
Definition texture.h:195
uint32_t height
Definition texture.h:193
void * image
Definition texture.h:88
uint32_t final_layout
Definition texture.h:106
uint32_t initial_layout
Definition texture.h:104
mln_render_target_extent extent
Definition texture.h:77
uint32_t format
Definition texture.h:97
mln_vulkan_context_descriptor context
Definition texture.h:79
void * image_view
Definition texture.h:94
Definition render_target.h:36
mln_render_target_extent extent
Definition texture.h:68
mln_vulkan_context_descriptor context
Definition texture.h:70
Definition texture.h:110
void * device
Definition texture.h:127
uint32_t height
Definition texture.h:117
void * image_view
Definition texture.h:125
uint64_t generation
Definition texture.h:113
void * image
Definition texture.h:123
uint64_t frame_id
Definition texture.h:121
uint32_t format
Definition texture.h:129
uint32_t layout
Definition texture.h:131
double scale_factor
Definition texture.h:119
uint32_t width
Definition texture.h:115
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)