#include #include #include VK_NAMESPACE_BEGIN RenderPass *Device::CreateRenderPass(List color_format,VkFormat depth_format,VkImageLayout color_final_layout,VkImageLayout depth_final_layout) { int depth=-1; uint atta_count=color_format.GetCount(); if(attr->physical_device->CheckDepthFormat(depth_format)) { depth=atta_count++; } VkAttachmentDescription *attachments=new VkAttachmentDescription[atta_count]; VkAttachmentReference *color_references=new VkAttachmentReference[color_format.GetCount()]; VkAttachmentReference depth_references; for(uint i=0;idevice,&rp_info,nullptr,&render_pass)!=VK_SUCCESS) return(nullptr); return(new RenderPass(attr->device,render_pass,color_format,depth_format)); } RenderPass *Device::CreateRenderPass(VkFormat color_format,VkFormat depth_format,VkImageLayout color_final_layout,VkImageLayout depth_final_layout) { List color_format_list; color_format_list.Add(color_format); return CreateRenderPass(color_format_list,depth_format,color_final_layout,depth_final_layout); } VK_NAMESPACE_END