Struct vulkanalia::Instance
source · pub struct Instance { /* private fields */ }
Expand description
A Vulkan instance.
Implementations§
source§impl Instance
impl Instance
sourcepub fn extensions(&self) -> &HashSet<ExtensionName>
pub fn extensions(&self) -> &HashSet<ExtensionName>
Gets the loaded extensions for this Vulkan instance.
sourcepub fn layers(&self) -> &HashSet<ExtensionName>
pub fn layers(&self) -> &HashSet<ExtensionName>
Gets the loaded layers for this Vulkan instance.
sourcepub unsafe fn create_device(
&self,
physical_device: PhysicalDevice,
info: &DeviceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Device>
pub unsafe fn create_device( &self, physical_device: PhysicalDevice, info: &DeviceCreateInfo, allocator: Option<&AllocationCallbacks> ) -> VkResult<Device>
Creates a Vulkan device using this Vulkan instance.
Safety
The Loader::load
method will be called on the supplied Loader
implementation to load the device commands so the safety requirements of
Loader::load
for the Loader
implementation used must be upheld.
Trait Implementations§
source§impl ExtAcquireDrmDisplayExtension for Instance
impl ExtAcquireDrmDisplayExtension for Instance
source§const METADATA: Extension = EXT_ACQUIRE_DRM_DISPLAY_EXTENSION
const METADATA: Extension = EXT_ACQUIRE_DRM_DISPLAY_EXTENSION
The metadata for this extension.
source§unsafe fn acquire_drm_display_ext(
&self,
physical_device: PhysicalDevice,
drm_fd: i32,
display: DisplayKHR
) -> VkResult<()>
unsafe fn acquire_drm_display_ext( &self, physical_device: PhysicalDevice, drm_fd: i32, display: DisplayKHR ) -> VkResult<()>
source§unsafe fn get_drm_display_ext(
&self,
physical_device: PhysicalDevice,
drm_fd: i32,
connector_id: u32
) -> VkResult<DisplayKHR>
unsafe fn get_drm_display_ext( &self, physical_device: PhysicalDevice, drm_fd: i32, connector_id: u32 ) -> VkResult<DisplayKHR>
source§impl ExtAcquireXlibDisplayExtension for Instance
impl ExtAcquireXlibDisplayExtension for Instance
source§const METADATA: Extension = EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION
const METADATA: Extension = EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION
The metadata for this extension.
source§unsafe fn acquire_xlib_display_ext(
&self,
physical_device: PhysicalDevice,
display: DisplayKHR
) -> VkResult<Display>
unsafe fn acquire_xlib_display_ext( &self, physical_device: PhysicalDevice, display: DisplayKHR ) -> VkResult<Display>
source§unsafe fn get_rand_r_output_display_ext(
&self,
physical_device: PhysicalDevice,
rr_output: RROutput
) -> VkResult<(Display, DisplayKHR)>
unsafe fn get_rand_r_output_display_ext( &self, physical_device: PhysicalDevice, rr_output: RROutput ) -> VkResult<(Display, DisplayKHR)>
source§impl ExtDebugReportExtension for Instance
impl ExtDebugReportExtension for Instance
source§const METADATA: Extension = EXT_DEBUG_REPORT_EXTENSION
const METADATA: Extension = EXT_DEBUG_REPORT_EXTENSION
👎Deprecated: deprecated in favor of
VK_EXT_debug_utils
The metadata for this extension.
source§unsafe fn create_debug_report_callback_ext(
&self,
create_info: &DebugReportCallbackCreateInfoEXT,
allocator: Option<&AllocationCallbacks>
) -> VkResult<DebugReportCallbackEXT>
unsafe fn create_debug_report_callback_ext( &self, create_info: &DebugReportCallbackCreateInfoEXT, allocator: Option<&AllocationCallbacks> ) -> VkResult<DebugReportCallbackEXT>
👎Deprecated: deprecated in favor of
VK_EXT_debug_utils
source§unsafe fn debug_report_message_ext(
&self,
flags: DebugReportFlagsEXT,
object_type: DebugReportObjectTypeEXT,
object: u64,
location: usize,
message_code: i32,
layer_prefix: &[u8],
message: &[u8]
)
unsafe fn debug_report_message_ext( &self, flags: DebugReportFlagsEXT, object_type: DebugReportObjectTypeEXT, object: u64, location: usize, message_code: i32, layer_prefix: &[u8], message: &[u8] )
👎Deprecated: deprecated in favor of
VK_EXT_debug_utils
source§unsafe fn destroy_debug_report_callback_ext(
&self,
callback: DebugReportCallbackEXT,
allocator: Option<&AllocationCallbacks>
)
unsafe fn destroy_debug_report_callback_ext( &self, callback: DebugReportCallbackEXT, allocator: Option<&AllocationCallbacks> )
👎Deprecated: deprecated in favor of
VK_EXT_debug_utils
source§impl ExtDebugUtilsExtension for Instance
impl ExtDebugUtilsExtension for Instance
source§unsafe fn cmd_begin_debug_utils_label_ext(
&self,
command_buffer: CommandBuffer,
label_info: &DebugUtilsLabelEXT
)
unsafe fn cmd_begin_debug_utils_label_ext( &self, command_buffer: CommandBuffer, label_info: &DebugUtilsLabelEXT )
source§unsafe fn cmd_end_debug_utils_label_ext(&self, command_buffer: CommandBuffer)
unsafe fn cmd_end_debug_utils_label_ext(&self, command_buffer: CommandBuffer)
source§unsafe fn cmd_insert_debug_utils_label_ext(
&self,
command_buffer: CommandBuffer,
label_info: &DebugUtilsLabelEXT
)
unsafe fn cmd_insert_debug_utils_label_ext( &self, command_buffer: CommandBuffer, label_info: &DebugUtilsLabelEXT )
source§unsafe fn create_debug_utils_messenger_ext(
&self,
create_info: &DebugUtilsMessengerCreateInfoEXT,
allocator: Option<&AllocationCallbacks>
) -> VkResult<DebugUtilsMessengerEXT>
unsafe fn create_debug_utils_messenger_ext( &self, create_info: &DebugUtilsMessengerCreateInfoEXT, allocator: Option<&AllocationCallbacks> ) -> VkResult<DebugUtilsMessengerEXT>
source§unsafe fn destroy_debug_utils_messenger_ext(
&self,
messenger: DebugUtilsMessengerEXT,
allocator: Option<&AllocationCallbacks>
)
unsafe fn destroy_debug_utils_messenger_ext( &self, messenger: DebugUtilsMessengerEXT, allocator: Option<&AllocationCallbacks> )
source§unsafe fn queue_begin_debug_utils_label_ext(
&self,
queue: Queue,
label_info: &DebugUtilsLabelEXT
)
unsafe fn queue_begin_debug_utils_label_ext( &self, queue: Queue, label_info: &DebugUtilsLabelEXT )
source§unsafe fn queue_end_debug_utils_label_ext(&self, queue: Queue)
unsafe fn queue_end_debug_utils_label_ext(&self, queue: Queue)
source§unsafe fn queue_insert_debug_utils_label_ext(
&self,
queue: Queue,
label_info: &DebugUtilsLabelEXT
)
unsafe fn queue_insert_debug_utils_label_ext( &self, queue: Queue, label_info: &DebugUtilsLabelEXT )
source§unsafe fn set_debug_utils_object_name_ext(
&self,
device: Device,
name_info: &DebugUtilsObjectNameInfoEXT
) -> VkResult<()>
unsafe fn set_debug_utils_object_name_ext( &self, device: Device, name_info: &DebugUtilsObjectNameInfoEXT ) -> VkResult<()>
source§unsafe fn set_debug_utils_object_tag_ext(
&self,
device: Device,
tag_info: &DebugUtilsObjectTagInfoEXT
) -> VkResult<()>
unsafe fn set_debug_utils_object_tag_ext( &self, device: Device, tag_info: &DebugUtilsObjectTagInfoEXT ) -> VkResult<()>
source§unsafe fn submit_debug_utils_message_ext(
&self,
message_severity: DebugUtilsMessageSeverityFlagsEXT,
message_types: DebugUtilsMessageTypeFlagsEXT,
callback_data: &DebugUtilsMessengerCallbackDataEXT
)
unsafe fn submit_debug_utils_message_ext( &self, message_severity: DebugUtilsMessageSeverityFlagsEXT, message_types: DebugUtilsMessageTypeFlagsEXT, callback_data: &DebugUtilsMessengerCallbackDataEXT )
source§impl ExtDirectModeDisplayExtension for Instance
impl ExtDirectModeDisplayExtension for Instance
source§const METADATA: Extension = EXT_DIRECT_MODE_DISPLAY_EXTENSION
const METADATA: Extension = EXT_DIRECT_MODE_DISPLAY_EXTENSION
The metadata for this extension.
source§unsafe fn release_display_ext(
&self,
physical_device: PhysicalDevice,
display: DisplayKHR
) -> VkResult<()>
unsafe fn release_display_ext( &self, physical_device: PhysicalDevice, display: DisplayKHR ) -> VkResult<()>
source§impl ExtDirectfbSurfaceExtension for Instance
impl ExtDirectfbSurfaceExtension for Instance
source§unsafe fn create_direct_fb_surface_ext(
&self,
create_info: &DirectFBSurfaceCreateInfoEXT,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_direct_fb_surface_ext( &self, create_info: &DirectFBSurfaceCreateInfoEXT, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_physical_device_direct_fb_presentation_support_ext(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
dfb: *mut IDirectFB
) -> Bool32
unsafe fn get_physical_device_direct_fb_presentation_support_ext( &self, physical_device: PhysicalDevice, queue_family_index: u32, dfb: *mut IDirectFB ) -> Bool32
source§impl ExtDisplaySurfaceCounterExtension for Instance
impl ExtDisplaySurfaceCounterExtension for Instance
source§impl ExtHeadlessSurfaceExtension for Instance
impl ExtHeadlessSurfaceExtension for Instance
source§unsafe fn create_headless_surface_ext(
&self,
create_info: &HeadlessSurfaceCreateInfoEXT,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_headless_surface_ext( &self, create_info: &HeadlessSurfaceCreateInfoEXT, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§impl ExtMetalSurfaceExtension for Instance
impl ExtMetalSurfaceExtension for Instance
source§unsafe fn create_metal_surface_ext(
&self,
create_info: &MetalSurfaceCreateInfoEXT,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_metal_surface_ext( &self, create_info: &MetalSurfaceCreateInfoEXT, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§impl FuchsiaImagepipeSurfaceExtension for Instance
impl FuchsiaImagepipeSurfaceExtension for Instance
source§const METADATA: Extension = FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION
const METADATA: Extension = FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION
The metadata for this extension.
source§unsafe fn create_image_pipe_surface_fuchsia(
&self,
create_info: &ImagePipeSurfaceCreateInfoFUCHSIA,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_image_pipe_surface_fuchsia( &self, create_info: &ImagePipeSurfaceCreateInfoFUCHSIA, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§impl GgpStreamDescriptorSurfaceExtension for Instance
impl GgpStreamDescriptorSurfaceExtension for Instance
source§impl InstanceV1_0 for Instance
impl InstanceV1_0 for Instance
fn commands(&self) -> &InstanceCommands
fn handle(&self) -> Instance
source§unsafe fn create_device(
&self,
physical_device: PhysicalDevice,
create_info: &DeviceCreateInfo,
allocator: Option<&AllocationCallbacks>
) -> VkResult<Device>
unsafe fn create_device( &self, physical_device: PhysicalDevice, create_info: &DeviceCreateInfo, allocator: Option<&AllocationCallbacks> ) -> VkResult<Device>
source§unsafe fn destroy_instance(&self, allocator: Option<&AllocationCallbacks>)
unsafe fn destroy_instance(&self, allocator: Option<&AllocationCallbacks>)
source§unsafe fn enumerate_device_extension_properties(
&self,
physical_device: PhysicalDevice,
layer_name: Option<&[u8]>
) -> VkResult<Vec<ExtensionProperties>>
unsafe fn enumerate_device_extension_properties( &self, physical_device: PhysicalDevice, layer_name: Option<&[u8]> ) -> VkResult<Vec<ExtensionProperties>>
source§unsafe fn enumerate_device_layer_properties(
&self,
physical_device: PhysicalDevice
) -> VkResult<Vec<LayerProperties>>
unsafe fn enumerate_device_layer_properties( &self, physical_device: PhysicalDevice ) -> VkResult<Vec<LayerProperties>>
source§unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<PhysicalDevice>>
unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<PhysicalDevice>>
source§unsafe fn get_physical_device_features(
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceFeatures
unsafe fn get_physical_device_features( &self, physical_device: PhysicalDevice ) -> PhysicalDeviceFeatures
source§unsafe fn get_physical_device_format_properties(
&self,
physical_device: PhysicalDevice,
format: Format
) -> FormatProperties
unsafe fn get_physical_device_format_properties( &self, physical_device: PhysicalDevice, format: Format ) -> FormatProperties
source§unsafe fn get_physical_device_image_format_properties(
&self,
physical_device: PhysicalDevice,
format: Format,
type_: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags
) -> VkResult<ImageFormatProperties>
unsafe fn get_physical_device_image_format_properties( &self, physical_device: PhysicalDevice, format: Format, type_: ImageType, tiling: ImageTiling, usage: ImageUsageFlags, flags: ImageCreateFlags ) -> VkResult<ImageFormatProperties>
source§unsafe fn get_physical_device_memory_properties(
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceMemoryProperties
unsafe fn get_physical_device_memory_properties( &self, physical_device: PhysicalDevice ) -> PhysicalDeviceMemoryProperties
source§unsafe fn get_physical_device_properties(
&self,
physical_device: PhysicalDevice
) -> PhysicalDeviceProperties
unsafe fn get_physical_device_properties( &self, physical_device: PhysicalDevice ) -> PhysicalDeviceProperties
source§unsafe fn get_physical_device_queue_family_properties(
&self,
physical_device: PhysicalDevice
) -> Vec<QueueFamilyProperties>
unsafe fn get_physical_device_queue_family_properties( &self, physical_device: PhysicalDevice ) -> Vec<QueueFamilyProperties>
source§unsafe fn get_physical_device_sparse_image_format_properties(
&self,
physical_device: PhysicalDevice,
format: Format,
type_: ImageType,
samples: SampleCountFlags,
usage: ImageUsageFlags,
tiling: ImageTiling
) -> Vec<SparseImageFormatProperties>
unsafe fn get_physical_device_sparse_image_format_properties( &self, physical_device: PhysicalDevice, format: Format, type_: ImageType, samples: SampleCountFlags, usage: ImageUsageFlags, tiling: ImageTiling ) -> Vec<SparseImageFormatProperties>
source§impl InstanceV1_1 for Instance
impl InstanceV1_1 for Instance
source§unsafe fn enumerate_physical_device_groups(
&self
) -> VkResult<Vec<PhysicalDeviceGroupProperties>>
unsafe fn enumerate_physical_device_groups( &self ) -> VkResult<Vec<PhysicalDeviceGroupProperties>>
source§unsafe fn get_physical_device_external_buffer_properties(
&self,
physical_device: PhysicalDevice,
external_buffer_info: &PhysicalDeviceExternalBufferInfo
) -> ExternalBufferProperties
unsafe fn get_physical_device_external_buffer_properties( &self, physical_device: PhysicalDevice, external_buffer_info: &PhysicalDeviceExternalBufferInfo ) -> ExternalBufferProperties
source§unsafe fn get_physical_device_external_fence_properties(
&self,
physical_device: PhysicalDevice,
external_fence_info: &PhysicalDeviceExternalFenceInfo
) -> ExternalFenceProperties
unsafe fn get_physical_device_external_fence_properties( &self, physical_device: PhysicalDevice, external_fence_info: &PhysicalDeviceExternalFenceInfo ) -> ExternalFenceProperties
source§unsafe fn get_physical_device_external_semaphore_properties(
&self,
physical_device: PhysicalDevice,
external_semaphore_info: &PhysicalDeviceExternalSemaphoreInfo
) -> ExternalSemaphoreProperties
unsafe fn get_physical_device_external_semaphore_properties( &self, physical_device: PhysicalDevice, external_semaphore_info: &PhysicalDeviceExternalSemaphoreInfo ) -> ExternalSemaphoreProperties
source§unsafe fn get_physical_device_features2(
&self,
physical_device: PhysicalDevice,
features: &mut PhysicalDeviceFeatures2
)
unsafe fn get_physical_device_features2( &self, physical_device: PhysicalDevice, features: &mut PhysicalDeviceFeatures2 )
source§unsafe fn get_physical_device_format_properties2(
&self,
physical_device: PhysicalDevice,
format: Format,
format_properties: &mut FormatProperties2
)
unsafe fn get_physical_device_format_properties2( &self, physical_device: PhysicalDevice, format: Format, format_properties: &mut FormatProperties2 )
source§unsafe fn get_physical_device_image_format_properties2(
&self,
physical_device: PhysicalDevice,
image_format_info: &PhysicalDeviceImageFormatInfo2,
image_format_properties: &mut ImageFormatProperties2
) -> VkResult<()>
unsafe fn get_physical_device_image_format_properties2( &self, physical_device: PhysicalDevice, image_format_info: &PhysicalDeviceImageFormatInfo2, image_format_properties: &mut ImageFormatProperties2 ) -> VkResult<()>
source§unsafe fn get_physical_device_memory_properties2(
&self,
physical_device: PhysicalDevice,
memory_properties: &mut PhysicalDeviceMemoryProperties2
)
unsafe fn get_physical_device_memory_properties2( &self, physical_device: PhysicalDevice, memory_properties: &mut PhysicalDeviceMemoryProperties2 )
source§unsafe fn get_physical_device_properties2(
&self,
physical_device: PhysicalDevice,
properties: &mut PhysicalDeviceProperties2
)
unsafe fn get_physical_device_properties2( &self, physical_device: PhysicalDevice, properties: &mut PhysicalDeviceProperties2 )
source§unsafe fn get_physical_device_queue_family_properties2(
&self,
physical_device: PhysicalDevice
) -> Vec<QueueFamilyProperties2>
unsafe fn get_physical_device_queue_family_properties2( &self, physical_device: PhysicalDevice ) -> Vec<QueueFamilyProperties2>
source§unsafe fn get_physical_device_sparse_image_format_properties2(
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceSparseImageFormatInfo2
) -> Vec<SparseImageFormatProperties2>
unsafe fn get_physical_device_sparse_image_format_properties2( &self, physical_device: PhysicalDevice, format_info: &PhysicalDeviceSparseImageFormatInfo2 ) -> Vec<SparseImageFormatProperties2>
source§impl InstanceV1_3 for Instance
impl InstanceV1_3 for Instance
source§impl KhrAndroidSurfaceExtension for Instance
impl KhrAndroidSurfaceExtension for Instance
source§unsafe fn create_android_surface_khr(
&self,
create_info: &AndroidSurfaceCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_android_surface_khr( &self, create_info: &AndroidSurfaceCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§impl KhrDeviceGroupCreationExtension for Instance
impl KhrDeviceGroupCreationExtension for Instance
source§impl KhrDisplayExtension for Instance
impl KhrDisplayExtension for Instance
source§unsafe fn create_display_mode_khr(
&self,
physical_device: PhysicalDevice,
display: DisplayKHR,
create_info: &DisplayModeCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<DisplayModeKHR>
unsafe fn create_display_mode_khr( &self, physical_device: PhysicalDevice, display: DisplayKHR, create_info: &DisplayModeCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<DisplayModeKHR>
source§unsafe fn create_display_plane_surface_khr(
&self,
create_info: &DisplaySurfaceCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_display_plane_surface_khr( &self, create_info: &DisplaySurfaceCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_display_mode_properties_khr(
&self,
physical_device: PhysicalDevice,
display: DisplayKHR
) -> VkResult<Vec<DisplayModePropertiesKHR>>
unsafe fn get_display_mode_properties_khr( &self, physical_device: PhysicalDevice, display: DisplayKHR ) -> VkResult<Vec<DisplayModePropertiesKHR>>
source§unsafe fn get_display_plane_capabilities_khr(
&self,
physical_device: PhysicalDevice,
mode: DisplayModeKHR,
plane_index: u32
) -> VkResult<DisplayPlaneCapabilitiesKHR>
unsafe fn get_display_plane_capabilities_khr( &self, physical_device: PhysicalDevice, mode: DisplayModeKHR, plane_index: u32 ) -> VkResult<DisplayPlaneCapabilitiesKHR>
source§unsafe fn get_display_plane_supported_displays_khr(
&self,
physical_device: PhysicalDevice,
plane_index: u32
) -> VkResult<Vec<DisplayKHR>>
unsafe fn get_display_plane_supported_displays_khr( &self, physical_device: PhysicalDevice, plane_index: u32 ) -> VkResult<Vec<DisplayKHR>>
source§unsafe fn get_physical_device_display_plane_properties_khr(
&self,
physical_device: PhysicalDevice
) -> VkResult<Vec<DisplayPlanePropertiesKHR>>
unsafe fn get_physical_device_display_plane_properties_khr( &self, physical_device: PhysicalDevice ) -> VkResult<Vec<DisplayPlanePropertiesKHR>>
source§impl KhrExternalFenceCapabilitiesExtension for Instance
impl KhrExternalFenceCapabilitiesExtension for Instance
source§const METADATA: Extension = KHR_EXTERNAL_FENCE_CAPABILITIES_EXTENSION
const METADATA: Extension = KHR_EXTERNAL_FENCE_CAPABILITIES_EXTENSION
The metadata for this extension.
source§unsafe fn get_physical_device_external_fence_properties_khr(
&self,
physical_device: PhysicalDevice,
external_fence_info: &PhysicalDeviceExternalFenceInfo
) -> ExternalFenceProperties
unsafe fn get_physical_device_external_fence_properties_khr( &self, physical_device: PhysicalDevice, external_fence_info: &PhysicalDeviceExternalFenceInfo ) -> ExternalFenceProperties
source§impl KhrExternalMemoryCapabilitiesExtension for Instance
impl KhrExternalMemoryCapabilitiesExtension for Instance
source§const METADATA: Extension = KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION
const METADATA: Extension = KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION
The metadata for this extension.
source§unsafe fn get_physical_device_external_buffer_properties_khr(
&self,
physical_device: PhysicalDevice,
external_buffer_info: &PhysicalDeviceExternalBufferInfo
) -> ExternalBufferProperties
unsafe fn get_physical_device_external_buffer_properties_khr( &self, physical_device: PhysicalDevice, external_buffer_info: &PhysicalDeviceExternalBufferInfo ) -> ExternalBufferProperties
source§impl KhrExternalSemaphoreCapabilitiesExtension for Instance
impl KhrExternalSemaphoreCapabilitiesExtension for Instance
source§const METADATA: Extension = KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION
const METADATA: Extension = KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION
The metadata for this extension.
source§unsafe fn get_physical_device_external_semaphore_properties_khr(
&self,
physical_device: PhysicalDevice,
external_semaphore_info: &PhysicalDeviceExternalSemaphoreInfo
) -> ExternalSemaphoreProperties
unsafe fn get_physical_device_external_semaphore_properties_khr( &self, physical_device: PhysicalDevice, external_semaphore_info: &PhysicalDeviceExternalSemaphoreInfo ) -> ExternalSemaphoreProperties
source§impl KhrGetDisplayProperties2Extension for Instance
impl KhrGetDisplayProperties2Extension for Instance
source§const METADATA: Extension = KHR_GET_DISPLAY_PROPERTIES2_EXTENSION
const METADATA: Extension = KHR_GET_DISPLAY_PROPERTIES2_EXTENSION
The metadata for this extension.
source§unsafe fn get_display_mode_properties2_khr(
&self,
physical_device: PhysicalDevice,
display: DisplayKHR
) -> VkResult<Vec<DisplayModeProperties2KHR>>
unsafe fn get_display_mode_properties2_khr( &self, physical_device: PhysicalDevice, display: DisplayKHR ) -> VkResult<Vec<DisplayModeProperties2KHR>>
source§unsafe fn get_display_plane_capabilities2_khr(
&self,
physical_device: PhysicalDevice,
display_plane_info: &DisplayPlaneInfo2KHR
) -> VkResult<DisplayPlaneCapabilities2KHR>
unsafe fn get_display_plane_capabilities2_khr( &self, physical_device: PhysicalDevice, display_plane_info: &DisplayPlaneInfo2KHR ) -> VkResult<DisplayPlaneCapabilities2KHR>
source§unsafe fn get_physical_device_display_plane_properties2_khr(
&self,
physical_device: PhysicalDevice
) -> VkResult<Vec<DisplayPlaneProperties2KHR>>
unsafe fn get_physical_device_display_plane_properties2_khr( &self, physical_device: PhysicalDevice ) -> VkResult<Vec<DisplayPlaneProperties2KHR>>
source§impl KhrGetPhysicalDeviceProperties2Extension for Instance
impl KhrGetPhysicalDeviceProperties2Extension for Instance
source§const METADATA: Extension = KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_EXTENSION
const METADATA: Extension = KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_EXTENSION
The metadata for this extension.
source§unsafe fn get_physical_device_features2_khr(
&self,
physical_device: PhysicalDevice,
features: &mut PhysicalDeviceFeatures2
)
unsafe fn get_physical_device_features2_khr( &self, physical_device: PhysicalDevice, features: &mut PhysicalDeviceFeatures2 )
source§unsafe fn get_physical_device_format_properties2_khr(
&self,
physical_device: PhysicalDevice,
format: Format,
format_properties: &mut FormatProperties2
)
unsafe fn get_physical_device_format_properties2_khr( &self, physical_device: PhysicalDevice, format: Format, format_properties: &mut FormatProperties2 )
source§unsafe fn get_physical_device_image_format_properties2_khr(
&self,
physical_device: PhysicalDevice,
image_format_info: &PhysicalDeviceImageFormatInfo2,
image_format_properties: &mut ImageFormatProperties2
) -> VkResult<()>
unsafe fn get_physical_device_image_format_properties2_khr( &self, physical_device: PhysicalDevice, image_format_info: &PhysicalDeviceImageFormatInfo2, image_format_properties: &mut ImageFormatProperties2 ) -> VkResult<()>
source§unsafe fn get_physical_device_memory_properties2_khr(
&self,
physical_device: PhysicalDevice,
memory_properties: &mut PhysicalDeviceMemoryProperties2
)
unsafe fn get_physical_device_memory_properties2_khr( &self, physical_device: PhysicalDevice, memory_properties: &mut PhysicalDeviceMemoryProperties2 )
source§unsafe fn get_physical_device_properties2_khr(
&self,
physical_device: PhysicalDevice,
properties: &mut PhysicalDeviceProperties2
)
unsafe fn get_physical_device_properties2_khr( &self, physical_device: PhysicalDevice, properties: &mut PhysicalDeviceProperties2 )
source§unsafe fn get_physical_device_queue_family_properties2_khr(
&self,
physical_device: PhysicalDevice
) -> Vec<QueueFamilyProperties2>
unsafe fn get_physical_device_queue_family_properties2_khr( &self, physical_device: PhysicalDevice ) -> Vec<QueueFamilyProperties2>
source§unsafe fn get_physical_device_sparse_image_format_properties2_khr(
&self,
physical_device: PhysicalDevice,
format_info: &PhysicalDeviceSparseImageFormatInfo2
) -> Vec<SparseImageFormatProperties2>
unsafe fn get_physical_device_sparse_image_format_properties2_khr( &self, physical_device: PhysicalDevice, format_info: &PhysicalDeviceSparseImageFormatInfo2 ) -> Vec<SparseImageFormatProperties2>
source§impl KhrGetSurfaceCapabilities2Extension for Instance
impl KhrGetSurfaceCapabilities2Extension for Instance
source§const METADATA: Extension = KHR_GET_SURFACE_CAPABILITIES2_EXTENSION
const METADATA: Extension = KHR_GET_SURFACE_CAPABILITIES2_EXTENSION
The metadata for this extension.
source§unsafe fn get_physical_device_surface_capabilities2_khr(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR,
surface_capabilities: &mut SurfaceCapabilities2KHR
) -> VkResult<()>
unsafe fn get_physical_device_surface_capabilities2_khr( &self, physical_device: PhysicalDevice, surface_info: &PhysicalDeviceSurfaceInfo2KHR, surface_capabilities: &mut SurfaceCapabilities2KHR ) -> VkResult<()>
source§unsafe fn get_physical_device_surface_formats2_khr(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<Vec<SurfaceFormat2KHR>>
unsafe fn get_physical_device_surface_formats2_khr( &self, physical_device: PhysicalDevice, surface_info: &PhysicalDeviceSurfaceInfo2KHR ) -> VkResult<Vec<SurfaceFormat2KHR>>
source§impl KhrSurfaceExtension for Instance
impl KhrSurfaceExtension for Instance
source§unsafe fn destroy_surface_khr(
&self,
surface: SurfaceKHR,
allocator: Option<&AllocationCallbacks>
)
unsafe fn destroy_surface_khr( &self, surface: SurfaceKHR, allocator: Option<&AllocationCallbacks> )
source§unsafe fn get_physical_device_surface_capabilities_khr(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR
) -> VkResult<SurfaceCapabilitiesKHR>
unsafe fn get_physical_device_surface_capabilities_khr( &self, physical_device: PhysicalDevice, surface: SurfaceKHR ) -> VkResult<SurfaceCapabilitiesKHR>
source§unsafe fn get_physical_device_surface_formats_khr(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR
) -> VkResult<Vec<SurfaceFormatKHR>>
unsafe fn get_physical_device_surface_formats_khr( &self, physical_device: PhysicalDevice, surface: SurfaceKHR ) -> VkResult<Vec<SurfaceFormatKHR>>
source§unsafe fn get_physical_device_surface_present_modes_khr(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR
) -> VkResult<Vec<PresentModeKHR>>
unsafe fn get_physical_device_surface_present_modes_khr( &self, physical_device: PhysicalDevice, surface: SurfaceKHR ) -> VkResult<Vec<PresentModeKHR>>
source§unsafe fn get_physical_device_surface_support_khr(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
surface: SurfaceKHR
) -> VkResult<bool>
unsafe fn get_physical_device_surface_support_khr( &self, physical_device: PhysicalDevice, queue_family_index: u32, surface: SurfaceKHR ) -> VkResult<bool>
source§impl KhrWaylandSurfaceExtension for Instance
impl KhrWaylandSurfaceExtension for Instance
source§unsafe fn create_wayland_surface_khr(
&self,
create_info: &WaylandSurfaceCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_wayland_surface_khr( &self, create_info: &WaylandSurfaceCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_physical_device_wayland_presentation_support_khr(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
display: *mut wl_display
) -> Bool32
unsafe fn get_physical_device_wayland_presentation_support_khr( &self, physical_device: PhysicalDevice, queue_family_index: u32, display: *mut wl_display ) -> Bool32
source§impl KhrWin32SurfaceExtension for Instance
impl KhrWin32SurfaceExtension for Instance
source§unsafe fn create_win32_surface_khr(
&self,
create_info: &Win32SurfaceCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_win32_surface_khr( &self, create_info: &Win32SurfaceCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_physical_device_win32_presentation_support_khr(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32
) -> Bool32
unsafe fn get_physical_device_win32_presentation_support_khr( &self, physical_device: PhysicalDevice, queue_family_index: u32 ) -> Bool32
source§impl KhrXcbSurfaceExtension for Instance
impl KhrXcbSurfaceExtension for Instance
source§unsafe fn create_xcb_surface_khr(
&self,
create_info: &XcbSurfaceCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_xcb_surface_khr( &self, create_info: &XcbSurfaceCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_physical_device_xcb_presentation_support_khr(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
connection: *mut xcb_connection_t,
visual_id: xcb_visualid_t
) -> Bool32
unsafe fn get_physical_device_xcb_presentation_support_khr( &self, physical_device: PhysicalDevice, queue_family_index: u32, connection: *mut xcb_connection_t, visual_id: xcb_visualid_t ) -> Bool32
source§impl KhrXlibSurfaceExtension for Instance
impl KhrXlibSurfaceExtension for Instance
source§unsafe fn create_xlib_surface_khr(
&self,
create_info: &XlibSurfaceCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_xlib_surface_khr( &self, create_info: &XlibSurfaceCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_physical_device_xlib_presentation_support_khr(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
visual_id: VisualID
) -> (Bool32, Display)
unsafe fn get_physical_device_xlib_presentation_support_khr( &self, physical_device: PhysicalDevice, queue_family_index: u32, visual_id: VisualID ) -> (Bool32, Display)
source§impl MvkIosSurfaceExtension for Instance
impl MvkIosSurfaceExtension for Instance
source§const METADATA: Extension = MVK_IOS_SURFACE_EXTENSION
const METADATA: Extension = MVK_IOS_SURFACE_EXTENSION
👎Deprecated: deprecated in favor of
VK_EXT_metal_surface
The metadata for this extension.
source§unsafe fn create_ios_surface_mvk(
&self,
create_info: &IOSSurfaceCreateInfoMVK,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_ios_surface_mvk( &self, create_info: &IOSSurfaceCreateInfoMVK, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
👎Deprecated: deprecated in favor of
VK_EXT_metal_surface
source§impl MvkMacosSurfaceExtension for Instance
impl MvkMacosSurfaceExtension for Instance
source§const METADATA: Extension = MVK_MACOS_SURFACE_EXTENSION
const METADATA: Extension = MVK_MACOS_SURFACE_EXTENSION
👎Deprecated: deprecated in favor of
VK_EXT_metal_surface
The metadata for this extension.
source§unsafe fn create_mac_os_surface_mvk(
&self,
create_info: &MacOSSurfaceCreateInfoMVK,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_mac_os_surface_mvk( &self, create_info: &MacOSSurfaceCreateInfoMVK, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
👎Deprecated: deprecated in favor of
VK_EXT_metal_surface
source§impl NnViSurfaceExtension for Instance
impl NnViSurfaceExtension for Instance
source§unsafe fn create_vi_surface_nn(
&self,
create_info: &ViSurfaceCreateInfoNN,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_vi_surface_nn( &self, create_info: &ViSurfaceCreateInfoNN, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§impl NvExternalMemoryCapabilitiesExtension for Instance
impl NvExternalMemoryCapabilitiesExtension for Instance
source§const METADATA: Extension = NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION
const METADATA: Extension = NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION
👎Deprecated: deprecated in favor of
VK_KHR_external_memory_capabilities
The metadata for this extension.
source§unsafe fn get_physical_device_external_image_format_properties_nv(
&self,
physical_device: PhysicalDevice,
format: Format,
type_: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags,
external_handle_type: ExternalMemoryHandleTypeFlagsNV
) -> VkResult<ExternalImageFormatPropertiesNV>
unsafe fn get_physical_device_external_image_format_properties_nv( &self, physical_device: PhysicalDevice, format: Format, type_: ImageType, tiling: ImageTiling, usage: ImageUsageFlags, flags: ImageCreateFlags, external_handle_type: ExternalMemoryHandleTypeFlagsNV ) -> VkResult<ExternalImageFormatPropertiesNV>
👎Deprecated: deprecated in favor of
VK_KHR_external_memory_capabilities
source§impl QnxScreenSurfaceExtension for Instance
impl QnxScreenSurfaceExtension for Instance
source§unsafe fn create_screen_surface_qnx(
&self,
create_info: &ScreenSurfaceCreateInfoQNX,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SurfaceKHR>
unsafe fn create_screen_surface_qnx( &self, create_info: &ScreenSurfaceCreateInfoQNX, allocator: Option<&AllocationCallbacks> ) -> VkResult<SurfaceKHR>
source§unsafe fn get_physical_device_screen_presentation_support_qnx(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
window: *mut _screen_window
) -> Bool32
unsafe fn get_physical_device_screen_presentation_support_qnx( &self, physical_device: PhysicalDevice, queue_family_index: u32, window: *mut _screen_window ) -> Bool32
impl InstanceV1_2 for Instance
impl Send for Instance
impl Sync for Instance
Auto Trait Implementations§
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