Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
24
third-party/vendor/renderdoc-sys/generate_bindings.sh
vendored
Executable file
24
third-party/vendor/renderdoc-sys/generate_bindings.sh
vendored
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This script generates Rust bindings to the in-application Renderdoc API.
|
||||
#
|
||||
# Dependencies:
|
||||
# * bindgen (>=0.63.0)
|
||||
# * curl
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
readonly VERSION=v1.x
|
||||
readonly TEMP_DIR="$(mktemp -d "${TMPDIR:-/tmp}/renderdoc-rs.XXXXXXXXX")"
|
||||
|
||||
trap -- "rm -rf '${TEMP_DIR}'" EXIT
|
||||
|
||||
curl -o "${TEMP_DIR}/renderdoc_app.h" -L "https://raw.githubusercontent.com/baldurk/renderdoc/${VERSION}/renderdoc/api/app/renderdoc_app.h"
|
||||
|
||||
bindgen \
|
||||
--blocklist-type '__uint64_t|__uint32_t' \
|
||||
--allowlist-type 'RENDERDOC.*|pRENDERDOC.*' \
|
||||
--generate-inline-functions \
|
||||
--no-prepend-enum-name \
|
||||
--impl-debug \
|
||||
"${TEMP_DIR}/renderdoc_app.h" > ./src/bindings.rs
|
||||
Loading…
Add table
Add a link
Reference in a new issue