added renderContext files.

This commit is contained in:
2021-10-04 17:47:55 +08:00
parent d1619ecd9e
commit b3c2fc3d8c
8 changed files with 56 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
#ifndef HGL_VULKAN_ATTACHMENT_INCLUDE
#define HGL_VULKAN_ATTACHMENT_INCLUDE
#include<hgl/graph/VK.h>
VK_NAMESPACE_BEGIN
struct Attachment
{
VkFormat format =VK_FORMAT_UNDEFINED;
VkSampleCountFlagBits samples =VK_SAMPLE_COUNT_1_BIT;
VkImageUsageFlags usage =VK_IMAGE_USAGE_SAMPLED_BIT;
VkImageLayout initial_layout =VK_IMAGE_LAYOUT_UNDEFINED;
};//struct Attachment
VK_NAMESPACE_END
#endif//HGL_VULKAN_ATTACHMENT_INCLUDE

View File

@@ -0,0 +1,12 @@
#ifndef HGL_VULKAN_LOAD_STORE_OP_INFO_INCLUDE
#define HGL_VULKAN_LOAD_STORE_OP_INFO_INCLUDE
#include<hgl/graph/VK.h>
VK_NAMESPACE_BEGIN
struct LoadStoreInfo
{
VkAttachmentLoadOp load_op = VK_ATTACHMENT_LOAD_OP_CLEAR;
VkAttachmentStoreOp store_op = VK_ATTACHMENT_STORE_OP_STORE;
};
VK_NAMESPACE_END
#endif//HGL_VULKAN_LOAD_STORE_OP_INFO_INCLUDE

View File

@@ -0,0 +1,25 @@
#ifndef HGL_VULKAN_SUBPASS_INFO_INCLUDE
#define HGL_VULKAN_SUBPASS_INFO_INCLUDE
#include<hgl/graph/VK.h>
#include<hgl/type/List.h>
VK_NAMESPACE_BEGIN
struct SubpassInfo
{
List<uint32_t> input_attachments;
List<uint32_t> output_attachments;
struct
{
List<uint32_t> attachments;
}color;
struct
{
bool enable;
uint32_t attachment;
VkResolveModeFlagBits mode;
}depth_stencil;
};//struct SubpassInfo
VK_NAMESPACE_END
#endif//HGL_VULKAN_SUBPASS_INFO_INCLUDE