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

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>
    ) -> Result<Self::Device, Result>; 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
    ) -> Result<Vec<ExtensionProperties>, Result> { ... } }

Associated Types

type Device

Loading content...

Required methods

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>
) -> 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.

Loading content...

Provided methods

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
) -> Result<Vec<ExtensionProperties>, Result>

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>
) -> Result<Self::Device, Result>
[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...