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

Method SetNil

vgpu/image.go:747–753  ·  view source on GitHub ↗

SetNil sets everything to nil, for shared image

()

Source from the content-addressed store, hash-verified

745
746// SetNil sets everything to nil, for shared image
747func (im *Image) SetNil() {
748 im.View = vk.NullImageView
749 im.Image = vk.NullImage
750 im.Dev = nil
751 im.Host.SetNil()
752 im.Flags = 0
753}
754
755// SetSize sets the size. If the size is not the same as current,
756// and Image owns the Host and / or Image, then those are resized.

Callers 1

FreeHostMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected