Project

General

Profile

« Previous | Next » 

Revision 2ab60f72

Added by Leszek Koltunski about 6 years ago

SSBO: something is working already, although we still get the 4 bytes back from the shader in reverse order ( so '17'=0x00000011 written by the shader becomes '285212672 = 0x11000000' )

View differences:

src/main/java/org/distorted/library/main/DistortedScreen.java
137 137
 */
138 138
  public DistortedScreen()
139 139
    {
140
    // set color to 'DONT_CREATE' so that Screens will not get added to the Surface lists
141
    // set depth to 'CREATED' so that depth will be, by default, on.
142
    super(0,0,DONT_CREATE,1,DEPTH_NO_STENCIL,0,TYPE_USER);
140
    // Screen also has to be created (3rd arg 'NOT_CREATED_YET') because of the SSBO inside OutputSurface.
141
    super(0,0,NOT_CREATED_YET,1,DEPTH_NO_STENCIL,0,TYPE_USER);
143 142

  
144 143
    mInitialized = false;
145 144
    }

Also available in: Unified diff