Skip to content

Commit e74a1f3

Browse files
author
kevyuu
committed
Add validation whether compute shader exist when creating compute pipeline
1 parent 8226fbb commit e74a1f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/nbl/video/IGPUComputePipeline.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class IGPUComputePipeline : public IGPUPipeline<asset::IComputePipeline<const IG
5656
.dataSize = 0,
5757
};
5858

59+
if (!shader.shader)
60+
return {};
61+
5962
if (!shader.accumulateSpecializationValidationResult(&retval))
6063
return {};
6164

0 commit comments

Comments
 (0)