Open main menu

CDOT Wiki β

Changes

UnknownX

347 bytes added, 17:08, 12 April 2017
V2 -- One array
PPM file output: <br />
[[File:Txt.PNG]]<br />
We allocate three arrays to store the all the results. Each pixel stores in 3 arrys, and it is slow.
Instead of 3 arrays, we allocate a bigger array and store all the pixels in this array.
For the first pixel.
1st : R _ _ _ _ _ _ _
2nd : G _ _ _ _ _ _ _
3rd : B _ _ _ _ _ _ _
 
new array R G B _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 
Before
int* d_pixs_x;
122
edits