supported preamble

This commit is contained in:
2022-06-28 21:00:59 +08:00
parent bf344f538c
commit e813fb426a
2 changed files with 6 additions and 2 deletions

View File

@@ -227,6 +227,7 @@ extern "C"
const char * entrypoint;
uint32_t includes_count;
const char ** includes;
const char * preamble;
};
enum class VertexAttribBaseType
@@ -474,7 +475,7 @@ extern "C"
++sr;
}
}
SPVData *Shader2SPV(
const uint32_t shader_stage,
const char * shader_source,
@@ -508,6 +509,9 @@ extern "C"
}
}
if(compile_info->preamble)
shader.setPreamble(compile_info->preamble);
shaderStrings[0] = shader_source;
shader.setStrings(shaderStrings, 1);