mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 12:41:18 +00:00
(Vulkan) More image function pointers
This commit is contained in:
parent
30eac5b778
commit
c8b9bb609f
@ -374,7 +374,7 @@ struct vk_texture vulkan_create_texture(vk_t *vk,
|
||||
memset(old, 0, sizeof(*old));
|
||||
}
|
||||
|
||||
vkBindImageMemory(device, tex.image, tex.memory, 0);
|
||||
VKFUNC(vkBindImageMemory)(device, tex.image, tex.memory, 0);
|
||||
|
||||
view.image = tex.image;
|
||||
view.viewType = VK_IMAGE_VIEW_TYPE_2D;
|
||||
@ -394,7 +394,7 @@ struct vk_texture vulkan_create_texture(vk_t *vk,
|
||||
|
||||
VKFUNC(vkCreateImageView)(device, &view, NULL, &tex.view);
|
||||
|
||||
vkGetImageSubresourceLayout(device, tex.image, &subresource, &layout);
|
||||
VKFUNC(vkGetImageSubresourceLayout)(device, tex.image, &subresource, &layout);
|
||||
tex.stride = layout.rowPitch;
|
||||
tex.offset = layout.offset;
|
||||
tex.size = layout.size;
|
||||
@ -1153,6 +1153,8 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
|
||||
/* Images */
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateImage);
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyImage);
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, BindImageMemory);
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, GetImageSubresourceLayout);
|
||||
|
||||
/* Image Views */
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateImageView);
|
||||
|
@ -166,13 +166,16 @@ typedef struct vulkan_context
|
||||
/* Images */
|
||||
PFN_vkCreateImage vkCreateImage;
|
||||
PFN_vkDestroyImage vkDestroyImage;
|
||||
PFN_vkCmdCopyImage vkCmdCopyImage;
|
||||
PFN_vkGetImageSubresourceLayout vkGetImageSubresourceLayout;
|
||||
|
||||
/* Images (Resource Memory Association) */
|
||||
PFN_vkBindImageMemory vkBindImageMemory;
|
||||
|
||||
/* Image Views */
|
||||
PFN_vkCreateImageView vkCreateImageView;
|
||||
PFN_vkDestroyImageView vkDestroyImageView;
|
||||
|
||||
/* Resource Memory Association */
|
||||
/* Image Views (Resource Memory Association) */
|
||||
PFN_vkGetImageMemoryRequirements vkGetImageMemoryRequirements;
|
||||
|
||||
/* Queues */
|
||||
@ -236,6 +239,9 @@ typedef struct vulkan_context
|
||||
PFN_vkCreateRenderPass vkCreateRenderPass;
|
||||
PFN_vkDestroyRenderPass vkDestroyRenderPass;
|
||||
|
||||
/* Image commands */
|
||||
PFN_vkCmdCopyImage vkCmdCopyImage;
|
||||
|
||||
/* Pipeline commands */
|
||||
PFN_vkCmdBindPipeline vkCmdBindPipeline;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user