Struct vulkanalia::Entry
source · pub struct Entry { /* private fields */ }
Expand description
A Vulkan entry point.
Implementations§
source§impl Entry
impl Entry
sourcepub unsafe fn new(
loader: impl Loader + 'static
) -> Result<Self, Box<dyn LoaderError>>
pub unsafe fn new( loader: impl Loader + 'static ) -> Result<Self, Box<dyn LoaderError>>
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.
sourcepub fn version(&self) -> VkResult<Version>
pub fn version(&self) -> VkResult<Version>
Gets the instance-level version of this Vulkan entry point.
sourcepub unsafe fn create_instance(
&self,
info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Instance>
pub unsafe fn create_instance( &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§
source§impl EntryV1_0 for Entry
impl EntryV1_0 for Entry
fn commands(&self) -> &EntryCommands
source§unsafe fn create_instance(
&self,
create_info: &InstanceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Instance>
unsafe fn create_instance( &self, create_info: &InstanceCreateInfo, allocator: Option<&AllocationCallbacks> ) -> VkResult<Instance>
source§unsafe fn enumerate_instance_extension_properties(
&self,
layer_name: Option<&[u8]>
) -> VkResult<Vec<ExtensionProperties>>
unsafe fn enumerate_instance_extension_properties( &self, layer_name: Option<&[u8]> ) -> VkResult<Vec<ExtensionProperties>>
impl EntryV1_2 for Entry
impl EntryV1_3 for Entry
impl Send for Entry
impl Sync for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl !RefUnwindSafe for Entry
impl Unpin for Entry
impl !UnwindSafe for Entry
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