mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
header = """/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
|
|
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
|
|
* To generate this file:
|
|
* 1. Get the latest cbindgen using `cargo install --force cbindgen`
|
|
* a. Alternatively, you can clone `https://github.com/eqrion/cbindgen` and use a tagged release
|
|
* 2. Run `rustup run nightly cbindgen toolkit/library/rust/ --lockfile Cargo.lock --crate wgpu-remote -o dom/webgpu/ffi/wgpu_ffi_generated.h`
|
|
*/
|
|
|
|
typedef unsigned long long WGPUNonZeroU64;
|
|
typedef unsigned long long WGPUOption_AdapterId;
|
|
typedef unsigned long long WGPUOption_SurfaceId;
|
|
typedef unsigned long long WGPUOption_TextureViewId;
|
|
"""
|
|
include_version = true
|
|
braces = "SameLine"
|
|
line_length = 100
|
|
tab_width = 2
|
|
language = "C"
|
|
|
|
[export]
|
|
prefix = "WGPU"
|
|
#TODO: figure out why cbindgen even tries to export a private type...
|
|
exclude = ["Option_AdapterId", "Option_SurfaceId", "Option_TextureViewId"]
|
|
|
|
[parse]
|
|
parse_deps = true
|
|
include = ["wgpu-core", "wgpu-types"]
|
|
|
|
extra_bindings = ["wgpu-core", "wgpu-types"]
|
|
|
|
[fn]
|
|
|
|
[struct]
|
|
derive_eq = true
|
|
|
|
[enum]
|
|
prefix_with_name = true
|
|
derive_helper_methods = true
|
|
|
|
[macro_expansion]
|
|
bitflags = true
|
|
|
|
[defines]
|
|
#"target_os = ios" = "WGPU_TARGET_IOS"
|
|
#"target_os = macos" = "WGPU_TARGET_MACOS"
|
|
#"unix" = "WGPU_TARGET_FAMILY_UNIX"
|
|
#"windows" = "WGPU_TARGET_WINDOWS"
|