mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
parent
a536b3ee25
commit
febdc46ad5
@ -196,15 +196,9 @@ func (c *compileContext) metalVarInit(p *shaderir.Program, t *shaderir.Type) str
|
||||
case shaderir.None:
|
||||
return "?(none)"
|
||||
case shaderir.Array:
|
||||
init := c.metalVarInit(p, &t.Sub[0])
|
||||
es := make([]string, 0, t.Length)
|
||||
for i := 0; i < t.Length; i++ {
|
||||
es = append(es, init)
|
||||
}
|
||||
t := typeString(t, false, false)
|
||||
return fmt.Sprintf("%s{%s}", t, strings.Join(es, ", "))
|
||||
return "{}"
|
||||
case shaderir.Struct:
|
||||
panic("not implemented")
|
||||
return "{}"
|
||||
case shaderir.Bool:
|
||||
return "false"
|
||||
case shaderir.Int:
|
||||
|
Loading…
Reference in New Issue
Block a user