summaryrefslogtreecommitdiffstats
path: root/Graphics/ShaderTools
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-12-16 19:15:15 +0000
committerazhirnov <zh1dron@gmail.com>2020-12-16 19:49:06 +0000
commite33e75472b2f9b7685e883a591a95ae8967c5ad2 (patch)
treeb451d014efab65230e33c4c3e5c75a0aea1619e0 /Graphics/ShaderTools
parentUpdated third-party submodules (diff)
downloadDiligentCore-e33e75472b2f9b7685e883a591a95ae8967c5ad2.tar.gz
DiligentCore-e33e75472b2f9b7685e883a591a95ae8967c5ad2.zip
Fixed validation errors for ray tracing.
Diffstat (limited to 'Graphics/ShaderTools')
-rw-r--r--Graphics/ShaderTools/src/DXCompiler.cpp6
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