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

Function NewGPU

vgpu/gpu.go:134–138  ·  view source on GitHub ↗

NewGPU returns a new GPU struct with Graphics Defaults set configure any additional defaults before calling Config. Use NewComputeGPU for a compute-only GPU that doesn't load graphics extensions.

()

Source from the content-addressed store, hash-verified

132// configure any additional defaults before calling Config.
133// Use NewComputeGPU for a compute-only GPU that doesn't load graphics extensions.
134func NewGPU() *GPU {
135 gp := &GPU{}
136 gp.Defaults(true)
137 return gp
138}
139
140// NewComputeGPU returns a new GPU struct with Compute Defaults set
141// configure any additional defaults before calling Config.

Callers 11

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
NoDisplayGPUFunction · 0.92
InitVkMethod · 0.92
InitVkMethod · 0.92
InitVkMethod · 0.92
NoDisplayGPUFunction · 0.85

Calls 1

DefaultsMethod · 0.95

Tested by

no test coverage detected