mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +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() {
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header(SHADER_HEADER_PATH)
|
||||
.whitelist_type("GPUIUniforms")
|
||||
.whitelist_type("GPUIQuadInputIndex")
|
||||
.whitelist_type("GPUIQuad")
|
||||
.whitelist_type("GPUIShadowInputIndex")
|
||||
.whitelist_type("GPUIShadow")
|
||||
.whitelist_type("GPUISpriteVertexInputIndex")
|
||||
.whitelist_type("GPUISpriteFragmentInputIndex")
|
||||
.whitelist_type("GPUISprite")
|
||||
.whitelist_type("GPUI.*")
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
||||
.generate()
|
||||
.expect("unable to generate bindings");
|
||||
|
|
Loading…
Reference in a new issue