sarekt 0.0.4

A rendering engine based on Vulkan, but capable of being expanded to other graphics API backends such as Metal or D3D12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ash::vk;

/// Wrapper for the surface and its associated methods.
pub struct SurfaceAndExtension {
  pub surface: vk::SurfaceKHR,
  pub surface_functions: ash::extensions::khr::Surface,
}
impl SurfaceAndExtension {
  pub fn new(surface: vk::SurfaceKHR, surface_functions: ash::extensions::khr::Surface) -> Self {
    SurfaceAndExtension {
      surface,
      surface_functions,
    }
  }
}