Struct vulkanalia::Entry [−][src]
A Vulkan entry point.
Implementations
impl Entry
[src]
pub unsafe fn new(
loader: impl Loader + 'static
) -> Result<Self, Box<dyn Error + 'static>>
[src]
loader: impl Loader + 'static
) -> Result<Self, Box<dyn Error + 'static>>
Loads a Vulkan entry point using a Vulkan function loader.
Safety
The Loader::load
method will be called on the supplied Loader
implementation to load the entry commands so the safety requirements of
Loader::load
for the Loader
implementation used must be upheld.
pub fn version(&self) -> VkResult<Version>
[src]
Gets the instance-level version of this Vulkan entry point.
pub unsafe fn create_instance(
&self,
info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Instance>
[src]
&self,
info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Instance>
Creates a Vulkan instance using this Vulkan entry point.
Safety
The Loader::load
method will be called on the supplied Loader
implementation to load the instance commands so the safety requirements
of Loader::load
for the Loader
implementation used must be
upheld.
Trait Implementations
impl Clone for Entry
[src]
impl Debug for Entry
[src]
impl EntryV1_0 for Entry
[src]
fn commands(&self) -> &EntryCommands
[src]
unsafe fn create_instance(
&self,
create_info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Instance>
[src]
&self,
create_info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Instance>
unsafe fn enumerate_instance_extension_properties(
&self,
layer_name: Option<&[u8]>
) -> VkResult<Vec<ExtensionProperties>>
[src]
&self,
layer_name: Option<&[u8]>
) -> VkResult<Vec<ExtensionProperties>>
unsafe fn enumerate_instance_layer_properties(
&self
) -> VkResult<Vec<LayerProperties>>
[src]
&self
) -> VkResult<Vec<LayerProperties>>
impl EntryV1_1 for Entry
[src]
unsafe fn enumerate_instance_version(&self) -> VkResult<u32>
[src]
impl EntryV1_2 for Entry
[src]
impl Send for Entry
[src]
impl Sync for Entry
[src]
Auto Trait Implementations
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,