mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
[glsl-in] Keep around extra linkage variables
WGSL will require this. Note that this still might cause some issues with multi-entry-point GLSL that I didn't know how to handle. That is, we will handle unused builtin inputs but not unused builtin outputs correctly right now. This is an existing issue though, not a regression. This is also provided as an option, but I feel like the more correct approach is to never strip linkage variables. We'll see though.
This commit is contained in:
1 parent
0b69aa8b8a
commit
0995c7161e
9 files changed
+57
-20
No files matched your search
@@ -166,6 +166,7 @@ fn main() {
|
||||
&naga::front::glsl::Options {
|
||||
entry_points,
|
||||
defines: Default::default(),
|
||||
strip_unused_linkages: false,
|
||||
},
|
||||
)
|
||||
.unwrap_or_else(|err| {
|
||||
@@ -183,6 +184,7 @@ fn main() {
|
||||
&naga::front::glsl::Options {
|
||||
entry_points,
|
||||
defines: Default::default(),
|
||||
strip_unused_linkages: false,
|
||||
},
|
||||
)
|
||||
.unwrap_or_else(|err| {
|
||||
@@ -200,6 +202,7 @@ fn main() {
|
||||
&naga::front::glsl::Options {
|
||||
entry_points,
|
||||
defines: Default::default(),
|
||||
strip_unused_linkages: false,
|
||||
},
|
||||
)
|
||||
.unwrap_or_else(|err| {
|
||||
|
||||
Reference in new issue
Block a user