[−][src]Struct ash::Instance
pub struct Instance { /* fields omitted */ }
Implementations
impl Instance
[src][−]
Trait Implementations
impl Clone for Instance
[src][+]
[+] Show hidden undocumented items
fn clone(&self) -> Instance
[src][−]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
Performs copy-assignment from source
. Read more
impl InstanceV1_0 for Instance
[src][+]
[+] Show hidden undocumented items
type Device = Device
unsafe fn create_device(
&self,
physical_device: PhysicalDevice,
create_info: &DeviceCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>
) -> Result<Self::Device, Result>
[src][−]
&self,
physical_device: PhysicalDevice,
create_info: &DeviceCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>
) -> Result<Self::Device, Result>
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateDevice.html
Safety
In order for the created Device
to be valid for the duration of its
usage, the Instance
this was called on must be dropped later than the
resulting Device
.
fn handle(&self) -> Instance
[src]
fn fp_v1_0(&self) -> &InstanceFnV1_0
[src]
unsafe fn get_device_proc_addr(
&self,
device: Device,
p_name: *const c_char
) -> PFN_vkVoidFunction
[src][−]
&self,
device: Device,
p_name: *const c_char
) -> PFN_vkVoidFunction
unsafe fn destroy_instance(
&self,
allocation_callbacks: Option<&AllocationCallbacks>
)
[src][−]
&self,
allocation_callbacks: Option<&AllocationCallbacks>
)
unsafe fn get_physical_device_format_properties(
&self,
physical_device: PhysicalDevice,
format: Format
) -> FormatProperties
[src][−]
&self,
physical_device: PhysicalDevice,
format: Format
) -> FormatProperties
unsafe fn get_physical_device_image_format_properties(
&self,
physical_device: PhysicalDevice,
format: Format,
typ: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags
) -> VkResult<ImageFormatProperties>
[src][−]
&self,
physical_device: PhysicalDevice,
format: Format,
typ: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags
) -> VkResult<ImageFormatProperties>
unsafe fn get_physical_device_memory_properties(
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceMemoryProperties
[src][−]
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceMemoryProperties
unsafe fn get_physical_device_properties(
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceProperties
[src][−]
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceProperties
unsafe fn get_physical_device_queue_family_properties(
&self,
physical_device: PhysicalDevice
) -> Vec<QueueFamilyProperties>
[src][−]
&self,
physical_device: PhysicalDevice
) -> Vec<QueueFamilyProperties>
unsafe fn get_physical_device_features(
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceFeatures
[src][−]
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceFeatures
unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<PhysicalDevice>>
[src][−]
unsafe fn enumerate_device_extension_properties(
&self,
device: PhysicalDevice
) -> Result<Vec<ExtensionProperties>, Result>
[src][−]
&self,
device: PhysicalDevice
) -> Result<Vec<ExtensionProperties>, Result>
impl InstanceV1_1 for Instance
[src][+]
[+] Show hidden undocumented items
fn fp_v1_1(&self) -> &InstanceFnV1_1
[src]
unsafe fn enumerate_physical_device_groups_len(&self) -> usize
[src]
fn enumerate_physical_device_groups(
&self,
out: &mut [PhysicalDeviceGroupProperties]
) -> VkResult<()>
[src][−]
&self,
out: &mut [PhysicalDeviceGroupProperties]
) -> VkResult<()>
unsafe fn get_physical_device_features2(
&self,
physical_device: PhysicalDevice,
features: &mut PhysicalDeviceFeatures2
)
[src][−]
&self,
physical_device: PhysicalDevice,
features: &mut PhysicalDeviceFeatures2
)
unsafe fn get_physical_device_properties2(
&self,
physical_device: PhysicalDevice,
prop: &mut PhysicalDeviceProperties2
)
[src][−]
&self,
physical_device: PhysicalDevice,
prop: &mut PhysicalDeviceProperties2
)
unsafe fn get_physical_device_format_properties2(
&self,
physical_device: PhysicalDevice,
format: Format,
out: &mut FormatProperties2
)
[src][−]
&self,
physical_device: PhysicalDevice,
format: Format,
out: &mut FormatProperties2
)
unsafe fn get_physical_device_image_format_properties2(
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceImageFormatInfo2,
image_format_prop: &mut ImageFormatProperties2
) -> VkResult<()>
[src][−]
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceImageFormatInfo2,
image_format_prop: &mut ImageFormatProperties2
) -> VkResult<()>
unsafe fn get_physical_device_queue_family_properties2_len(
&self,
physical_device: PhysicalDevice
) -> usize
[src]
&self,
physical_device: PhysicalDevice
) -> usize
unsafe fn get_physical_device_queue_family_properties2(
&self,
physical_device: PhysicalDevice,
queue_family_props: &mut [QueueFamilyProperties2]
)
[src][−]
&self,
physical_device: PhysicalDevice,
queue_family_props: &mut [QueueFamilyProperties2]
)
unsafe fn get_physical_device_memory_properties2(
&self,
physical_device: PhysicalDevice,
out: &mut PhysicalDeviceMemoryProperties2
)
[src][−]
&self,
physical_device: PhysicalDevice,
out: &mut PhysicalDeviceMemoryProperties2
)
unsafe fn get_physical_device_sparse_image_format_properties2_len(
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceSparseImageFormatInfo2
) -> usize
[src]
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceSparseImageFormatInfo2
) -> usize
unsafe fn get_physical_device_sparse_image_format_properties2(
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceSparseImageFormatInfo2,
out: &mut [SparseImageFormatProperties2]
)
[src][−]
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceSparseImageFormatInfo2,
out: &mut [SparseImageFormatProperties2]
)
unsafe fn get_physical_device_external_buffer_properties(
&self,
physical_device: PhysicalDevice,
external_buffer_info: &PhysicalDeviceExternalBufferInfo,
out: &mut ExternalBufferProperties
)
[src][−]
&self,
physical_device: PhysicalDevice,
external_buffer_info: &PhysicalDeviceExternalBufferInfo,
out: &mut ExternalBufferProperties
)
unsafe fn get_physical_device_external_fence_properties(
&self,
physical_device: PhysicalDevice,
external_fence_info: &PhysicalDeviceExternalFenceInfo,
out: &mut ExternalFenceProperties
)
[src][−]
&self,
physical_device: PhysicalDevice,
external_fence_info: &PhysicalDeviceExternalFenceInfo,
out: &mut ExternalFenceProperties
)
unsafe fn get_physical_device_external_semaphore_properties(
&self,
physical_device: PhysicalDevice,
external_semaphore_info: &PhysicalDeviceExternalSemaphoreInfo,
out: &mut ExternalSemaphoreProperties
)
[src][−]
&self,
physical_device: PhysicalDevice,
external_semaphore_info: &PhysicalDeviceExternalSemaphoreInfo,
out: &mut ExternalSemaphoreProperties
)
impl InstanceV1_2 for Instance
[src][+]
[+] Show hidden undocumented items
fn fp_v1_2(&self) -> &InstanceFnV1_2
[src]
Auto Trait Implementations
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
[+] Show hidden undocumented items
fn type_id(&self) -> TypeId
[src][−]
Gets the TypeId
of self
. Read more
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
[+] Show hidden undocumented items
fn borrow(&self) -> &T
[src][−]
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
[+] Show hidden undocumented items
fn borrow_mut(&mut self) -> &mut T
[src][−]
Mutably borrows from an owned value. Read more
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,
[+] Show hidden undocumented items
🔬 This is a nightly-only experimental API. (
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src][−]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src][−]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
[+] Show hidden undocumented items
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
Performs the conversion.
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,