diff options
| author | azhirnov <zh1dron@gmail.com> | 2020-12-16 19:15:15 +0000 |
|---|---|---|
| committer | azhirnov <zh1dron@gmail.com> | 2020-12-16 19:49:06 +0000 |
| commit | e33e75472b2f9b7685e883a591a95ae8967c5ad2 (patch) | |
| tree | b451d014efab65230e33c4c3e5c75a0aea1619e0 /Graphics/ShaderTools | |
| parent | Updated third-party submodules (diff) | |
| download | DiligentCore-e33e75472b2f9b7685e883a591a95ae8967c5ad2.tar.gz DiligentCore-e33e75472b2f9b7685e883a591a95ae8967c5ad2.zip | |
Fixed validation errors for ray tracing.
Diffstat (limited to 'Graphics/ShaderTools')
| -rw-r--r-- | Graphics/ShaderTools/src/DXCompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Graphics/ShaderTools/src/DXCompiler.cpp b/Graphics/ShaderTools/src/DXCompiler.cpp index 1923521c..7b228af5 100644 --- a/Graphics/ShaderTools/src/DXCompiler.cpp +++ b/Graphics/ShaderTools/src/DXCompiler.cpp @@ -715,12 +715,12 @@ void DXCompilerImpl::Compile(const ShaderCreateInfo& ShaderCI, if (ShaderCI.Desc.ShaderType & RayTracingStages) { - DxilArgs.push_back(L"-fspv-extension=SPV_NV_ray_tracing"); + // add default extensions because we override them DxilArgs.push_back(L"-fspv-extension=SPV_GOOGLE_hlsl_functionality1"); DxilArgs.push_back(L"-fspv-extension=SPV_GOOGLE_user_type"); - // TODO: SPV_NV_ray_tracing is not compatible with new ray tracing extensions, but the latest DXC does not support shaderRecord, so uncomment this line when will it be fixed - //DxilArgs.push_back(L"-fspv-target-env=vulkan1.2"); + DxilArgs.push_back(L"-fspv-extension=SPV_NV_ray_tracing"); // TODO: should be SPV_KHR_ray_tracing + //DxilArgs.push_back(L"-fspv-target-env=vulkan1.2"); // required for SPV_KHR_ray_tracing } } else |
