mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/metal: use %w instead of %v for errors
This commit is contained in:
parent
f57703175e
commit
c48fc05132
@ -71,15 +71,15 @@ func (s *Shader) init(device mtl.Device) error {
|
||||
src := msl.Compile(s.ir, v, f)
|
||||
lib, err := device.MakeLibrary(src, mtl.CompileOptions{})
|
||||
if err != nil {
|
||||
return fmt.Errorf("metal: device.MakeLibrary failed: %v, source: %s", err, src)
|
||||
return fmt.Errorf("metal: device.MakeLibrary failed: %w, source: %s", err, src)
|
||||
}
|
||||
vs, err := lib.MakeFunction(v)
|
||||
if err != nil {
|
||||
return fmt.Errorf("metal: lib.MakeFunction for vertex failed: %v, source: %s", err, src)
|
||||
return fmt.Errorf("metal: lib.MakeFunction for vertex failed: %w, source: %s", err, src)
|
||||
}
|
||||
fs, err := lib.MakeFunction(f)
|
||||
if err != nil {
|
||||
return fmt.Errorf("metal: lib.MakeFunction for fragment failed: %v, source: %s", err, src)
|
||||
return fmt.Errorf("metal: lib.MakeFunction for fragment failed: %w, source: %s", err, src)
|
||||
}
|
||||
s.fs = fs
|
||||
s.vs = vs
|
||||
|
Loading…
Reference in New Issue
Block a user