()
| 161 | } |
| 162 | |
| 163 | func (rf *RenderFrame) Destroy() { |
| 164 | rf.Free() |
| 165 | if rf.OwnDevice { |
| 166 | rf.Device.Destroy() |
| 167 | } |
| 168 | rf.GPU = nil |
| 169 | } |
| 170 | |
| 171 | // SubmitRender submits a rendering command that must have been added |
| 172 | // to the given command buffer, calling CmdEnd on the buffer first. |