mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 15:01:31 +11:00
Implement vkDestroyImageView
This commit is contained in:
parent
69b3d1e043
commit
82ab5720ee
|
@ -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);
|
||||||
|
|
10
src/lib.rs
10
src/lib.rs
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue