From a536b3ee258257d16adf26537e3955cfc5c1be92 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 9 Aug 2020 04:22:09 +0900 Subject: [PATCH] shaderir/metal: Bug fix: Array initialization Updates #1285 --- internal/shaderir/metal/metal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/shaderir/metal/metal.go b/internal/shaderir/metal/metal.go index f0810e1fc..0da703eb5 100644 --- a/internal/shaderir/metal/metal.go +++ b/internal/shaderir/metal/metal.go @@ -202,7 +202,7 @@ func (c *compileContext) metalVarInit(p *shaderir.Program, t *shaderir.Type) str es = append(es, init) } t := typeString(t, false, false) - return fmt.Sprintf("%s(%s)", t, strings.Join(es, ", ")) + return fmt.Sprintf("%s{%s}", t, strings.Join(es, ", ")) case shaderir.Struct: panic("not implemented") case shaderir.Bool: