#[repr(C)]pub struct ktxVulkanDeviceInfo {
pub instance: VkInstance,
pub physicalDevice: VkPhysicalDevice,
pub device: VkDevice,
pub queue: VkQueue,
pub cmdBuffer: VkCommandBuffer,
pub cmdPool: VkCommandPool,
pub pAllocator: *const VkAllocationCallbacks,
pub deviceMemoryProperties: VkPhysicalDeviceMemoryProperties,
pub vkFuncs: ktxVulkanFunctions,
}
Expand description
@class ktxVulkanDeviceInfo @~English @brief Struct for passing information about the Vulkan device on which to create images to the texture image loading functions.
Avoids passing a large number of parameters to each loading function. Use of ktxVulkanDeviceInfo_create() or ktxVulkanDeviceInfo_construct() to populate this structure is highly recommended.
@code ktxVulkanDeviceInfo vdi; ktxVulkanTexture texture;
vdi = ktxVulkanDeviceInfo_create(physicalDevice, device, queue, cmdPool, &allocator); ktxLoadVkTextureN(“texture_1.ktx”, vdi, &texture, NULL, NULL); // … ktxLoadVkTextureN(“texture_n.ktx”, vdi, &texture, NULL, NULL); ktxVulkanDeviceInfo_destroy(vdi); @endcode
Fields§
§instance: VkInstance
< Instance used to communicate with vulkan.
physicalDevice: VkPhysicalDevice
< Handle of the physical device.
device: VkDevice
< Handle of the logical device.
queue: VkQueue
< Handle to the queue to which to submit commands.
cmdBuffer: VkCommandBuffer
< Handle of the cmdBuffer to use.
cmdPool: VkCommandPool
Handle of the command pool from which to allocate the command buffer.
pAllocator: *const VkAllocationCallbacks
Pointer to the allocator to use for the command buffer and created images.
deviceMemoryProperties: VkPhysicalDeviceMemoryProperties
Memory properties of the Vulkan physical device.
vkFuncs: ktxVulkanFunctions
The functions needed to operate functions
Trait Implementations§
Source§impl Clone for ktxVulkanDeviceInfo
impl Clone for ktxVulkanDeviceInfo
Source§fn clone(&self) -> ktxVulkanDeviceInfo
fn clone(&self) -> ktxVulkanDeviceInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more