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

Method SetTextureDev

vgpu/var.go:164–172  ·  view source on GitHub ↗

SetTextureDev sets Device for textures only called on Role = TextureRole

(dev vk.Device)

Source from the content-addressed store, hash-verified

162// SetTextureDev sets Device for textures
163// only called on Role = TextureRole
164func (vr *Var) SetTextureDev(dev vk.Device) {
165 vals := vr.Values.ActiveValues()
166 for _, vl := range vals {
167 if vl.Texture == nil {
168 continue
169 }
170 vl.Texture.Dev = dev
171 }
172}
173
174// AllocTextures allocates images on device memory
175// only called on Role = TextureRole

Callers 1

ConfigMethod · 0.80

Calls 1

ActiveValuesMethod · 0.80

Tested by

no test coverage detected