Init initializes the device and all other resources for the renderframe.
(gp *GPU, makeDevice bool)
| 86 | |
| 87 | // Init initializes the device and all other resources for the renderframe. |
| 88 | func (rf *RenderFrame) Init(gp *GPU, makeDevice bool) error { |
| 89 | rf.GPU = gp |
| 90 | if makeDevice { |
| 91 | rf.OwnDevice = true |
| 92 | rf.Device.Init(gp, vk.QueueGraphicsBit) |
| 93 | } else { |
| 94 | rf.OwnDevice = false |
| 95 | } |
| 96 | rf.Config() |
| 97 | return nil |
| 98 | } |
| 99 | |
| 100 | // Config configures the framebuffers etc |
| 101 | func (rf *RenderFrame) Config() { |
no test coverage detected