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

type CommandQueue: CommandQueue[src]

Associated CommandQueue type.

type SwapChain: SwapChain[src]

Associated SwapChain type.

type Window[src]

Associated native Window type.

Loading content...

Required methods

fn from_window(window: &Self::Window) -> Self[src]

Create a new surface from a native window.

fn build_swapchain<T: RenderFormat>(
    &self,
    present_queue: &Self::CommandQueue
) -> Self::SwapChain
[src]

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

Loading content...

Implementors

Loading content...