mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +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();
|
let mut builder = Builder::new();
|
||||||
builder.set_version(version.0, version.1);
|
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_capabilities = FxHashSet::default();
|
||||||
let mut enabled_extensions = 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 output = loader.module();
|
||||||
let mut header = ModuleHeader::new(bound + 1);
|
let mut header = ModuleHeader::new(bound + 1);
|
||||||
header.set_version(version.0, version.1);
|
header.set_version(version.0, version.1);
|
||||||
|
header.generator = 0x001B_0000;
|
||||||
output.header = Some(header);
|
output.header = Some(header);
|
||||||
output
|
output
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user