()
| 70 | } |
| 71 | |
| 72 | func (sf *Surface) Defaults() { |
| 73 | sf.NFrames = 3 // requested, will be updated with actual |
| 74 | sf.Format.Defaults() |
| 75 | sf.Format.Set(1024, 768, vk.FormatR8g8b8a8Srgb) |
| 76 | sf.Format.SetMultisample(4) // good default |
| 77 | sf.DesiredFormats = []vk.Format{ |
| 78 | vk.FormatR8g8b8a8Srgb, |
| 79 | vk.FormatB8g8r8a8Srgb, |
| 80 | // vk.FormatR8g8b8a8Unorm, // these def too dark |
| 81 | // vk.FormatB8g8r8a8Unorm, |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // Init initializes the device and all other resources for the surface |
| 86 | // based on the vulkan surface handle which must be obtained from the |
no test coverage detected