Skip to main content

BackendContext

Struct BackendContext 

Source
pub struct BackendContext<'a> { /* private fields */ }

Implementations§

Source§

impl BackendContext<'_>

Source

pub fn new_builder<'a>( instance: Instance, physical_device: PhysicalDevice, device: Device, (queue, queue_index): (Queue, usize), get_proc: &'a impl GetProc, max_api_version: Option<Version>, ) -> Builder<'a>

Source

pub unsafe fn new( instance: Instance, physical_device: PhysicalDevice, device: Device, (queue, queue_index): (Queue, usize), get_proc: &dyn GetProc, ) -> BackendContext<'_>

👎Deprecated since 0.98.0:

use BackendContext::new_builder(…).build()

§Safety

instance, physical_device, device, and queue must outlive the BackendContext returned.

Source

pub unsafe fn new_with_extensions<'a>( instance: Instance, physical_device: PhysicalDevice, device: Device, (queue, queue_index): (Queue, usize), get_proc: &'a dyn GetProc, instance_extensions: &[&str], device_extensions: &[&str], ) -> BackendContext<'a>

👎Deprecated since 0.98.0:

use BackendContext::new_builder(…).with_extensions(…).build()

§Safety

instance, physical_device, device, and queue must outlive the BackendContext returned.

Source

pub fn set_protected_context( &mut self, protected_context: Protected, ) -> &mut Self

Source

pub fn set_max_api_version( &mut self, version: impl Into<Option<Version>>, ) -> &mut Self

Sets the maximum Vulkan API version Skia should use.

Passing None restores Skia’s default 0 sentinel. Skia then queries vkEnumerateInstanceVersion() and uses that loader-reported version as the upper limit when validating Vulkan entry points.

Trait Implementations§

Source§

impl Debug for BackendContext<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for BackendContext<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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> UnsafeUnpin for BackendContext<'a>

§

impl<'a> !UnwindSafe for BackendContext<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.