Skip to content

Commit 2578abe

Browse files
author
kevyuu
committed
Check raygen shader existence for raytracing pipeline
1 parent 026d494 commit 2578abe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/nbl/video/IGPURayTracingPipeline.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ class IGPURayTracingPipeline : public IGPUPipeline<asset::IRayTracingPipeline<c
141141
}
142142
}
143143

144+
if (!shaderGroups.raygen.shader) return {};
145+
144146
return retval;
145147
}
146148

0 commit comments

Comments
 (0)