Skip to content

Commit

Permalink
Exclude AVX stuff for unsupported platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Dec 11, 2024
1 parent a01c2cc commit b0b6cf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tiny_bvh_speedtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ float TestShadowRays( uint32_t layout, Ray* batch, unsigned N, unsigned passes )
switch (layout)
{
case _DEFAULT: for (unsigned i = 0; i < N; i++) occluded += bvh->IsOccluded( batch[i] ); break;
#ifdef BVH_USEAVX
case _SOA: for (unsigned i = 0; i < N; i++) occluded += bvh_soa->IsOccluded( batch[i] ); break;
#endif
case _GPU2: for (unsigned i = 0; i < N; i++) occluded += bvh_gpu->IsOccluded( batch[i] ); break;
case _CPU4: for (unsigned i = 0; i < N; i++) occluded += bvh4_cpu->IsOccluded( batch[i] ); break;
default: break;
Expand Down

0 comments on commit b0b6cf0

Please sign in to comment.