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

Method SetFlag

vgpu/image.go:360–362  ·  view source on GitHub ↗

SetFlag sets flag(s) using atomic, safe for concurrent access

(on bool, flag ...enums.BitFlag)

Source from the content-addressed store, hash-verified

358
359// SetFlag sets flag(s) using atomic, safe for concurrent access
360func (im *Image) SetFlag(on bool, flag ...enums.BitFlag) {
361 im.Flags.SetFlag(on, flag...)
362}
363
364// IsActive returns true if the image is set and has a view
365func (im *Image) IsActive() bool {

Callers 11

ConfigFramebufferMethod · 0.95
ConfigDepthMethod · 0.95
ConfigMultiMethod · 0.95
ConfigStdViewMethod · 0.95
ConfigDepthViewMethod · 0.95
DestroyViewMethod · 0.95
FreeImageMethod · 0.95
FreeHostMethod · 0.95
AllocImageMethod · 0.95
AllocHostMethod · 0.95
ConfigValueHostMethod · 0.95

Calls 1

SetFlagMethod · 0.65

Tested by

no test coverage detected