Skip to content

Commit

Permalink
Updated to use glslangValidator instead
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo committed Jul 21, 2021
1 parent 71b08d9 commit 50db2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/kompute_test/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ std::vector<uint32_t>
Shader::compileSource(
const std::string& source)
{
system(std::string("glslc -fshader-stage=compute -o tmp_kp_shader.comp.spv - << END\n" + source + "\nEND").c_str());
system(std::string("glslangValidator --stdin -S comp -V -o tmp_kp_shader.comp.spv << END\n" + source + "\nEND").c_str());
std::ifstream fileStream("tmp_kp_shader.comp.spv", std::ios::binary);
std::vector<char> buffer;
buffer.insert(buffer.begin(), std::istreambuf_iterator<char>(fileStream), {});
Expand Down

0 comments on commit 50db2a1

Please sign in to comment.