internal/graphics: update error messages

This commit is contained in:
Hajime Hoshi 2022-12-24 14:34:02 +09:00
parent 7af300a468
commit f9650fbb8c

View File

@ -130,10 +130,10 @@ func CompileShader(src []byte) (*shaderir.Program, error) {
} }
if ir.VertexFunc.Block == nil { if ir.VertexFunc.Block == nil {
return nil, fmt.Errorf("graphicscommand: vertex shader entry point '%s' is missing", vert) return nil, fmt.Errorf("graphics: vertex shader entry point '%s' is missing", vert)
} }
if ir.FragmentFunc.Block == nil { if ir.FragmentFunc.Block == nil {
return nil, fmt.Errorf("graphicscommand: fragment shader entry point '%s' is missing", frag) return nil, fmt.Errorf("graphics: fragment shader entry point '%s' is missing", frag)
} }
return ir, nil return ir, nil