summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp2
-rw-r--r--Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
index 32365f2f..263e6cb3 100644
--- a/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
@@ -360,7 +360,7 @@ static void CreateRayTracingPipeline(RenderDeviceVkImpl*
PipelineCI.pStages = Stages.data();
PipelineCI.groupCount = static_cast<Uint32>(ShaderGroups.size());
PipelineCI.pGroups = ShaderGroups.data();
- PipelineCI.maxPipelineRayRecursionDepth = std::max(1u, Uint32{RayTracingPipeline.MaxRecursionDepth}) - 1; // for compatibility with D3D12, zero means only one ray tracing depth.
+ PipelineCI.maxPipelineRayRecursionDepth = RayTracingPipeline.MaxRecursionDepth;
PipelineCI.pLibraryInfo = nullptr;
PipelineCI.pLibraryInterface = nullptr;
PipelineCI.pDynamicState = nullptr;
diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
index 44bc0eb8..4a82921d 100644
--- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
@@ -166,7 +166,7 @@ RenderDeviceVkImpl::RenderDeviceVkImpl(IReferenceCounters*
m_PhysicalDevice->GetExtProperties().RayTracingPipeline.maxShaderGroupStride,
m_PhysicalDevice->GetExtProperties().RayTracingPipeline.shaderGroupBaseAlignment,
m_PhysicalDevice->GetExtProperties().MeshShader.maxDrawMeshTasksCount,
- m_PhysicalDevice->GetExtProperties().RayTracingPipeline.maxRayRecursionDepth + 1, // for compatibility with D3D12
+ m_PhysicalDevice->GetExtProperties().RayTracingPipeline.maxRayRecursionDepth,
m_PhysicalDevice->GetExtProperties().RayTracingPipeline.maxRayDispatchInvocationCount
}
// clang-format on