ShaderCompiler: Use compute shader header in compute shaders

This commit is contained in:
OatmealDome 2022-07-09 19:01:58 -04:00
parent 5a7759e359
commit 1c6a0073d2
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ std::optional<SPIRVCodeVector> CompileFragmentShader(std::string_view source_cod
std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code)
{
return SPIRV::CompileComputeShader(GetShaderCode(source_code, SHADER_HEADER), APIType::Vulkan,
GetLanguageVersion());
return SPIRV::CompileComputeShader(GetShaderCode(source_code, COMPUTE_SHADER_HEADER),
APIType::Vulkan, GetLanguageVersion());
}
} // namespace Vulkan::ShaderCompiler