[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:
Jasper St. Pierre authored and Dzmitry Malyshau committed 2021-07-14 17:48:54 -04:00
1 parent 0b69aa8b8a
commit 0995c7161e
9 files changed
+57 -20

No files matched your search

+3
View File
@@ -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| {