Merge pull request #10830 from OatmealDome/vk-compute-shader-header

ShaderCompiler: Use compute shader header in compute shaders
This commit is contained in:
Admiral H. Curtiss 2022-07-10 01:16:20 +02:00 committed by GitHub
commit 5ce73d9d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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