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
52
55 uint32_t size;
57 uint64_t generation;
59 uint32_t width;
61 uint32_t height;
65 uint64_t frame_id;
67 void* texture;
69 void* device;
71 uint64_t pixel_format;
73
82
129
132 uint32_t size;
134 uint64_t generation;
136 uint32_t width;
138 uint32_t height;
142 uint64_t frame_id;
144 void* image;
148 void* device;
150 uint32_t format;
152 uint32_t layout;
154
166
199
208
239
242 uint32_t size;
244 uint64_t generation;
246 uint32_t width;
248 uint32_t height;
252 uint64_t frame_id;
254 void* texture;
258 void* device;
260 uint32_t format;
262
265 uint32_t size;
267 uint64_t generation;
269 uint32_t width;
271 uint32_t height;
275 uint64_t frame_id;
277 uint32_t texture;
279 uint32_t target;
283 uint32_t format;
285 uint32_t type;
287
290 uint32_t size;
292 uint32_t width;
294 uint32_t height;
296 uint32_t stride;
300
306
312
318
324
330
336
342
348
354
378 mln_map map, const mln_metal_owned_texture_descriptor* descriptor,
379 mln_render_session* out_session
380) MLN_NOEXCEPT;
381
411 mln_map map, const mln_metal_borrowed_texture_descriptor* descriptor,
412 mln_render_session* out_session
413) MLN_NOEXCEPT;
414
439 mln_map map, const mln_vulkan_owned_texture_descriptor* descriptor,
440 mln_render_session* out_session
441) MLN_NOEXCEPT;
442
478 mln_map map, const mln_vulkan_borrowed_texture_descriptor* descriptor,
479 mln_render_session* out_session
480) MLN_NOEXCEPT;
481
507 mln_map map, const mln_opengl_owned_texture_descriptor* descriptor,
508 mln_render_session* out_session
509) MLN_NOEXCEPT;
510
544 mln_map map, const mln_opengl_borrowed_texture_descriptor* descriptor,
545 mln_render_session* out_session
546) MLN_NOEXCEPT;
547
595 mln_render_session session,
597) MLN_NOEXCEPT;
598
628 mln_render_session session,
630) MLN_NOEXCEPT;
631
656 mln_render_session session,
658) MLN_NOEXCEPT;
659
693 mln_render_session session, uint8_t* out_data, size_t out_data_capacity,
694 mln_texture_image_info* out_info
695) MLN_NOEXCEPT;
696
720 mln_render_session session, mln_metal_owned_texture_frame* out_frame
721) MLN_NOEXCEPT;
722
738 mln_render_session session, const mln_metal_owned_texture_frame* frame
739) MLN_NOEXCEPT;
740
763 mln_render_session session, mln_vulkan_owned_texture_frame* out_frame
764) MLN_NOEXCEPT;
765
781 mln_render_session session, const mln_vulkan_owned_texture_frame* frame
782) MLN_NOEXCEPT;
783
811 mln_render_session session, mln_opengl_owned_texture_frame* out_frame
812) MLN_NOEXCEPT;
813
830 mln_render_session session, const mln_opengl_owned_texture_frame* frame
831) MLN_NOEXCEPT;
832
858 mln_map map, const mln_webgpu_owned_texture_descriptor* descriptor,
859 mln_render_session* out_session
860) MLN_NOEXCEPT;
861
894 mln_map map, const mln_webgpu_borrowed_texture_descriptor* descriptor,
895 mln_render_session* out_session
896) MLN_NOEXCEPT;
897
928 mln_render_session session,
930) MLN_NOEXCEPT;
931
954 mln_render_session session, mln_webgpu_owned_texture_frame* out_frame
955) MLN_NOEXCEPT;
956
972 mln_render_session session, const mln_webgpu_owned_texture_frame* frame
973) MLN_NOEXCEPT;
974
975#ifdef __cplusplus
976}
977#endif
978
979#endif // MAPLIBRE_NATIVE_C_TEXTURE_H
mln_status
Definition base.h:39
uint32_t physical_height
Definition texture.h:39
void * texture
Definition texture.h:50
uint32_t physical_width
Definition texture.h:37
mln_render_target_extent extent
Definition texture.h:35
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:54
uint64_t pixel_format
Definition texture.h:71
uint64_t frame_id
Definition texture.h:65
uint32_t width
Definition texture.h:59
void * device
Definition texture.h:69
void * texture
Definition texture.h:67
uint64_t generation
Definition texture.h:57
double scale_factor
Definition texture.h:63
uint32_t height
Definition texture.h:61
uint32_t physical_height
Definition texture.h:178
uint32_t physical_width
Definition texture.h:176
uint32_t texture
Definition texture.h:195
uint32_t target
Definition texture.h:197
mln_opengl_context_descriptor context
Definition texture.h:183
mln_render_target_extent extent
Definition texture.h:174
Definition render_target.h:168
Definition texture.h:156
mln_opengl_context_descriptor context
Definition texture.h:164
mln_render_target_extent extent
Definition texture.h:159
Definition texture.h:264
uint32_t internal_format
Definition texture.h:281
uint32_t format
Definition texture.h:283
double scale_factor
Definition texture.h:273
uint32_t width
Definition texture.h:269
uint32_t type
Definition texture.h:285
uint32_t texture
Definition texture.h:277
uint64_t generation
Definition texture.h:267
uint64_t frame_id
Definition texture.h:275
uint32_t height
Definition texture.h:271
uint32_t target
Definition texture.h:279
Definition render_target.h:18
Definition texture.h:289
uint32_t width
Definition texture.h:292
size_t byte_length
Definition texture.h:298
uint32_t stride
Definition texture.h:296
uint32_t height
Definition texture.h:294
void * image
Definition texture.h:109
uint32_t final_layout
Definition texture.h:127
uint32_t physical_height
Definition texture.h:94
uint32_t initial_layout
Definition texture.h:125
uint32_t physical_width
Definition texture.h:92
mln_render_target_extent extent
Definition texture.h:90
uint32_t format
Definition texture.h:118
mln_vulkan_context_descriptor context
Definition texture.h:96
void * image_view
Definition texture.h:115
Definition render_target.h:36
mln_render_target_extent extent
Definition texture.h:78
mln_vulkan_context_descriptor context
Definition texture.h:80
Definition texture.h:131
void * device
Definition texture.h:148
uint32_t height
Definition texture.h:138
void * image_view
Definition texture.h:146
uint64_t generation
Definition texture.h:134
void * image
Definition texture.h:144
uint64_t frame_id
Definition texture.h:142
uint32_t format
Definition texture.h:150
uint32_t layout
Definition texture.h:152
double scale_factor
Definition texture.h:140
uint32_t width
Definition texture.h:136
uint32_t physical_width
Definition texture.h:215
uint32_t format
Definition texture.h:237
mln_render_target_extent extent
Definition texture.h:213
void * texture
Definition texture.h:229
uint32_t physical_height
Definition texture.h:217
void * texture_view
Definition texture.h:235
mln_webgpu_context_descriptor context
Definition texture.h:219
Definition render_target.h:56
Definition texture.h:201
mln_render_target_extent extent
Definition texture.h:204
mln_webgpu_context_descriptor context
Definition texture.h:206
Definition texture.h:241
uint64_t frame_id
Definition texture.h:252
void * device
Definition texture.h:258
double scale_factor
Definition texture.h:250
uint32_t height
Definition texture.h:248
void * texture
Definition texture.h:254
uint32_t width
Definition texture.h:246
uint32_t format
Definition texture.h:260
uint64_t generation
Definition texture.h:244
void * texture_view
Definition texture.h:256
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_metal_owned_texture_descriptor mln_metal_owned_texture_descriptor_default(void)
mln_status mln_webgpu_borrowed_texture_set_target(mln_render_session session, const mln_webgpu_borrowed_texture_descriptor *descriptor)
mln_status mln_opengl_owned_texture_acquire_frame(mln_render_session session, mln_opengl_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_status mln_opengl_owned_texture_release_frame(mln_render_session session, const mln_opengl_owned_texture_frame *frame)
mln_status mln_vulkan_owned_texture_release_frame(mln_render_session session, const mln_vulkan_owned_texture_frame *frame)
mln_status mln_vulkan_borrowed_texture_set_target(mln_render_session session, const mln_vulkan_borrowed_texture_descriptor *descriptor)
mln_webgpu_borrowed_texture_descriptor mln_webgpu_borrowed_texture_descriptor_default(void)
mln_vulkan_owned_texture_descriptor mln_vulkan_owned_texture_descriptor_default(void)
mln_status mln_webgpu_owned_texture_attach(mln_map map, const mln_webgpu_owned_texture_descriptor *descriptor, mln_render_session *out_session)
mln_texture_image_info mln_texture_image_info_default(void)
mln_status mln_vulkan_owned_texture_acquire_frame(mln_render_session session, mln_vulkan_owned_texture_frame *out_frame)
mln_status mln_webgpu_borrowed_texture_attach(mln_map map, const mln_webgpu_borrowed_texture_descriptor *descriptor, mln_render_session *out_session)
mln_status mln_opengl_borrowed_texture_set_target(mln_render_session session, const mln_opengl_borrowed_texture_descriptor *descriptor)
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_acquire_frame(mln_render_session session, mln_metal_owned_texture_frame *out_frame)
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_metal_owned_texture_release_frame(mln_render_session session, const mln_metal_owned_texture_frame *frame)
mln_webgpu_owned_texture_descriptor mln_webgpu_owned_texture_descriptor_default(void)
mln_vulkan_borrowed_texture_descriptor mln_vulkan_borrowed_texture_descriptor_default(void)
mln_status mln_metal_borrowed_texture_set_target(mln_render_session session, const mln_metal_borrowed_texture_descriptor *descriptor)
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_webgpu_owned_texture_release_frame(mln_render_session session, const mln_webgpu_owned_texture_frame *frame)
mln_opengl_owned_texture_descriptor mln_opengl_owned_texture_descriptor_default(void)
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_webgpu_owned_texture_acquire_frame(mln_render_session session, mln_webgpu_owned_texture_frame *out_frame)
mln_status mln_opengl_borrowed_texture_attach(mln_map map, const mln_opengl_borrowed_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)