mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user