ConfigDepth configures this image as a depth image using given depth image format, and other on format information from the render image format.
(gp *GPU, dev vk.Device, depthType Types, imgFmt *ImageFormat)
| 612 | // using given depth image format, and other on format information |
| 613 | // from the render image format. |
| 614 | func (im *Image) ConfigDepth(gp *GPU, dev vk.Device, depthType Types, imgFmt *ImageFormat) { |
| 615 | im.GPU = gp |
| 616 | im.Dev = dev |
| 617 | im.Format.Format = depthType.VkFormat() |
| 618 | im.Format.Samples = imgFmt.Samples |
| 619 | im.Format.Layers = 1 |
| 620 | im.SetFlag(true, DepthImage) |
| 621 | if im.SetSize(imgFmt.Size) { |
| 622 | im.ConfigDepthView() |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | // ConfigMulti configures this image as a mutisampling image |
| 627 | // using format. Only makes a device image -- no host rep. |
no test coverage detected