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

Method AddInstanceExt

vgpu/gpu.go:161–170  ·  view source on GitHub ↗

AddInstanceExt adds given extension(s), only if not already set returns true if added.

(ext ...string)

Source from the content-addressed store, hash-verified

159// AddInstanceExt adds given extension(s), only if not already set
160// returns true if added.
161func (gp *GPU) AddInstanceExt(ext ...string) bool {
162 for _, ex := range ext {
163 i := FindString(ex, gp.InstanceExts)
164 if i >= 0 {
165 continue
166 }
167 gp.InstanceExts = append(gp.InstanceExts, ex)
168 }
169 return true
170}
171
172// AddDeviceExt adds given extension(s), only if not already set
173// returns true if added.

Callers 10

ConfigMethod · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
InitVkMethod · 0.80
InitVkMethod · 0.80
InitVkMethod · 0.80

Calls 1

FindStringFunction · 0.85

Tested by

no test coverage detected