mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
[hlsl-out] Return entry points name to users
This commit is contained in:
1 parent
391983459a
commit
e28344edbb
11 files changed
+92
-62
No files matched your search
+5
-2
@@ -304,9 +304,12 @@ fn main() {
|
||||
}
|
||||
"hlsl" => {
|
||||
use naga::back::hlsl;
|
||||
let hlsl = hlsl::write_string(&module, info.as_ref().unwrap(), ¶ms.hlsl)
|
||||
let mut buffer = String::new();
|
||||
let mut writer = hlsl::Writer::new(&mut buffer, ¶ms.hlsl);
|
||||
writer
|
||||
.write(&module, info.as_ref().unwrap())
|
||||
.unwrap_pretty();
|
||||
fs::write(output_path, hlsl).unwrap();
|
||||
fs::write(output_path, buffer).unwrap();
|
||||
}
|
||||
"wgsl" => {
|
||||
use naga::back::wgsl;
|
||||
|
||||
Reference in new issue
Block a user