added GetCode/GetCodeSize at ShaderCreateInfo

This commit is contained in:
2023-03-19 20:17:02 +08:00
parent facdec5556
commit 159c808dad
2 changed files with 27 additions and 3 deletions

View File

@@ -3,6 +3,12 @@
#include<hgl/shadergen/ShaderGenNamespace.h>
#include<hgl/graph/VertexAttrib.h>
namespace glsl_compiler
{
struct SPVData;
}
SHADERGEN_NAMESPACE_BEGIN
class MaterialDescriptorInfo;
@@ -24,6 +30,8 @@ protected:
AnsiString final_shader;
glsl_compiler::SPVData *spv_data;
protected:
virtual bool ProcHeader(){return(true);}
@@ -63,6 +71,9 @@ public:
const AnsiString &GetShaderSource()const{return final_shader;}
bool CreateShader(ShaderCreateInfo *);
const uint32_t *GetCode()const;
const size_t GetCodeSize()const;
};//class ShaderCreateInfo
SHADERGEN_NAMESPACE_END
#endif//HGL_SHADER_CREATE_INFO_INCLUDE