layout codes.

This commit is contained in:
2022-05-11 16:12:04 +08:00
parent 45b89ad66f
commit bf344f538c

View File

@@ -223,10 +223,10 @@ extern "C"
struct CompileInfo struct CompileInfo
{ {
ShaderLanguageType shader_type = ShaderLanguageType::GLSL; ShaderLanguageType shader_type;
const char *entrypoint; const char * entrypoint;
uint32_t includes_count; uint32_t includes_count;
const char **includes; const char ** includes;
}; };
enum class VertexAttribBaseType enum class VertexAttribBaseType
@@ -605,8 +605,8 @@ extern "C"
void (*Close)(); void (*Close)();
uint32_t (*GetType)(const char *ext_name); uint32_t (*GetType)(const char *ext_name);
SPVData * (*Compile)(const uint32_t stage,const char *source, const CompileInfo *compile_info); SPVData * (*Compile)(const uint32_t stage,const char *shader_source, const CompileInfo *compile_info);
SPVData * (*CompileFromPath)(const uint32_t stage,const char *path, const CompileInfo *compile_info); SPVData * (*CompileFromPath)(const uint32_t stage,const char *shader_filename, const CompileInfo *compile_info);
void (*Free)(SPVData *); void (*Free)(SPVData *);
}; };