added renderContext files.
This commit is contained in:
13
inc/hgl/graph/VKAttachment.h
Normal file
13
inc/hgl/graph/VKAttachment.h
Normal 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
|
12
inc/hgl/graph/VKLoadStoreOpInfo.h
Normal file
12
inc/hgl/graph/VKLoadStoreOpInfo.h
Normal 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
|
25
inc/hgl/graph/VKSubpassInfo.h
Normal file
25
inc/hgl/graph/VKSubpassInfo.h
Normal 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
|
Reference in New Issue
Block a user