ConfigFramebuffer configures this image as a framebuffer image using format. Sets multisampling to 1, layers to 1. Only makes a device image -- no host rep.
(gp *GPU, dev vk.Device, imgFmt *ImageFormat)
| 597 | // using format. Sets multisampling to 1, layers to 1. |
| 598 | // Only makes a device image -- no host rep. |
| 599 | func (im *Image) ConfigFramebuffer(gp *GPU, dev vk.Device, imgFmt *ImageFormat) { |
| 600 | im.GPU = gp |
| 601 | im.Dev = dev |
| 602 | im.Format.Format = imgFmt.Format |
| 603 | im.Format.SetMultisample(1) |
| 604 | im.Format.Layers = 1 |
| 605 | im.SetFlag(true, ImageOwnsImage, FramebufferImage) |
| 606 | if im.SetSize(imgFmt.Size) { |
| 607 | im.ConfigStdView() |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | // ConfigDepth configures this image as a depth image |
| 612 | // using given depth image format, and other on format information |
no test coverage detected