ULRE/inc/hgl/shadergen/ShaderCreateInfoFragment.h

28 lines
760 B
C
Raw Normal View History

#pragma once
2023-03-17 10:08:41 +08:00
#include<hgl/shadergen/ShaderCreateInfo.h>
#include<hgl/shadergen/ShaderDescriptorInfo.h>
2023-03-17 10:08:41 +08:00
2023-03-21 18:05:48 +08:00
namespace hgl{namespace graph{
2023-03-17 10:08:41 +08:00
class ShaderCreateInfoFragment:public ShaderCreateInfo
{
FragmentShaderDescriptorInfo fsdi;
protected:
2023-03-17 10:08:41 +08:00
bool ProcOutput() override;
public:
ShaderDescriptorInfo *GetSDI()override{return &fsdi;}
public:
ShaderCreateInfoFragment(MaterialDescriptorInfo *m):ShaderCreateInfo(){ShaderCreateInfo::Init(&fsdi,m);}
2023-03-17 10:08:41 +08:00
~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);
2023-03-17 10:08:41 +08:00
};
2023-03-21 18:05:48 +08:00
}}//namespace hgl::graph