()
| 75 | } |
| 76 | |
| 77 | func (rf *RenderFrame) Defaults() { |
| 78 | rf.NFrames = 1 |
| 79 | rf.Format.Defaults() |
| 80 | // note: screen-correct results obtained by using Srgb here, which forces |
| 81 | // this format in the final output. Looks like what comes out from direct rendering. |
| 82 | rf.Format.Set(1024, 768, vk.FormatR8g8b8a8Srgb) |
| 83 | // rf.Format.Set(1024, 768, vk.FormatR8g8b8a8Unorm) |
| 84 | rf.Format.SetMultisample(4) |
| 85 | } |
| 86 | |
| 87 | // Init initializes the device and all other resources for the renderframe. |
| 88 | func (rf *RenderFrame) Init(gp *GPU, makeDevice bool) error { |
no test coverage detected