[][src]Struct bedrock::Surface

pub struct Surface(_);

Opaque handle to a surface object

Methods

impl Surface[src]

pub unsafe fn from_raw(ptr: VkSurfaceKHR, parent: &Instance) -> Self[src]

Create an surface object by taking raw VkSurfaceKHR object.

Safety

ptr must be created from parent, and destroyed by this object(not yourself!).

impl Surface[src]

Creation Procedures

pub fn new_display_plane(
    instance: &Instance,
    mode: VkDisplayModeKHR,
    plane_index: u32,
    plane_stack_index: u32,
    transform: SurfaceTransform,
    global_alpha: f32,
    alpha_mode: DisplayPlaneAlpha,
    extent: Extent2D
) -> Result<Self>
[src]

Create a Surface object representing a display plane and mode

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

Trait Implementations

impl Clone for Surface[src]

impl VkHandle for Surface[src]

type Handle = VkSurfaceKHR

Auto Trait Implementations

impl !RefUnwindSafe for Surface

impl !Send for Surface

impl !Sync for Surface

impl Unpin for Surface

impl !UnwindSafe for Surface

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.