MCPcopy Create free account
hub / github.com/cogentcore/core / NewGraphicsSystem

Method NewGraphicsSystem

vgpu/gpu.go:462–466  ·  view source on GitHub ↗

NewGraphicsSystem returns a new system initialized for this GPU, for graphics functionality, using Device from the Surface or RenderFrame depending on the target of rendering.

(name string, dev *Device)

Source from the content-addressed store, hash-verified

460// for graphics functionality, using Device from the Surface or
461// RenderFrame depending on the target of rendering.
462func (gp *GPU) NewGraphicsSystem(name string, dev *Device) *System {
463 sy := &System{}
464 sy.InitGraphics(gp, name, dev)
465 return sy
466}
467
468// PropertiesString returns a human-readable summary of the GPU properties.
469func (gp *GPU) PropertiesString(print bool) string {

Callers 8

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
SetSystemWindowMethod · 0.80
SetSystemWindowMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

InitGraphicsMethod · 0.95

Tested by

no test coverage detected