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
use ash::vk;

#[derive(Copy, Clone, Debug)]
pub struct ImageAndView {
  pub image: vk::Image,
  pub view: vk::ImageView,
}
impl ImageAndView {
  /// Creates an image and imageview pairing, with a Drop implementation.
  /// Unsafe because you must clean up the vk::Image and vk::ImageView still.
  pub unsafe fn new(image: vk::Image, view: vk::ImageView) -> Self {
    Self { image, view }
  }
}