Ignore:
Timestamp:
05/02/07 17:28:26 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h

    r2332 r2342  
    1414#include "Timer/PerfTimer.h" 
    1515 
     16 
    1617#ifdef USE_SSE 
    1718#include <xmmintrin.h> 
    1819#endif 
    19  
    2020 
    2121 
     
    797797        float EvalRenderCostDecrease(VspSubdivisionCandidate &splitData,  
    798798                                                                 float &normalizedOldRenderCost, 
    799                                                                  const float totalPvs, 
    800                                                                  const float pvsFront, 
    801                                                                  const float pvsBack) const; 
     799                                                                 const float totalRenderCost, 
     800                                                                 const float frontRenderCost, 
     801                                                                 const float backRenderCost) const; 
    802802 
    803803        /** Collects view cells in the subtree under root. 
     
    11131113        int CompressObjects(VspLeaf *leaf); 
    11141114 
     1115 
    11151116#ifdef USE_SSE 
    1116  
    1117         struct RayPacket 
    1118         { 
    1119                 union { float mOriginX[4]; __m128 mOriginX4; }; 
    1120                 union { float mOriginY[4]; __m128 mOriginY4; }; 
    1121                 union { float mOriginZ[4]; __m128 mOriginZ4; }; 
    1122  
    1123                 union { float mTerminationX[4]; __m128 mTerminationX4; }; 
    1124                 union { float mTerminationY[4]; __m128 mTerminationY4; }; 
    1125                 union { float mTerminationZ[4]; __m128 mTerminationZ4; }; 
    1126  
    1127                 ViewCellContainer mViewCells[4]; 
    1128         }; 
    1129  
    11301117        struct PacketTraversalData 
    11311118        { 
     
    11411128                PacketTraversalData () {} 
    11421129                PacketTraversalData (VspNode *n,  
    1143                                                          const __m128 &px, const __m128 &py, const __m128 &pz,  
    1144                                                          const __m128 &maxt, 
    1145                                                          const __m128 &mask): 
     1130                        const __m128 &px, const __m128 &py, const __m128 &pz,  
     1131                        const __m128 &maxt, 
     1132                        const __m128 &mask): 
    11461133                mNode(n),  
    1147                 mExitPointX4(px), mExitPointY4(py), mExitPointZ4(pz), 
    1148                 mMaxT4(maxt), 
    1149                 mMask4(mask) 
     1134                        mExitPointX4(px), mExitPointY4(py), mExitPointZ4(pz), 
     1135                        mMaxT4(maxt), 
     1136                        mMask4(mask) 
    11501137                {} 
    11511138        }; 
    11521139 
    1153          
    1154         int TraverseRayPacket(RayPacket &rp, 
    1155                                                   const bool useMailboxing); 
     1140 
     1141        int TraverseRayPacket(RayPacket &rp, const bool useMailboxing); 
    11561142 
    11571143#endif 
     1144 
    11581145 
    11591146protected: 
Note: See TracChangeset for help on using the changeset viewer.