pub trait SwapChainsAPI<SwapChainID>: 'static + Clone + Send {
    type Surface;
    type SwapChain: SwapChainAPI<Surface = Self::Surface>;

    // Required method
    fn get(&self, id: SwapChainID) -> Option<Self::SwapChain>;
}
Expand description

The consumer’s view of a collection of swap chains

Required Associated Types§

Required Methods§

source

fn get(&self, id: SwapChainID) -> Option<Self::SwapChain>

Get a swap chain

Implementors§

source§

impl<SwapChainID, Device> SwapChainsAPI<SwapChainID> for SwapChains<SwapChainID, Device>where SwapChainID: 'static + Clone + Eq + Hash + Debug + Sync + Send, Device: 'static + DeviceAPI, Device::Surface: Send,

§

type Surface = <Device as Device>::Surface

§

type SwapChain = SwapChain<Device>