Trait gfx_core::Surface [] [src]

pub trait Surface {
    type CommandQueue: CommandQueue;
    type SwapChain: SwapChain;
    type Window;
    fn from_window(window: &Self::Window) -> Self;
    fn build_swapchain<T: RenderFormat>(
        &self,
        present_queue: &Self::CommandQueue
    ) -> Self::SwapChain; }

A Surface abstracts the surface of a native window, which will be presented

Associated Types

Associated CommandQueue type.

Associated SwapChain type.

Associated native Window type.

Required Methods

Create a new surface from a native window.

Create a new swapchain from the current surface with an associated present queue.

Implementors