Merge pull request #10830 from OatmealDome/vk-compute-shader-header
ShaderCompiler: Use compute shader header in compute shaders
This commit is contained in:
commit
5ce73d9d2e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue