return createGraphicsPipeline(vk, device, DE_NULL, &pipelineCreateInfo);
}
-Move<VkRenderPass> makeRenderPass (const DeviceInterface& vk,
- const VkDevice device,
- const VkFormat colorFormat,
- const VkFormat depthStencilFormat,
- const VkAttachmentLoadOp loadOperation,
- const VkImageLayout finalLayoutColor,
- const VkImageLayout finalLayoutDepthStencil,
- const VkImageLayout subpassLayoutColor,
- const VkImageLayout subpassLayoutDepthStencil)
+Move<VkRenderPass> makeRenderPass (const DeviceInterface& vk,
+ const VkDevice device,
+ const VkFormat colorFormat,
+ const VkFormat depthStencilFormat,
+ const VkAttachmentLoadOp loadOperation,
+ const VkImageLayout finalLayoutColor,
+ const VkImageLayout finalLayoutDepthStencil,
+ const VkImageLayout subpassLayoutColor,
+ const VkImageLayout subpassLayoutDepthStencil,
+ const VkAllocationCallbacks* const allocationCallbacks)
{
const bool hasColor = colorFormat != VK_FORMAT_UNDEFINED;
const bool hasDepthStencil = depthStencilFormat != VK_FORMAT_UNDEFINED;
DE_NULL // const VkSubpassDependency* pDependencies
};
- return createRenderPass(vk, device, &renderPassInfo);
+ return createRenderPass(vk, device, &renderPassInfo, allocationCallbacks);
}
} // vk
const VkPipelineColorBlendStateCreateInfo* colorBlendStateCreateInfo = DE_NULL,
const VkPipelineDynamicStateCreateInfo* dynamicStateCreateInfo = DE_NULL);
-Move<VkRenderPass> makeRenderPass (const DeviceInterface& vk,
- const VkDevice device,
- const VkFormat colorFormat,
- const VkFormat depthStencilFormat = VK_FORMAT_UNDEFINED,
- const VkAttachmentLoadOp loadOperation = VK_ATTACHMENT_LOAD_OP_CLEAR,
- const VkImageLayout finalLayoutColor = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
- const VkImageLayout finalLayoutDepthStencil = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
- const VkImageLayout subpassLayoutColor = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
- const VkImageLayout subpassLayoutDepthStencil = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL);
+Move<VkRenderPass> makeRenderPass (const DeviceInterface& vk,
+ const VkDevice device,
+ const VkFormat colorFormat,
+ const VkFormat depthStencilFormat = VK_FORMAT_UNDEFINED,
+ const VkAttachmentLoadOp loadOperation = VK_ATTACHMENT_LOAD_OP_CLEAR,
+ const VkImageLayout finalLayoutColor = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
+ const VkImageLayout finalLayoutDepthStencil = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
+ const VkImageLayout subpassLayoutColor = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
+ const VkImageLayout subpassLayoutDepthStencil = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
+ const VkAllocationCallbacks* const allocationCallbacks = DE_NULL);
} // vk
static Move<VkRenderPass> create (const Environment& env, const Resources&, const Parameters&)
{
- return makeRenderPass(env.vkd, env.device, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_D16_UNORM);
+ return makeRenderPass(env.vkd, env.device, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_D16_UNORM,
+ VK_ATTACHMENT_LOAD_OP_CLEAR,
+ VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
+ VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
+ VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
+ VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
+ env.allocationCallbacks);
}
};