Skip to content

Commit

Permalink
Exclude CWBVH traversal from non-AVX builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 12, 2024
1 parent 8f4bce1 commit 17242b4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -1619,9 +1619,11 @@ int BVH::Intersect( Ray& ray, BVHLayout layout ) const
case BASIC_BVH8:
return Intersect_BasicBVH8( ray );
break;
#ifdef BVH_USEAVX
case CWBVH:
return Intersect_CWBVH( ray );
break;
#endif
default:
assert( false );
};
Expand Down Expand Up @@ -2740,15 +2742,6 @@ int BVH::Intersect_CWBVH( Ray& ray ) const

#endif // _MSC_VER

#else

int BVH::Intersect_AltSoA( Ray& ray ) const
{
// not implemented for platforms that do not support SSE/AVX.
assert( false );
return 0;
}

#endif // BVH_USEAVX

} // namespace tinybvh
Expand Down

0 comments on commit 17242b4

Please sign in to comment.