Struct rich_sdl2_rust::vulkan::VkInstance
source · pub struct VkInstance<'window> { /* private fields */ }
Available on crate feature
vulkan
only.Expand description
A Vulkan instance from a window.
Implementations§
source§impl<'window> VkInstance<'window>
impl<'window> VkInstance<'window>
sourcepub fn new(window: &'window Window<'window>) -> Result<Self>
pub fn new(window: &'window Window<'window>) -> Result<Self>
Constructs an instance from the window, or Err
on failure.
sourcepub fn extensions(&self) -> &[String]
pub fn extensions(&self) -> &[String]
Returns the names of the supported extensions.
sourcepub fn drawable_size(&self) -> Size
pub fn drawable_size(&self) -> Size
Returns the drawable region size.
Trait Implementations§
Auto Trait Implementations§
impl<'window> !RefUnwindSafe for VkInstance<'window>
impl<'window> !Send for VkInstance<'window>
impl<'window> !Sync for VkInstance<'window>
impl<'window> Unpin for VkInstance<'window>
impl<'window> !UnwindSafe for VkInstance<'window>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more