Add draft in swapchain

This commit is contained in:
Pierre Krieger 2016-02-20 19:03:17 +01:00
parent e12c3015e7
commit 7b7bb7e4e0

View File

@ -66,6 +66,19 @@ impl Swapchain {
transform: SurfaceTransform, alpha: CompositeAlpha, mode: PresentMode,
clipped: bool) -> Result<(Arc<Swapchain>, Vec<ImagePrototype<Type2d, F, SwapchainAllocatedChunk>>), OomError>
where F: FormatMarker, S: Into<SharingMode>
{
Swapchain::new_inner(device, surface, num_images, format, dimensions, layers, usage,
sharing, transform, alpha, mode, clipped)
}
// TODO:
//pub fn recreate() { ... }
fn new_inner<F, S>(device: &Arc<Device>, surface: &Arc<Surface>, num_images: u32, format: F,
dimensions: [u32; 2], layers: u32, usage: &ImageUsage, sharing: S,
transform: SurfaceTransform, alpha: CompositeAlpha, mode: PresentMode,
clipped: bool) -> Result<(Arc<Swapchain>, Vec<ImagePrototype<Type2d, F, SwapchainAllocatedChunk>>), OomError>
where F: FormatMarker, S: Into<SharingMode>
{
// FIXME: check that the parameters are supported