pub struct Entry { /* private fields */ }Expand description
A Vulkan entry point.
Implementations§
Source§impl Entry
impl Entry
Sourcepub unsafe fn from_commands(static_commands: &StaticCommands) -> Self
pub unsafe fn from_commands(static_commands: &StaticCommands) -> Self
Loads a Vulkan entry point from previously loaded StaticCommands.
§Safety
static_commands must contain valid Vulkan commands.
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<&CStr>,
) -> VkResult<Vec<ExtensionProperties>>
unsafe fn enumerate_instance_extension_properties( &self, layer_name: Option<&CStr>, ) -> VkResult<Vec<ExtensionProperties>>
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