pub struct BackendContext<'a> { /* private fields */ }
Implementations§
Source§impl BackendContext<'_>
impl BackendContext<'_>
Sourcepub unsafe fn new(
instance: Instance,
physical_device: PhysicalDevice,
device: Device,
(queue, queue_index): (Queue, usize),
get_proc: &impl GetProc,
) -> BackendContext<'_>
pub unsafe fn new( instance: Instance, physical_device: PhysicalDevice, device: Device, (queue, queue_index): (Queue, usize), get_proc: &impl GetProc, ) -> BackendContext<'_>
§Safety
instance
, physical_device
, device
, and queue
must outlive the BackendContext
returned.
Sourcepub unsafe fn new_with_extensions<'a>(
instance: Instance,
physical_device: PhysicalDevice,
device: Device,
(queue, queue_index): (Queue, usize),
get_proc: &'a impl GetProc,
instance_extensions: &[&str],
device_extensions: &[&str],
) -> BackendContext<'a>
pub unsafe fn new_with_extensions<'a>( instance: Instance, physical_device: PhysicalDevice, device: Device, (queue, queue_index): (Queue, usize), get_proc: &'a impl GetProc, instance_extensions: &[&str], device_extensions: &[&str], ) -> BackendContext<'a>
§Safety
instance
, physical_device
, device
, and queue
must outlive the BackendContext
returned.
pub fn set_protected_context( &mut self, protected_context: Protected, ) -> &mut Self
pub fn set_max_api_version(&mut self, version: impl Into<Version>) -> &mut Self
Trait Implementations§
Source§impl Debug for BackendContext<'_>
impl Debug for BackendContext<'_>
Auto Trait Implementations§
impl<'a> Freeze for BackendContext<'a>
impl<'a> !RefUnwindSafe for BackendContext<'a>
impl<'a> !Send for BackendContext<'a>
impl<'a> !Sync for BackendContext<'a>
impl<'a> Unpin for BackendContext<'a>
impl<'a> !UnwindSafe for BackendContext<'a>
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