Skip to content

Commit

Permalink
layout codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzboy committed May 11, 2022
1 parent 45b89ad commit bf344f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions glsl2spv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ 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
{
Bool=0,
Expand Down Expand Up @@ -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 *);
};
Expand Down

0 comments on commit bf344f5

Please sign in to comment.