mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
vk/device: Add an explicit destructor for RenderPass
This commit is contained in:
parent
8b342b39a3
commit
7552e026da
2 changed files with 12 additions and 0 deletions
|
|
@ -3723,6 +3723,17 @@ VkResult anv_CreateRenderPass(
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
VkResult anv_DestroyRenderPass(
|
||||
VkDevice _device,
|
||||
VkRenderPass renderPass)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_device, device, _device);
|
||||
|
||||
anv_device_free(device, anv_render_pass_from_handle(renderPass));
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
VkResult anv_GetRenderAreaGranularity(
|
||||
VkDevice device,
|
||||
VkRenderPass renderPass,
|
||||
|
|
|
|||
|
|
@ -949,6 +949,7 @@ VkResult anv_DestroyBufferView(VkDevice device, VkBufferView bufferView);
|
|||
VkResult anv_DestroyColorAttachmentView(VkDevice device,
|
||||
VkColorAttachmentView view);
|
||||
VkResult anv_DestroyDepthStencilView(VkDevice device, VkDepthStencilView view);
|
||||
VkResult anv_DestroyRenderPass(VkDevice device, VkRenderPass renderPass);
|
||||
|
||||
#define ANV_DEFINE_CASTS(__anv_type, __VkType) \
|
||||
static inline struct __anv_type * \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue