mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 16:20:39 +00:00
Cleanups
This commit is contained in:
parent
e669f92399
commit
8232135922
@ -103,8 +103,8 @@ static void vulkan_init_render_pass(
|
|||||||
subpass.colorAttachmentCount = 1;
|
subpass.colorAttachmentCount = 1;
|
||||||
subpass.pColorAttachments = &color_ref;
|
subpass.pColorAttachments = &color_ref;
|
||||||
|
|
||||||
rp_info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO;
|
|
||||||
/* Finally, create the renderpass. */
|
/* Finally, create the renderpass. */
|
||||||
|
rp_info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO;
|
||||||
rp_info.attachmentCount = 1;
|
rp_info.attachmentCount = 1;
|
||||||
rp_info.pAttachments = &attachment;
|
rp_info.pAttachments = &attachment;
|
||||||
rp_info.subpassCount = 1;
|
rp_info.subpassCount = 1;
|
||||||
@ -124,14 +124,13 @@ static void vulkan_init_framebuffers(
|
|||||||
|
|
||||||
for (i = 0; i < vk->num_swapchain_images; i++)
|
for (i = 0; i < vk->num_swapchain_images; i++)
|
||||||
{
|
{
|
||||||
VkImageViewCreateInfo view = {
|
VkImageViewCreateInfo view;
|
||||||
VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO };
|
VkFramebufferCreateInfo info;
|
||||||
VkFramebufferCreateInfo info = {
|
|
||||||
VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO };
|
|
||||||
|
|
||||||
vk->swapchain[i].backbuffer.image = vk->context->swapchain_images[i];
|
vk->swapchain[i].backbuffer.image = vk->context->swapchain_images[i];
|
||||||
|
|
||||||
/* Create an image view which we can render into. */
|
/* Create an image view which we can render into. */
|
||||||
|
view.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
|
||||||
view.viewType = VK_IMAGE_VIEW_TYPE_2D;
|
view.viewType = VK_IMAGE_VIEW_TYPE_2D;
|
||||||
view.format = vk->context->swapchain_format;
|
view.format = vk->context->swapchain_format;
|
||||||
view.image = vk->swapchain[i].backbuffer.image;
|
view.image = vk->swapchain[i].backbuffer.image;
|
||||||
@ -149,6 +148,7 @@ static void vulkan_init_framebuffers(
|
|||||||
&view, NULL, &vk->swapchain[i].backbuffer.view);
|
&view, NULL, &vk->swapchain[i].backbuffer.view);
|
||||||
|
|
||||||
/* Create the framebuffer */
|
/* Create the framebuffer */
|
||||||
|
info.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO;
|
||||||
info.renderPass = vk->render_pass;
|
info.renderPass = vk->render_pass;
|
||||||
info.attachmentCount = 1;
|
info.attachmentCount = 1;
|
||||||
info.pAttachments = &vk->swapchain[i].backbuffer.view;
|
info.pAttachments = &vk->swapchain[i].backbuffer.view;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user