mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 03:59:55 +00:00
Whitelist shader bindings using a regex, not individual types
This commit is contained in:
parent
6222150688
commit
a8495d09f8
1 changed files with 1 additions and 8 deletions
|
@ -93,14 +93,7 @@ fn compile_metal_shaders() {
|
||||||
fn generate_shader_bindings() {
|
fn generate_shader_bindings() {
|
||||||
let bindings = bindgen::Builder::default()
|
let bindings = bindgen::Builder::default()
|
||||||
.header(SHADER_HEADER_PATH)
|
.header(SHADER_HEADER_PATH)
|
||||||
.whitelist_type("GPUIUniforms")
|
.whitelist_type("GPUI.*")
|
||||||
.whitelist_type("GPUIQuadInputIndex")
|
|
||||||
.whitelist_type("GPUIQuad")
|
|
||||||
.whitelist_type("GPUIShadowInputIndex")
|
|
||||||
.whitelist_type("GPUIShadow")
|
|
||||||
.whitelist_type("GPUISpriteVertexInputIndex")
|
|
||||||
.whitelist_type("GPUISpriteFragmentInputIndex")
|
|
||||||
.whitelist_type("GPUISprite")
|
|
||||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
||||||
.generate()
|
.generate()
|
||||||
.expect("unable to generate bindings");
|
.expect("unable to generate bindings");
|
||||||
|
|
Loading…
Reference in a new issue