Split "is emscripten" config from "enable glslang.js"
This should enable glslang to be used as a dependency of other projects that target WebAssembly, instead of assuming "EMSCRIPTEN" => "Want glslang.js".
This commit is contained in:
parent
b82ed734e7
commit
5166bc1859
5 changed files with 75 additions and 61 deletions
|
|
@ -277,7 +277,7 @@ void main() { })";
|
|||
uint32_t* output;
|
||||
size_t output_len;
|
||||
|
||||
void* id = convert_glsl_to_spirv(input, 4, false, &output, &output_len);
|
||||
void* id = convert_glsl_to_spirv(input, 4, false, glslang::EShTargetSpv_1_0, &output, &output_len);
|
||||
assert(output != nullptr);
|
||||
assert(output_len != 0);
|
||||
destroy_output_buffer(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue