ConfigMulti configures this image as a mutisampling image using format. Only makes a device image -- no host rep.
(gp *GPU, dev vk.Device, imgFmt *ImageFormat)
| 626 | // ConfigMulti configures this image as a mutisampling image |
| 627 | // using format. Only makes a device image -- no host rep. |
| 628 | func (im *Image) ConfigMulti(gp *GPU, dev vk.Device, imgFmt *ImageFormat) { |
| 629 | im.GPU = gp |
| 630 | im.Dev = dev |
| 631 | im.Format.Format = imgFmt.Format |
| 632 | im.Format.Samples = imgFmt.Samples |
| 633 | im.Format.Layers = 1 |
| 634 | im.SetFlag(true, ImageOwnsImage, FramebufferImage) |
| 635 | if im.SetSize(imgFmt.Size) { |
| 636 | im.ConfigStdView() |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | // ConfigStdView configures a standard 2D image view, for current image, |
| 641 | // format, and device. |
no test coverage detected