2023-05-08 18:24:34 +08:00
|
|
|
|
#pragma once
|
2023-03-17 10:08:41 +08:00
|
|
|
|
|
|
|
|
|
#include<hgl/shadergen/ShaderCreateInfo.h>
|
2024-06-19 09:35:54 +08:00
|
|
|
|
#include<hgl/shadergen/ShaderDescriptorInfo.h>
|
2023-03-19 20:17:27 +08:00
|
|
|
|
|
2023-05-04 19:08:13 +08:00
|
|
|
|
namespace hgl
|
2023-03-17 10:08:41 +08:00
|
|
|
|
{
|
2023-05-04 19:08:13 +08:00
|
|
|
|
namespace graph
|
|
|
|
|
{
|
|
|
|
|
class ShaderCreateInfoVertex:public ShaderCreateInfo
|
|
|
|
|
{
|
2024-06-19 09:35:54 +08:00
|
|
|
|
VertexShaderDescriptorInfo vsdi;
|
|
|
|
|
|
|
|
|
|
bool ProcSubpassInput();
|
2023-05-04 19:08:13 +08:00
|
|
|
|
bool ProcInput(ShaderCreateInfo *) override;
|
2024-06-19 14:03:46 +08:00
|
|
|
|
|
|
|
|
|
bool IsEmptyOutput()const override{return vsdi.IsEmptyOutput();}
|
|
|
|
|
void GetOutputStrcutString(AnsiString &str) override;
|
2023-05-04 19:08:13 +08:00
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2024-06-19 09:35:54 +08:00
|
|
|
|
ShaderDescriptorInfo *GetSDI()override{return &vsdi;}
|
|
|
|
|
|
|
|
|
|
public:
|
2023-05-04 19:08:13 +08:00
|
|
|
|
|
2024-06-19 09:35:54 +08:00
|
|
|
|
ShaderCreateInfoVertex(MaterialDescriptorInfo *m):ShaderCreateInfo(){ShaderCreateInfo::Init(&vsdi,m);}
|
|
|
|
|
~ShaderCreateInfoVertex()override=default;
|
|
|
|
|
|
2024-06-18 01:28:53 +08:00
|
|
|
|
int AddInput(const graph::VAType &type,const AnsiString &name,const VkVertexInputRate input_rate=VK_VERTEX_INPUT_RATE_VERTEX,const VertexInputGroup &group=VertexInputGroup::Basic);
|
2023-05-04 19:08:13 +08:00
|
|
|
|
int AddInput(const AnsiString &type,const AnsiString &name,const VkVertexInputRate input_rate=VK_VERTEX_INPUT_RATE_VERTEX,const VertexInputGroup &group=VertexInputGroup::Basic);
|
|
|
|
|
|
2024-03-12 23:28:23 +08:00
|
|
|
|
int hasInput(const char *);
|
2024-06-19 09:35:54 +08:00
|
|
|
|
|
|
|
|
|
int AddOutput(const SVType &type,const AnsiString &name,Interpolation inter=Interpolation::Smooth);
|
|
|
|
|
void AddMaterialInstanceOutput() override;
|
2024-03-12 23:28:23 +08:00
|
|
|
|
|
2024-05-25 17:58:39 +08:00
|
|
|
|
void AddAssign();
|
2024-04-16 23:34:17 +08:00
|
|
|
|
|
2023-05-22 14:30:38 +08:00
|
|
|
|
void AddJoint();
|
2023-05-04 19:08:13 +08:00
|
|
|
|
};//class ShaderCreateInfoVertex:public ShaderCreateInfo
|
|
|
|
|
}//namespace graph
|
|
|
|
|
}//namespace hgl::graph
|