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

Method AllocTextures

vgpu/vals.go:483–492  ·  view source on GitHub ↗

Texture val functions AllocTextures allocates images on device memory only called on Role = TextureRole

(mm *Memory)

Source from the content-addressed store, hash-verified

481// AllocTextures allocates images on device memory
482// only called on Role = TextureRole
483func (vs *Values) AllocTextures(mm *Memory) {
484 vals := vs.ActiveValues()
485 for _, vl := range vals {
486 if vl.Texture == nil {
487 continue
488 }
489 vl.Texture.Dev = mm.Device.Device
490 vl.Texture.AllocTexture()
491 }
492}
493
494/////////////////////////////////////////////////////////////////////
495// ValueFlags

Callers

nothing calls this directly

Calls 2

ActiveValuesMethod · 0.95
AllocTextureMethod · 0.80

Tested by

no test coverage detected