1 header = """/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
4 autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
5 * To generate this file:
6 * 1. Get the latest cbindgen using `cargo install --force cbindgen`
7 * a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release
8 * 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate wgpu_bindings -o dom/webgpu/ffi/wgpu_ffi_generated.h`
11 typedef uint64_t WGPUNonZeroU64;
12 typedef uint64_t WGPUOption_AdapterId;
13 typedef uint64_t WGPUOption_SurfaceId;
14 typedef uint64_t WGPUOption_TextureViewId;
16 include_version = true
25 exclude = ["Option_AdapterId", "Option_SurfaceId", "Option_TextureViewId"]
29 include = ["wgpu-core", "wgpu-types"]
31 extra_bindings = ["wgpu-core", "wgpu-types"]
34 prefix = "WGPU_INLINE"
37 rename_args = "GeckoCase"
43 prefix_with_name = true
44 derive_helper_methods = true
51 "target_os = windows" = "XP_WIN"
52 "target_os = macos" = "XP_MACOSX"
53 "target_os = android" = "ANDROID"