shaderir/glsl: Fix the panic messages

This commit is contained in:
Hajime Hoshi 2020-08-05 01:50:41 +09:00
parent c22ec580bc
commit ffee5eb6b8
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ type compileContext struct {
func (c *compileContext) structName(p *shaderir.Program, t *shaderir.Type) string {
if t.Main != shaderir.Struct {
panic("shaderir: the given type at structName must be a struct")
panic("glsl: the given type at structName must be a struct")
}
s := t.String()
if n, ok := c.structNames[s]; ok {

View File

@ -26,7 +26,7 @@ func typeString(t *shaderir.Type) (string, string) {
t0, t1 := typeString(&t.Sub[0])
return t0 + t1, fmt.Sprintf("[%d]", t.Length)
case shaderir.Struct:
panic("shaderir: a struct is not implemented")
panic("glsl: a struct is not implemented")
default:
return basicTypeString(t.Main), ""
}