Vulkan: Initial/Final Renderpass Layout
Until now the initial renderpass layout wasn't set, resulting in errors/warnings when using the renderpass. This PR sets the initial and final renderpass to general so the code knows what to expect. In future this needs to be designed better as the layout will change when used in as a framebuffer attachment, or presenting on the screen. Pull Request: https://projects.blender.org/blender/blender/pulls/109000
This commit is contained in:
@@ -712,8 +712,8 @@ static GHOST_TSuccess create_render_pass(VkDevice device,
|
||||
colorAttachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
||||
colorAttachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
||||
colorAttachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
||||
colorAttachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
colorAttachment.finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
|
||||
colorAttachment.initialLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
colorAttachment.finalLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
|
||||
VkAttachmentReference colorAttachmentRef = {};
|
||||
colorAttachmentRef.attachment = 0;
|
||||
|
||||
Reference in New Issue
Block a user