src/ktx/libktx/vkloader.c
/**
 * @memberof ktxVulkanDeviceInfo
 * @~English
 * @brief Create a ktxVulkanDeviceInfo object.
 *
 * Allocates CPU memory for a ktxVulkanDeviceInfo object then calls
 * ktxVulkanDeviceInfo_construct(). See it for documentation of the
 * parameters.
 *
 * @return a pointer to the constructed ktxVulkanDeviceInfo.
 *
 * @sa ktxVulkanDeviceInfo_construct(), ktxVulkanDeviceInfo_destroy()
 */
@memberof ktxVulkanDeviceInfo
@~English
@brief Create a ktxVulkanDeviceInfo object.

Allocates CPU memory for a ktxVulkanDeviceInfo object then calls
ktxVulkanDeviceInfo_construct(). See it for documentation of the
parameters.

@return a pointer to the constructed ktxVulkanDeviceInfo.


@memberof ktxVulkanDeviceInfo @~English @brief Create a ktxVulkanDeviceInfo object . Allocates CPU memory for a ktxVulkanDeviceInfo object then calls ktxVulkanDeviceInfo_construct () . See it for documentation of the parameters . @return a pointer to the constructed ktxVulkanDeviceInfo .
ktxVulkanDeviceInfo*
ktxVulkanDeviceInfo_Create(VkPhysicalDevice physicalDevice, VkDevice device,
                           VkQueue queue, VkCommandPool cmdPool,
                           const VkAllocationCallbacks* pAllocator)
{
    ktxVulkanDeviceInfo* newvdi;
    newvdi = (ktxVulkanDeviceInfo*)malloc(sizeof(ktxVulkanDeviceInfo));
    if (newvdi != NULL) {
        if (ktxVulkanDeviceInfo_Construct(newvdi, physicalDevice, device,
                                    queue, cmdPool, pAllocator) != KTX_SUCCESS)
        {
            free(newvdi);
            newvdi = 0;
        }
    }
    return newvdi;
}
ktxVulkanDeviceInfo * ktxVulkanDeviceInfo_Create ( VkPhysicalDevice physicalDevice , VkDevice device , VkQueue queue , VkCommandPool cmdPool , const VkAllocationCallbacks * pAllocator ) { ktxVulkanDeviceInfo * newvdi ; newvdi = ( ktxVulkanDeviceInfo * ) malloc ( sizeof ( ktxVulkanDeviceInfo ) ) ; if ( newvdi != NULL ) { if ( ktxVulkanDeviceInfo_Construct ( newvdi , physicalDevice , device , queue , cmdPool , pAllocator ) != KTX_SUCCESS ) { free ( newvdi ) ; newvdi = 0 ; } } return newvdi ; }
@memberof ktxVulkanDeviceInfo
 @~English
 @brief Create a ktxVulkanDeviceInfo object.
@memberof ktxVulkanDeviceInfo @~English @brief Create a ktxVulkanDeviceInfo object .