File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1472,7 +1472,8 @@ void CVulkanLogicalDevice::createRayTracingPipelines_impl(
1472
1472
return {
1473
1473
.sType = VK_STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR,
1474
1474
.pNext = nullptr ,
1475
- .type = VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR,
1475
+ .type = group.intersectionShaderIndex == asset::SShaderGroupsParams::ShaderUnused ?
1476
+ VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR : VK_RAY_TRACING_SHADER_GROUP_TYPE_PROCEDURAL_HIT_GROUP_KHR,
1476
1477
.generalShader = VK_SHADER_UNUSED_KHR,
1477
1478
.closestHitShader = getVkShaderIndex (group.closestHitShaderIndex ),
1478
1479
.anyHitShader = getVkShaderIndex (group.anyHitShaderIndex ),
Original file line number Diff line number Diff line change @@ -1813,9 +1813,6 @@ bool IGPUCommandBuffer::traceRays(const asset::SStridedBufferRegion<IGPUBuffer>&
1813
1813
return false ;
1814
1814
}
1815
1815
1816
- // TODO(kevinyu) : add more validation
1817
-
1818
-
1819
1816
if (!m_cmdpool->m_commandListPool .emplace <IGPUCommandPool::CTraceRaysCmd>(m_commandList,
1820
1817
core::smart_refctd_ptr<const IGPUBuffer>(raygenGroupRegion.buffer ),
1821
1818
core::smart_refctd_ptr<const IGPUBuffer>(missGroupsRegion.buffer ),
You can’t perform that action at this time.
0 commit comments