SetVkImage sets a Vk Image and configures a default 2D view based on existing format information (which must be set properly). Any exiting view is destroyed first. Must pass the relevant device.
(gp *GPU, dev vk.Device, img vk.Image)
| 587 | // based on existing format information (which must be set properly). |
| 588 | // Any exiting view is destroyed first. Must pass the relevant device. |
| 589 | func (im *Image) SetVkImage(gp *GPU, dev vk.Device, img vk.Image) { |
| 590 | im.GPU = gp |
| 591 | im.Image = img |
| 592 | im.Dev = dev |
| 593 | im.ConfigStdView() |
| 594 | } |
| 595 | |
| 596 | // ConfigFramebuffer configures this image as a framebuffer image |
| 597 | // using format. Sets multisampling to 1, layers to 1. |
no test coverage detected