From bf344f538cf7d3aecb2560e33b9a469e1a0047b6 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 11 May 2022 16:12:04 +0800 Subject: [PATCH] layout codes. --- glsl2spv.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/glsl2spv.cpp b/glsl2spv.cpp index 965ac36..af6b7b3 100644 --- a/glsl2spv.cpp +++ b/glsl2spv.cpp @@ -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, @@ -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 *); };