mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-27 17:23:46 +00:00
Fix convert_phong_lighting test feature checks
This commit is contained in:
parent
7e809c605a
commit
541d1dcb8b
@ -182,13 +182,16 @@ fn convert_phong_lighting() {
|
||||
);
|
||||
naga::proc::Validator::new().validate(&module).unwrap();
|
||||
|
||||
let header = naga::Header {
|
||||
version: (1, 0, 0),
|
||||
generator: 1234,
|
||||
};
|
||||
let writer_flags = naga::back::spv::WriterFlags::empty();
|
||||
let mut w = naga::back::spv::Writer::new(&header, writer_flags);
|
||||
w.write(&module);
|
||||
#[cfg(feaure = "spv-out")]
|
||||
{
|
||||
let header = naga::Header {
|
||||
version: (1, 0, 0),
|
||||
generator: 1234,
|
||||
};
|
||||
let writer_flags = naga::back::spv::WriterFlags::empty();
|
||||
let mut w = naga::back::spv::Writer::new(&header, writer_flags);
|
||||
w.write(&module);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: get this working again (glsl-new)
|
||||
|
Loading…
Reference in New Issue
Block a user