Fix assert check
This commit is contained in:
parent
e62853ad61
commit
a5c96a1e29
1 changed files with 3 additions and 3 deletions
|
@ -196,7 +196,7 @@ impl<'a> RayTracingPipelineBuilder<'a> {
|
||||||
match shader_module {
|
match shader_module {
|
||||||
HitShader::AnyHit(_) => {
|
HitShader::AnyHit(_) => {
|
||||||
// sanity check
|
// sanity check
|
||||||
debug_assert_ne!(
|
debug_assert_eq!(
|
||||||
group.anyHitShader, VK_SHADER_UNUSED_KHR,
|
group.anyHitShader, VK_SHADER_UNUSED_KHR,
|
||||||
"any hit shader already used in current hit group"
|
"any hit shader already used in current hit group"
|
||||||
);
|
);
|
||||||
|
@ -205,7 +205,7 @@ impl<'a> RayTracingPipelineBuilder<'a> {
|
||||||
}
|
}
|
||||||
HitShader::ClosestHit(_) => {
|
HitShader::ClosestHit(_) => {
|
||||||
// sanity check
|
// sanity check
|
||||||
debug_assert_ne!(
|
debug_assert_eq!(
|
||||||
group.closestHitShader, VK_SHADER_UNUSED_KHR,
|
group.closestHitShader, VK_SHADER_UNUSED_KHR,
|
||||||
"closest hit shader already used in current hit group"
|
"closest hit shader already used in current hit group"
|
||||||
);
|
);
|
||||||
|
@ -214,7 +214,7 @@ impl<'a> RayTracingPipelineBuilder<'a> {
|
||||||
}
|
}
|
||||||
HitShader::Intersection(_) => {
|
HitShader::Intersection(_) => {
|
||||||
// sanity check
|
// sanity check
|
||||||
debug_assert_ne!(
|
debug_assert_eq!(
|
||||||
group.intersectionShader, VK_SHADER_UNUSED_KHR,
|
group.intersectionShader, VK_SHADER_UNUSED_KHR,
|
||||||
"intersection shader already used in current hit group"
|
"intersection shader already used in current hit group"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue