Implement vkDestroyImageView

This commit is contained in:
msiglreith 2017-12-08 01:07:34 +01:00
parent 69b3d1e043
commit 82ab5720ee
2 changed files with 11 additions and 4 deletions

View file

@ -203,7 +203,10 @@ int main() {
}
// TODO: destroy image views
for(auto view : swapchain_views) {
vkDestroyImageView(device, view, NULL);
printf("\tvkDestroyImageView\n");
}
vkDestroySwapchainKHR(device, swapchain, NULL);
printf("\tvkDestroySwapchainKHR\n");
vkFreeCommandBuffers(device, cmd_pool, 1, &cmd_buffer);

View file

@ -4702,9 +4702,13 @@ pub extern fn vkCreateImageView(
},
}
}
extern "C" {
pub fn vkDestroyImageView(device: VkDevice, imageView: VkImageView,
pAllocator: *const VkAllocationCallbacks);
#[no_mangle]
pub extern fn vkDestroyImageView(
gpu: VkDevice,
imageView: VkImageView,
pAllocator: *const VkAllocationCallbacks,
) {
gpu.device.destroy_image_view(*imageView.unwrap())
}
extern "C" {
pub fn vkCreateShaderModule(device: VkDevice,