[−][src]Struct bedrock::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]
instance: &Instance,
mode: VkDisplayModeKHR,
plane_index: u32,
plane_stack_index: u32,
transform: SurfaceTransform,
global_alpha: f32,
alpha_mode: DisplayPlaneAlpha,
extent: Extent2D
) -> Result<Self>
Create a Surface object representing a display plane and mode
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
Trait Implementations
impl Clone for Surface[src]
impl VkHandle for Surface[src]
type Handle = VkSurfaceKHR
fn native_ptr(&self) -> VkSurfaceKHR[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,