Struct ktxVulkanFunctions

Source
#[repr(C)]
pub struct ktxVulkanFunctions {
Show 30 fields pub vkGetInstanceProcAddr: PFN_vkGetInstanceProcAddr, pub vkGetDeviceProcAddr: PFN_vkGetDeviceProcAddr, pub vkAllocateCommandBuffers: PFN_vkAllocateCommandBuffers, pub vkAllocateMemory: PFN_vkAllocateMemory, pub vkBeginCommandBuffer: PFN_vkBeginCommandBuffer, pub vkBindBufferMemory: PFN_vkBindBufferMemory, pub vkBindImageMemory: PFN_vkBindImageMemory, pub vkCmdBlitImage: PFN_vkCmdBlitImage, pub vkCmdCopyBufferToImage: PFN_vkCmdCopyBufferToImage, pub vkCmdPipelineBarrier: PFN_vkCmdPipelineBarrier, pub vkCreateImage: PFN_vkCreateImage, pub vkDestroyImage: PFN_vkDestroyImage, pub vkCreateBuffer: PFN_vkCreateBuffer, pub vkDestroyBuffer: PFN_vkDestroyBuffer, pub vkCreateFence: PFN_vkCreateFence, pub vkDestroyFence: PFN_vkDestroyFence, pub vkEndCommandBuffer: PFN_vkEndCommandBuffer, pub vkFreeCommandBuffers: PFN_vkFreeCommandBuffers, pub vkFreeMemory: PFN_vkFreeMemory, pub vkGetBufferMemoryRequirements: PFN_vkGetBufferMemoryRequirements, pub vkGetImageMemoryRequirements: PFN_vkGetImageMemoryRequirements, pub vkGetImageSubresourceLayout: PFN_vkGetImageSubresourceLayout, pub vkGetPhysicalDeviceImageFormatProperties: PFN_vkGetPhysicalDeviceImageFormatProperties, pub vkGetPhysicalDeviceFormatProperties: PFN_vkGetPhysicalDeviceFormatProperties, pub vkGetPhysicalDeviceMemoryProperties: PFN_vkGetPhysicalDeviceMemoryProperties, pub vkMapMemory: PFN_vkMapMemory, pub vkQueueSubmit: PFN_vkQueueSubmit, pub vkQueueWaitIdle: PFN_vkQueueWaitIdle, pub vkUnmapMemory: PFN_vkUnmapMemory, pub vkWaitForFences: PFN_vkWaitForFences,
}
Expand description

@struct ktxVulkanFunctions @~English @brief Struct for applications to pass Vulkan function pointers to the ktxTexture_VkUpload functions via a ktxVulkanDeviceInfo struct.

@c vkGetInstanceProcAddr and @c vkGetDeviceProcAddr should be set, others are optional.

Fields§

§vkGetInstanceProcAddr: PFN_vkGetInstanceProcAddr§vkGetDeviceProcAddr: PFN_vkGetDeviceProcAddr§vkAllocateCommandBuffers: PFN_vkAllocateCommandBuffers§vkAllocateMemory: PFN_vkAllocateMemory§vkBeginCommandBuffer: PFN_vkBeginCommandBuffer§vkBindBufferMemory: PFN_vkBindBufferMemory§vkBindImageMemory: PFN_vkBindImageMemory§vkCmdBlitImage: PFN_vkCmdBlitImage§vkCmdCopyBufferToImage: PFN_vkCmdCopyBufferToImage§vkCmdPipelineBarrier: PFN_vkCmdPipelineBarrier§vkCreateImage: PFN_vkCreateImage§vkDestroyImage: PFN_vkDestroyImage§vkCreateBuffer: PFN_vkCreateBuffer§vkDestroyBuffer: PFN_vkDestroyBuffer§vkCreateFence: PFN_vkCreateFence§vkDestroyFence: PFN_vkDestroyFence§vkEndCommandBuffer: PFN_vkEndCommandBuffer§vkFreeCommandBuffers: PFN_vkFreeCommandBuffers§vkFreeMemory: PFN_vkFreeMemory§vkGetBufferMemoryRequirements: PFN_vkGetBufferMemoryRequirements§vkGetImageMemoryRequirements: PFN_vkGetImageMemoryRequirements§vkGetImageSubresourceLayout: PFN_vkGetImageSubresourceLayout§vkGetPhysicalDeviceImageFormatProperties: PFN_vkGetPhysicalDeviceImageFormatProperties§vkGetPhysicalDeviceFormatProperties: PFN_vkGetPhysicalDeviceFormatProperties§vkGetPhysicalDeviceMemoryProperties: PFN_vkGetPhysicalDeviceMemoryProperties§vkMapMemory: PFN_vkMapMemory§vkQueueSubmit: PFN_vkQueueSubmit§vkQueueWaitIdle: PFN_vkQueueWaitIdle§vkUnmapMemory: PFN_vkUnmapMemory§vkWaitForFences: PFN_vkWaitForFences

Trait Implementations§

Source§

impl Clone for ktxVulkanFunctions

Source§

fn clone(&self) -> ktxVulkanFunctions

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ktxVulkanFunctions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for ktxVulkanFunctions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.