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
{
ShaderLanguageType shader_type = ShaderLanguageType::GLSL;
const char *entrypoint;
uint32_t includes_count;
const char **includes;
ShaderLanguageType shader_type;
const char * entrypoint;
uint32_t includes_count;
const char ** includes;
};
enum class VertexAttribBaseType
@@ -605,8 +605,8 @@ extern "C"
void (*Close)();
uint32_t (*GetType)(const char *ext_name);
SPVData * (*Compile)(const uint32_t stage,const char *source, const CompileInfo *compile_info);
SPVData * (*CompileFromPath)(const uint32_t stage,const char *path, 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 *shader_filename, const CompileInfo *compile_info);
void (*Free)(SPVData *);
};