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

Method AllocTexture

vgpu/texture.go:30–36  ·  view source on GitHub ↗

AllocTexture allocates texture device image, stdview, and sampler

()

Source from the content-addressed store, hash-verified

28
29// AllocTexture allocates texture device image, stdview, and sampler
30func (tx *Texture) AllocTexture() {
31 tx.AllocImage()
32 if tx.Sampler.VkSampler == vk.NullSampler {
33 tx.Sampler.Config(tx.GPU, tx.Dev)
34 }
35 tx.ConfigStdView()
36}
37
38///////////////////////////////////////////////////
39

Callers 3

SetGoImageMethod · 0.80
AllocTexturesMethod · 0.80
ConfigImageMethod · 0.80

Calls 3

AllocImageMethod · 0.80
ConfigStdViewMethod · 0.80
ConfigMethod · 0.65

Tested by

no test coverage detected