Trait ash::version::InstanceV1_0[][src]

pub trait InstanceV1_0 {
    type Device;
    fn handle(&self) -> Instance;
fn fp_v1_0(&self) -> &InstanceFnV1_0;
unsafe fn create_device(
        &self,
        physical_device: PhysicalDevice,
        create_info: &DeviceCreateInfo,
        allocation_callbacks: Option<&AllocationCallbacks>
    ) -> VkResult<Self::Device>; unsafe fn get_device_proc_addr(
        &self,
        device: Device,
        p_name: *const c_char
    ) -> PFN_vkVoidFunction { ... }
unsafe fn destroy_instance(
        &self,
        allocation_callbacks: Option<&AllocationCallbacks>
    ) { ... }
unsafe fn get_physical_device_format_properties(
        &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> { ... }
unsafe fn get_physical_device_memory_properties(
        &self,
        physical_device: PhysicalDevice
    ) -> PhysicalDeviceMemoryProperties { ... }
unsafe fn get_physical_device_properties(
        &self,
        physical_device: PhysicalDevice
    ) -> PhysicalDeviceProperties { ... }
unsafe fn get_physical_device_queue_family_properties(
        &self,
        physical_device: PhysicalDevice
    ) -> Vec<QueueFamilyProperties> { ... }
unsafe fn get_physical_device_features(
        &self,
        physical_device: PhysicalDevice
    ) -> PhysicalDeviceFeatures { ... }
unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<PhysicalDevice>> { ... }
unsafe fn enumerate_device_extension_properties(
        &self,
        device: PhysicalDevice
    ) -> VkResult<Vec<ExtensionProperties>> { ... } }

Associated Types

Loading content...

Required methods

fn handle(&self) -> Instance[src]

fn fp_v1_0(&self) -> &InstanceFnV1_0[src]

unsafe fn create_device(
    &self,
    physical_device: PhysicalDevice,
    create_info: &DeviceCreateInfo,
    allocation_callbacks: Option<&AllocationCallbacks>
) -> VkResult<Self::Device>
[src]

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.

Loading content...

Provided methods

unsafe fn get_device_proc_addr(
    &self,
    device: Device,
    p_name: *const c_char
) -> PFN_vkVoidFunction
[src]

unsafe fn destroy_instance(
    &self,
    allocation_callbacks: Option<&AllocationCallbacks>
)
[src]

unsafe fn get_physical_device_format_properties(
    &self,
    physical_device: PhysicalDevice,
    format: Format
) -> FormatProperties
[src]

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]

unsafe fn get_physical_device_memory_properties(
    &self,
    physical_device: PhysicalDevice
) -> PhysicalDeviceMemoryProperties
[src]

unsafe fn get_physical_device_properties(
    &self,
    physical_device: PhysicalDevice
) -> PhysicalDeviceProperties
[src]

unsafe fn get_physical_device_queue_family_properties(
    &self,
    physical_device: PhysicalDevice
) -> Vec<QueueFamilyProperties>
[src]

unsafe fn get_physical_device_features(
    &self,
    physical_device: PhysicalDevice
) -> PhysicalDeviceFeatures
[src]

unsafe fn enumerate_physical_devices(&self) -> VkResult<Vec<PhysicalDevice>>[src]

unsafe fn enumerate_device_extension_properties(
    &self,
    device: PhysicalDevice
) -> VkResult<Vec<ExtensionProperties>>
[src]

Loading content...

Implementors

impl InstanceV1_0 for Instance[src]

type Device = Device

unsafe fn create_device(
    &self,
    physical_device: PhysicalDevice,
    create_info: &DeviceCreateInfo,
    allocation_callbacks: Option<&AllocationCallbacks>
) -> VkResult<Self::Device>
[src]

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.

Loading content...