diff --git a/shader-parser/src/lib.rs b/shader-parser/src/lib.rs index b9406a57..7a8dc1ac 100644 --- a/shader-parser/src/lib.rs +++ b/shader-parser/src/lib.rs @@ -202,10 +202,10 @@ fn type_from_id(doc: &parse::Spirv, searched: u32) -> String { return format!("struct {} {{\n{}\n}}", name, members.join(",\n")); }, &parse::Instruction::TypeOpaque { result_id, ref name } if result_id == searched => { + return "".to_owned(); }, &parse::Instruction::TypePointer { result_id, type_id, .. } if result_id == searched => { - let t = type_from_id(doc, type_id); - return format!("*const {}", t); + return type_from_id(doc, type_id); }, _ => () }