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); vkDestroySwapchainKHR(device, swapchain, NULL);
printf("\tvkDestroySwapchainKHR\n"); printf("\tvkDestroySwapchainKHR\n");
vkFreeCommandBuffers(device, cmd_pool, 1, &cmd_buffer); vkFreeCommandBuffers(device, cmd_pool, 1, &cmd_buffer);

View file

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