mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
Add draft in swapchain
This commit is contained in:
parent
e12c3015e7
commit
7b7bb7e4e0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user