Skip to content

Commit

Permalink
aossoa.cpp improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
John (Greg)ory Blair committed Jul 15, 2015
1 parent 26a669c commit 135bd4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aossoa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
using namespace std;

// AoS : Array of Structures
// struct { uint8_t r, g, b; } AoS[N];

// SoA : Structure of Arrays
// struct { uint8_t r[N]; uint8_t g[N]; uint8_t b[N]; } SoA;

// AoS vs SoA are hot topics. GPUs prefer AoS.

Expand Down

0 comments on commit 135bd4a

Please sign in to comment.