mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Added the new method to the msl Writer (#236)
This commit is contained in:
@@ -370,6 +370,14 @@ fn separate(is_last: bool) -> &'static str {
|
||||
}
|
||||
|
||||
impl<W: Write> Writer<W> {
|
||||
/// Creates a new `Writer` instance
|
||||
pub fn new(out: W) -> Self {
|
||||
Writer {
|
||||
out,
|
||||
typifier: Typifier::new(),
|
||||
}
|
||||
}
|
||||
|
||||
fn put_call(
|
||||
&mut self,
|
||||
name: &str,
|
||||
|
||||
Reference in New Issue
Block a user