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

Function entry_points

crates/rustc_codegen_spirv/src/link.rs:204–211  ·  view source on GitHub ↗
(module: &rspirv::dr::Module)

Source from the content-addressed store, hash-verified

202}
203
204fn entry_points(module: &rspirv::dr::Module) -> Vec<String> {
205 module
206 .entry_points
207 .iter()
208 .filter(|inst| inst.class.opcode == rspirv::spirv::Op::EntryPoint)
209 .map(|inst| inst.operands[2].unwrap_literal_string().to_string())
210 .collect()
211}
212
213fn post_link_single_module(
214 sess: &Session,

Callers 1

link_exeFunction · 0.85

Calls 2

iterMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected