[WIP] next step is ShaderCreateInfo::ProcOutput

This commit is contained in:
2024-06-19 09:35:54 +08:00
parent 90a4f1d49f
commit 806bf5dfdd
16 changed files with 528 additions and 207 deletions

View File

@@ -1,16 +1,28 @@
#pragma once
#pragma once
#include<hgl/shadergen/ShaderCreateInfo.h>
#include<hgl/shadergen/ShaderDescriptorInfo.h>
namespace hgl{namespace graph{
class ShaderCreateInfoFragment:public ShaderCreateInfo
{
FragmentShaderDescriptorInfo fsdi;
protected:
bool ProcOutput() override;
public:
ShaderCreateInfoFragment(MaterialDescriptorInfo *m):ShaderCreateInfo(VK_SHADER_STAGE_FRAGMENT_BIT,m){}
ShaderDescriptorInfo *GetSDI()override{return &fsdi;}
public:
ShaderCreateInfoFragment(MaterialDescriptorInfo *m):ShaderCreateInfo(){ShaderCreateInfo::Init(&fsdi,m);}
~ShaderCreateInfoFragment()=default;
int AddOutput(const graph::VAType &type,const AnsiString &name,Interpolation inter=Interpolation::Smooth);
int AddOutput(const AnsiString &type,const AnsiString &name,Interpolation inter=Interpolation::Smooth);
};
}}//namespace hgl::graph