MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / add_ext

Method add_ext

crates/rustc_codegen_spirv/src/builder_spirv.rs:430–435  ·  view source on GitHub ↗
(builder: &mut Builder, enabled_extensions: &mut FxHashSet<Symbol>, ext: Symbol)

Source from the content-addressed store, hash-verified

428 enabled_capabilities.insert(cap);
429 }
430 fn add_ext(builder: &mut Builder, enabled_extensions: &mut FxHashSet<Symbol>, ext: Symbol) {
431 // This should be the only callsite of Builder::extension (aside from tests), to make
432 // sure the hashset stays in sync.
433 builder.extension(ext.as_str());
434 enabled_extensions.insert(ext);
435 }
436
437 for feature in features {
438 match *feature {

Callers

nothing calls this directly

Calls 2

extensionMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected