MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / ktxTexture_VkUpload

Function ktxTexture_VkUpload

source/external/ktx/lib/vkloader.c:1137–1145  ·  view source on GitHub ↗

@memberof ktxTexture * @~English * @brief Create a Vulkan image object from a ktxTexture object. * * Calls ktxTexture_VkUploadEx() with the most commonly used options: * VK_IMAGE_TILING_OPTIMAL, VK_IMAGE_USAGE_SAMPLED_BIT and * VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL. * * @sa ktxTexture_VkUploadEx() for details and use that for complete * control. */

Source from the content-addressed store, hash-verified

1135 * control.
1136 */
1137KTX_error_code
1138ktxTexture_VkUpload(ktxTexture* texture, ktxVulkanDeviceInfo* vdi,
1139 ktxVulkanTexture *vkTexture)
1140{
1141 return ktxTexture_VkUploadEx(texture, vdi, vkTexture,
1142 VK_IMAGE_TILING_OPTIMAL,
1143 VK_IMAGE_USAGE_SAMPLED_BIT,
1144 VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL);
1145}
1146
1147/** @memberof ktxTexture
1148 * @~English

Callers

nothing calls this directly

Calls 1

ktxTexture_VkUploadExFunction · 0.85

Tested by

no test coverage detected