Struct vulkano::swapchain::Surface [] [src]

pub struct Surface<W> { /* fields omitted */ }

Represents a surface on the screen.

Creating a Surface is platform-specific.

Methods

impl<W> Surface<W>
[src]

[src]

Creates a Surface given the raw handler.

Be careful when using it

[src]

Creates a Surface that covers a display mode.

Panic

  • Panics if display_mode and plane don't belong to the same physical device.
  • Panics if plane doesn't support the display of display_mode.

[src]

Creates a Surface from a Win32 window.

The surface's min, max and current extent will always match the window's dimensions.

Safety

The caller must ensure that the hinstance and the hwnd are both correct and stay alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Creates a Surface from an XCB window.

The surface's min, max and current extent will always match the window's dimensions.

Safety

The caller must ensure that the connection and the window are both correct and stay alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Creates a Surface from an Xlib window.

The surface's min, max and current extent will always match the window's dimensions.

Safety

The caller must ensure that the display and the window are both correct and stay alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Creates a Surface from a Wayland window.

The window's dimensions will be set to the size of the swapchain.

Safety

The caller must ensure that the display and the surface are both correct and stay alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Creates a Surface from a MIR window.

If the swapchain's dimensions does not match the window's dimensions, the image will automatically be scaled during presentation.

Safety

The caller must ensure that the connection and the surface are both correct and stay alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Creates a Surface from an Android window.

Safety

The caller must ensure that the window is correct and stays alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Creates a Surface from an iOS UIView.

Safety

  • The caller must ensure that the view is correct and stays alive for the entire lifetime of the surface. The win parameter can be used to ensure this.
  • The UIView must be backed by a CALayer instance of type CAMetalLayer.

[src]

Creates a Surface from a MacOS NSView.

Safety

  • The caller must ensure that the view is correct and stays alive for the entire lifetime of the surface. The win parameter can be used to ensure this.
  • The NSView must be backed by a CALayer instance of type CAMetalLayer.

[src]

Creates a Surface from a code:nn::code:vi::code:Layer.

Safety

The caller must ensure that the window is correct and stays alive for the entire lifetime of the surface. The win parameter can be used to ensure this.

[src]

Returns true if the given queue family can draw on this surface.

[src]

Retreives the capabilities of a surface when used by a certain device.

Panic

  • Panics if the device and the surface don't belong to the same instance.

[src]

[src]

Returns the instance this surface was created with.

Trait Implementations

impl<W> VulkanObject for Surface<W>
[src]

The type of the object.

TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT

The DebugReportObjectTypeEXT of the internal Vulkan handle.

[src]

Returns a reference to the object.

impl<W> Debug for Surface<W>
[src]

[src]

Formats the value using the given formatter. Read more

impl<W> Drop for Surface<W>
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<W> Send for Surface<W> where
    W: Send

impl<W> Sync for Surface<W> where
    W: Sync