added GetInput at ShaderCreateInfoVertex
This commit is contained in:
parent
159c808dad
commit
703d444cbb
@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/shadergen/ShaderCreateInfo.h>
|
||||
#include<hgl/graph/VKShaderStage.h>
|
||||
|
||||
|
||||
SHADERGEN_NAMESPACE_BEGIN
|
||||
class ShaderCreateInfoVertex:public ShaderCreateInfo
|
||||
@ -14,5 +16,7 @@ public:
|
||||
|
||||
int AddInput(const graph::VAT &type,const AnsiString &name);
|
||||
int AddInput(const AnsiString &type,const AnsiString &name);
|
||||
|
||||
const hgl::graph::ShaderAttributeArray &GetInput()const;
|
||||
};
|
||||
SHADERGEN_NAMESPACE_END
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include<hgl/shadergen/ShaderDescriptorInfo.h>
|
||||
#include<hgl/graph/VertexAttrib.h>
|
||||
#include<hgl/graph/VKShaderStage.h>
|
||||
#include"GLSLCompiler.h"
|
||||
|
||||
SHADERGEN_NAMESPACE_BEGIN
|
||||
|
||||
@ -59,4 +60,9 @@ bool ShaderCreateInfoVertex::ProcInput(ShaderCreateInfo *)
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
const hgl::graph::ShaderAttributeArray &ShaderCreateInfoVertex::GetInput()const
|
||||
{
|
||||
return spv_data->stage_io.input;
|
||||
}
|
||||
SHADERGEN_NAMESPACE_END
|
||||
|
Loading…
x
Reference in New Issue
Block a user