mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Actually set the SPIR-V generator magic number (#743)
wow this took a while to do
This commit is contained in:
parent
032286e217
commit
71d6001bed
@ -338,6 +338,7 @@ impl BuilderSpirv {
|
||||
|
||||
let mut builder = Builder::new();
|
||||
builder.set_version(version.0, version.1);
|
||||
builder.module_mut().header.as_mut().unwrap().generator = 0x001B_0000;
|
||||
|
||||
let mut enabled_capabilities = FxHashSet::default();
|
||||
let mut enabled_extensions = FxHashSet::default();
|
||||
|
@ -108,6 +108,7 @@ pub fn link(sess: &Session, mut inputs: Vec<Module>, opts: &Options) -> Result<L
|
||||
let mut output = loader.module();
|
||||
let mut header = ModuleHeader::new(bound + 1);
|
||||
header.set_version(version.0, version.1);
|
||||
header.generator = 0x001B_0000;
|
||||
output.header = Some(header);
|
||||
output
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user