AllocTexture allocates texture device image, stdview, and sampler
()
| 28 | |
| 29 | // AllocTexture allocates texture device image, stdview, and sampler |
| 30 | func (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 |
no test coverage detected