mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 07:01:29 +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);
|
||||
printf("\tvkDestroySwapchainKHR\n");
|
||||
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" {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue