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 "completion.h"
14#include "render_target.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
37
43
78
81 uint32_t size;
83 uint64_t generation;
85 uint32_t width;
87 uint32_t height;
91 uint64_t frame_id;
96 uint32_t slot;
100 void* texture;
102 void* device;
104 uint64_t pixel_format;
106
118
135
199
233
250
256
299
311
329
369
372 uint32_t size;
374 uint64_t generation;
376 uint32_t width;
378 uint32_t height;
382 uint64_t frame_id;
387 uint32_t slot;
389 void* texture;
393 void* device;
395 uint32_t format;
397
400 uint32_t size;
402 uint64_t generation;
404 uint32_t width;
406 uint32_t height;
410 uint64_t frame_id;
415 uint32_t slot;
422 uint32_t texture;
424 uint32_t target;
433 uint32_t format;
437 uint32_t type;
439
451
458
464
470
476
482
488
494
500
506
532MLN_BINDING("execution=lifecycle")
534 mln_map map, const mln_metal_owned_texture_descriptor* descriptor,
536 mln_render_session* out_session MLN_BINDING("direction=out"),
537 const mln_completion* completion, mln_diagnostic* out_diagnostic
538) MLN_NOEXCEPT;
539
574MLN_BINDING("execution=lifecycle")
576 mln_map map, const mln_metal_borrowed_texture_descriptor* descriptor,
578 mln_render_session* out_session MLN_BINDING("direction=out"),
579 const mln_completion* completion, mln_diagnostic* out_diagnostic
580) MLN_NOEXCEPT;
581
609MLN_BINDING("execution=lifecycle")
611 mln_map map, const mln_vulkan_owned_texture_descriptor* descriptor,
613 mln_render_session* out_session MLN_BINDING("direction=out"),
614 const mln_completion* completion, mln_diagnostic* out_diagnostic
615) MLN_NOEXCEPT;
616
644MLN_BINDING("execution=lifecycle")
646 mln_map map, const mln_vulkan_borrowed_texture_descriptor* descriptor,
648 mln_render_session* out_session MLN_BINDING("direction=out"),
649 const mln_completion* completion, mln_diagnostic* out_diagnostic
650) MLN_NOEXCEPT;
651
684MLN_BINDING("execution=lifecycle")
686 mln_map map, const mln_opengl_owned_texture_descriptor* descriptor,
688 mln_render_session* out_session MLN_BINDING("direction=out"),
689 const mln_completion* completion, mln_diagnostic* out_diagnostic
690) MLN_NOEXCEPT;
691
720MLN_BINDING("execution=lifecycle")
722 mln_map map, const mln_opengl_borrowed_texture_descriptor* descriptor,
724 mln_render_session* out_session MLN_BINDING("direction=out"),
725 const mln_completion* completion, mln_diagnostic* out_diagnostic
726) MLN_NOEXCEPT;
727
753MLN_BINDING("execution=lifecycle")
755 mln_map map, const mln_webgpu_owned_texture_descriptor* descriptor,
757 mln_render_session* out_session MLN_BINDING("direction=out"),
758 const mln_completion* completion, mln_diagnostic* out_diagnostic
759) MLN_NOEXCEPT;
760
788MLN_BINDING("execution=lifecycle")
790 mln_map map, const mln_webgpu_borrowed_texture_descriptor* descriptor,
792 mln_render_session* out_session MLN_BINDING("direction=out"),
793 const mln_completion* completion, mln_diagnostic* out_diagnostic
794) MLN_NOEXCEPT;
795
831MLN_BINDING("execution=operation")
833 mln_render_session session,
835 const mln_completion* completion, mln_diagnostic* out_diagnostic
836) MLN_NOEXCEPT;
837
869MLN_BINDING("execution=operation")
871 mln_render_session session,
873 const mln_completion* completion, mln_diagnostic* out_diagnostic
874) MLN_NOEXCEPT;
875
906MLN_BINDING("execution=operation")
908 mln_render_session session,
910 const mln_completion* completion, mln_diagnostic* out_diagnostic
911) MLN_NOEXCEPT;
912
946MLN_BINDING("execution=operation")
948 mln_render_session session,
950 const mln_completion* completion, mln_diagnostic* out_diagnostic
951) MLN_NOEXCEPT;
952
982MLN_BINDING("execution=query;result=mln_texture_readback_result")
984 mln_render_session session, const mln_completion* completion,
985 mln_diagnostic* out_diagnostic
986) MLN_NOEXCEPT;
987
1006MLN_BINDING("view_owner=frame")
1008 mln_acquired_frame frame,
1009 mln_metal_texture_frame* out_frame MLN_BINDING("direction=out"),
1010 mln_diagnostic* out_diagnostic
1011) MLN_NOEXCEPT;
1012
1031MLN_BINDING("view_owner=frame")
1033 mln_acquired_frame frame,
1034 mln_vulkan_texture_frame* out_frame MLN_BINDING("direction=out"),
1035 mln_diagnostic* out_diagnostic
1036) MLN_NOEXCEPT;
1037
1056MLN_BINDING("view_owner=frame")
1058 mln_acquired_frame frame,
1059 mln_opengl_texture_frame* out_frame MLN_BINDING("direction=out"),
1060 mln_diagnostic* out_diagnostic
1061) MLN_NOEXCEPT;
1062
1081MLN_BINDING("view_owner=frame")
1083 mln_acquired_frame frame,
1084 mln_webgpu_texture_frame* out_frame MLN_BINDING("direction=out"),
1085 mln_diagnostic* out_diagnostic
1086) MLN_NOEXCEPT;
1087
1088#ifdef __cplusplus
1089}
1090#endif
1091
1092#endif // MAPLIBRE_NATIVE_C_TEXTURE_H
uint64_t mln_render_session
Definition base.h:161
uint64_t mln_map
Definition base.h:131
uint64_t mln_acquired_frame
Definition base.h:168
mln_status
Definition base.h:61
#define MLN_BINDING(contract)
Definition binding.h:17
uint64_t mln_vulkan_non_dispatchable_handle
Definition render_target.h:25
Definition base.h:192
Definition completion.h:121
Definition base.h:100
Definition map.h:162
uint32_t physical_height
Definition texture.h:58
const mln_metal_borrowed_texture * textures
Definition texture.h:70
mln_logical_extent extent
Definition texture.h:52
uint32_t physical_width
Definition texture.h:55
size_t texture_count
Definition texture.h:76
Definition texture.h:39
void * texture
Definition texture.h:41
Definition render_target.h:233
Definition texture.h:21
mln_logical_extent extent
Definition texture.h:27
mln_metal_context_descriptor context
Definition texture.h:29
uint64_t pixel_format
Definition texture.h:35
Definition texture.h:80
uint32_t slot
Definition texture.h:96
void * texture
Definition texture.h:100
uint64_t pixel_format
Definition texture.h:104
uint64_t frame_id
Definition texture.h:91
double scale_factor
Definition texture.h:89
void * device
Definition texture.h:102
uint64_t generation
Definition texture.h:83
uint32_t height
Definition texture.h:87
uint32_t width
Definition texture.h:85
uint32_t physical_height
Definition texture.h:271
uint32_t physical_width
Definition texture.h:268
mln_logical_extent extent
Definition texture.h:265
uint32_t target
Definition texture.h:297
size_t texture_count
Definition texture.h:295
const mln_opengl_borrowed_texture * textures
Definition texture.h:289
mln_opengl_context_descriptor context
Definition texture.h:276
Definition texture.h:252
uint32_t texture
Definition texture.h:254
Definition render_target.h:413
Definition texture.h:235
mln_opengl_context_descriptor context
Definition texture.h:248
mln_logical_extent extent
Definition texture.h:241
Definition texture.h:399
uint32_t slot
Definition texture.h:415
uint32_t texture
Definition texture.h:422
uint32_t type
Definition texture.h:437
uint32_t format
Definition texture.h:433
double scale_factor
Definition texture.h:408
uint32_t height
Definition texture.h:406
uint32_t internal_format
Definition texture.h:429
uint64_t generation
Definition texture.h:402
uint32_t width
Definition texture.h:404
uint64_t frame_id
Definition texture.h:410
uint32_t target
Definition texture.h:424
Definition render_target.h:112
Definition texture.h:441
uint32_t width
Definition texture.h:443
size_t byte_length
Definition texture.h:449
uint32_t stride
Definition texture.h:447
uint32_t height
Definition texture.h:445
Definition texture.h:453
mln_buffer_view data
Definition texture.h:455
uint32_t final_layout
Definition texture.h:197
const mln_vulkan_borrowed_texture * textures
Definition texture.h:168
uint32_t physical_height
Definition texture.h:152
uint32_t initial_layout
Definition texture.h:192
uint32_t physical_width
Definition texture.h:148
mln_logical_extent extent
Definition texture.h:144
uint32_t format
Definition texture.h:179
mln_vulkan_context_descriptor context
Definition texture.h:154
size_t texture_count
Definition texture.h:174
Definition texture.h:120
mln_vulkan_non_dispatchable_handle image_view
Definition texture.h:133
mln_vulkan_non_dispatchable_handle image
Definition texture.h:128
Definition render_target.h:239
Definition texture.h:108
mln_vulkan_context_descriptor context
Definition texture.h:116
mln_logical_extent extent
Definition texture.h:114
Definition texture.h:201
uint32_t layout
Definition texture.h:231
uint64_t generation
Definition texture.h:204
double scale_factor
Definition texture.h:210
void * device
Definition texture.h:223
uint64_t frame_id
Definition texture.h:212
mln_vulkan_non_dispatchable_handle image
Definition texture.h:219
uint32_t format
Definition texture.h:225
uint32_t width
Definition texture.h:206
uint32_t slot
Definition texture.h:217
uint32_t height
Definition texture.h:208
mln_vulkan_non_dispatchable_handle image_view
Definition texture.h:221
const mln_webgpu_borrowed_texture * textures
Definition texture.h:356
size_t texture_count
Definition texture.h:362
mln_logical_extent extent
Definition texture.h:338
uint32_t physical_width
Definition texture.h:340
uint32_t format
Definition texture.h:367
uint32_t physical_height
Definition texture.h:342
mln_webgpu_context_descriptor context
Definition texture.h:347
Definition texture.h:313
void * texture
Definition texture.h:322
void * texture_view
Definition texture.h:327
Definition render_target.h:261
Definition texture.h:301
mln_webgpu_context_descriptor context
Definition texture.h:309
mln_logical_extent extent
Definition texture.h:307
Definition texture.h:371
uint32_t height
Definition texture.h:378
uint64_t generation
Definition texture.h:374
double scale_factor
Definition texture.h:380
uint32_t format
Definition texture.h:395
uint32_t slot
Definition texture.h:387
void * texture_view
Definition texture.h:391
void * device
Definition texture.h:393
uint32_t width
Definition texture.h:376
uint64_t frame_id
Definition texture.h:382
void * texture
Definition texture.h:389
mln_status mln_render_session_set_webgpu_borrowed_texture_target(mln_render_session session, const mln_webgpu_borrowed_texture_descriptor *descriptor, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_metal_owned_texture_descriptor mln_metal_owned_texture_descriptor_default(void)
mln_status mln_map_attach_metal_owned_texture(mln_map map, const mln_metal_owned_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_attach_webgpu_borrowed_texture(mln_map map, const mln_webgpu_borrowed_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_render_session_set_metal_borrowed_texture_target(mln_render_session session, const mln_metal_borrowed_texture_descriptor *descriptor, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_webgpu_borrowed_texture_descriptor mln_webgpu_borrowed_texture_descriptor_default(void)
mln_status mln_map_attach_metal_borrowed_texture(mln_map map, const mln_metal_borrowed_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_vulkan_owned_texture_descriptor mln_vulkan_owned_texture_descriptor_default(void)
mln_status mln_map_attach_webgpu_owned_texture(mln_map map, const mln_webgpu_owned_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_acquired_frame_get_metal_texture(mln_acquired_frame frame, mln_metal_texture_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_status mln_map_attach_vulkan_owned_texture(mln_map map, const mln_vulkan_owned_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_attach_opengl_borrowed_texture(mln_map map, const mln_opengl_borrowed_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_render_session_set_vulkan_borrowed_texture_target(mln_render_session session, const mln_vulkan_borrowed_texture_descriptor *descriptor, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_acquired_frame_get_webgpu_texture(mln_acquired_frame frame, mln_webgpu_texture_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_webgpu_owned_texture_descriptor mln_webgpu_owned_texture_descriptor_default(void)
mln_status mln_map_attach_opengl_owned_texture(mln_map map, const mln_opengl_owned_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_render_session_set_opengl_borrowed_texture_target(mln_render_session session, const mln_opengl_borrowed_texture_descriptor *descriptor, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_acquired_frame_get_vulkan_texture(mln_acquired_frame frame, mln_vulkan_texture_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_vulkan_borrowed_texture_descriptor mln_vulkan_borrowed_texture_descriptor_default(void)
mln_opengl_owned_texture_descriptor mln_opengl_owned_texture_descriptor_default(void)
mln_status mln_map_attach_vulkan_borrowed_texture(mln_map map, const mln_vulkan_borrowed_texture_descriptor *descriptor, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_acquired_frame_get_opengl_texture(mln_acquired_frame frame, mln_opengl_texture_frame *out_frame, mln_diagnostic *out_diagnostic)
mln_metal_borrowed_texture_descriptor mln_metal_borrowed_texture_descriptor_default(void)
mln_status mln_render_session_read_texture(mln_render_session session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_opengl_borrowed_texture_descriptor mln_opengl_borrowed_texture_descriptor_default(void)