Revision 27cd6b98
Added by Leszek Koltunski about 6 years ago
src/main/java/org/distorted/library/main/DistortedOutputSurface.java | ||
---|---|---|
207 | 207 |
recreateSurface(); |
208 | 208 |
} |
209 | 209 |
|
210 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
211 |
|
|
212 |
void debugSSBO() |
|
213 |
{ |
|
214 |
android.util.Log.d("SSBO", mIntBuffer.get(0)+" "+mIntBuffer.get(1)+" " |
|
215 |
+mIntBuffer.get(2)+" "+mIntBuffer.get(3) ); |
|
216 |
} |
|
217 |
|
|
210 | 218 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
211 | 219 |
|
212 | 220 |
int resetNewCounter() |
213 | 221 |
{ |
214 |
//mIntBuffer.put(BUFFERING*mSurfaceID+mLastIndex,0);
|
|
222 |
mIntBuffer.put(BUFFERING*mSurfaceID+mLastIndex,0); |
|
215 | 223 |
return BUFFERING*mSurfaceID + mLastIndex; |
216 | 224 |
} |
217 | 225 |
|
... | ... | |
227 | 235 |
return ret; |
228 | 236 |
} |
229 | 237 |
|
230 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
231 |
|
|
232 |
int returnCounter() |
|
233 |
{ |
|
234 |
return mIntBuffer.get(0); |
|
235 |
} |
|
236 |
|
|
237 | 238 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
238 | 239 |
|
239 | 240 |
private void createProjection() |
Also available in: Unified diff
SSBO: more and more works...