gpu/internal/driver: use strings for generated DXIL assembly

Literal strings are a more compact than literal byte slices. A future
change will switch to go:embed to save even more space.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-04-12 12:34:59 +02:00
parent fbee13a07d
commit 23e0c898ef
6 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ func (conv *Converter) Run(out io.Writer) error {
fmt.Fprintf(out, "GLSL150: `%s`,\n", src.GLSL150)
}
if len(src.HLSL) > 0 {
fmt.Fprintf(out, "HLSL: %#v,\n", src.HLSL)
fmt.Fprintf(out, "HLSL: %q,\n", src.HLSL)
}
fmt.Fprintf(out, "}")
if multiVariant {