NoDisplayGPU Initializes the Vulkan GPU and returns that and the graphics GPU device, with given name, without connecting to the display.
(nm string)
| 562 | // and the graphics GPU device, with given name, without connecting |
| 563 | // to the display. |
| 564 | func NoDisplayGPU(nm string) (*GPU, *Device, error) { |
| 565 | if err := InitNoDisplay(); err != nil { |
| 566 | return nil, nil, err |
| 567 | } |
| 568 | gp := NewGPU() |
| 569 | if err := gp.Config(nm, nil); err != nil { |
| 570 | return nil, nil, err |
| 571 | } |
| 572 | dev, err := NewGraphicsDevice(gp) |
| 573 | return gp, dev, err |
| 574 | } |
no test coverage detected