mirror of https://github.com/bjornbytes/lovr.git
Update glslang to accept array of shader strings;
This commit is contained in:
parent
b2e681ddfd
commit
1cc8cf9f4a
|
@ -1 +1 @@
|
|||
Subproject commit fe9e73e9c818a9608b7d91fc701a4be4142f47b9
|
||||
Subproject commit 3c132259fa0a151e60a558e81a5bf27b10e167e5
|
|
@ -957,6 +957,14 @@ Blob* lovrGraphicsCompileShader(ShaderStage stage, Blob* source) {
|
|||
|
||||
const glslang_resource_t* resource = glslang_default_resource();
|
||||
|
||||
const char* strings[] = {
|
||||
source->data
|
||||
};
|
||||
|
||||
int lengths[] = {
|
||||
source->size
|
||||
};
|
||||
|
||||
glslang_input_t input = {
|
||||
.language = GLSLANG_SOURCE_GLSL,
|
||||
.stage = stages[stage],
|
||||
|
@ -964,8 +972,9 @@ Blob* lovrGraphicsCompileShader(ShaderStage stage, Blob* source) {
|
|||
.client_version = GLSLANG_TARGET_VULKAN_1_1,
|
||||
.target_language = GLSLANG_TARGET_SPV,
|
||||
.target_language_version = GLSLANG_TARGET_SPV_1_3,
|
||||
.code = source->data,
|
||||
.length = source->size,
|
||||
.strings = strings,
|
||||
.lengths = lengths,
|
||||
.string_count = 1,
|
||||
.default_version = 460,
|
||||
.default_profile = GLSLANG_NO_PROFILE,
|
||||
.resource = resource
|
||||
|
|
Loading…
Reference in New Issue