Fix assert check

This commit is contained in:
hodasemi 2023-01-28 15:55:40 +01:00
parent e62853ad61
commit a5c96a1e29

View file

@ -196,7 +196,7 @@ impl<'a> RayTracingPipelineBuilder<'a> {
match shader_module {
HitShader::AnyHit(_) => {
// sanity check
debug_assert_ne!(
debug_assert_eq!(
group.anyHitShader, VK_SHADER_UNUSED_KHR,
"any hit shader already used in current hit group"
);
@ -205,7 +205,7 @@ impl<'a> RayTracingPipelineBuilder<'a> {
}
HitShader::ClosestHit(_) => {
// sanity check
debug_assert_ne!(
debug_assert_eq!(
group.closestHitShader, VK_SHADER_UNUSED_KHR,
"closest hit shader already used in current hit group"
);
@ -214,7 +214,7 @@ impl<'a> RayTracingPipelineBuilder<'a> {
}
HitShader::Intersection(_) => {
// sanity check
debug_assert_ne!(
debug_assert_eq!(
group.intersectionShader, VK_SHADER_UNUSED_KHR,
"intersection shader already used in current hit group"
);