renamed values/struct.

This commit is contained in:
2024-06-18 02:04:11 +08:00
parent 6b9ac3220b
commit 3927b3c788
11 changed files with 53 additions and 44 deletions

View File

@@ -78,7 +78,7 @@ class Semaphore;
struct PipelineLayoutData;
class DescriptorSet;
struct ShaderAttribute;
struct VertexInputAttribute;
class ShaderResource;
class ShaderModule;

View File

@@ -4,6 +4,7 @@
#include<hgl/graph/VertexAttrib.h>
#include<hgl/graph/VK.h>
#include<hgl/graph/VKInterpolation.h>
#include<hgl/graph/mtl/ShaderVariableType.h>
#include<hgl/type/StringList.h>
namespace hgl{namespace graph
@@ -65,9 +66,9 @@ protected:
public:
ShaderDescriptorInfo *sdm;
ShaderDescriptorInfo *sdi;
VkShaderStageFlagBits GetShaderStage()const{return shader_stage;}
const VkShaderStageFlagBits GetShaderStage()const{return shader_stage;}
public:
@@ -78,6 +79,7 @@ public:
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);
//int AddOutput(const ShaderVariableType &type,const AnsiString &name,Interpolation inter=Interpolation::Smooth);
void AddFunction(const char *str){function_list.Add(str);}

View File

@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include<hgl/type/Map.h>
#include<hgl/type/StringList.h>
@@ -56,8 +56,8 @@ public:
public:
bool AddInput(ShaderAttribute *);
bool AddOutput(ShaderAttribute *);
bool AddInput(VertexInputAttribute *);
bool AddOutput(VertexInputAttribute *);
bool hasInput(const char *)const; ///<是否有指定输入