maplibre_native 0.8.3

Rust bindings to the MapLibre Native map rendering engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#if defined(MLN_WEBGPU_IMPL_FFI)

#include "texture.h"
#include <memory>

namespace mln::bridge::texture {
    WGPUTexture getWGPUTexture(const std::shared_ptr<mbgl::webgpu::Texture2D>& texture2d) {
        if (!texture2d) {
            return nullptr;
        }
        WGPUTexture texture = texture2d->getTexture();
        return texture;
    }
}

#endif // #if defined(MLN_WEBGPU_IMPL_FFI)