added GetCode/GetCodeSize at ShaderCreateInfo
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user