ULRE/inc/hgl/graph/VKSubpass.h

33 lines
849 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef HGL_GRAPH_VULKAN_SUBPASS_INCLUDE
#define HGL_GRAPH_VULKAN_SUBPASS_INCLUDE
#include<hgl/graph/VK.h>
VK_NAMESPACE_BEGIN
/**
* 渲染流程中一次具体的操作即便整个Renderpass只有一次渲染也需要创建subpass
*/
class Subpass
{
VkSubpassDescription *desc;
VkSubpassDependency *dependency;
List<VkAttachmentReference> ar_input;
List<VkAttachmentReference> ar_out_colors;
VkAttachmentReference ar_out_depth;
public:
Subpass(VkSubpassDescription *sd,VkSubpassDependency *dep)
{
desc=sd;
dependency=dep;
}
virtual ~Subpass()=default;
const VkSubpassDescription *GetDescription ()const{return desc;}
const VkSubpassDependency * GetDependency ()const{return dependency;}
};//class Subpass
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_SUBPASS_INCLUDE