Grain of Salt - October 22nd, 2009 [entries|archive|friends|userinfo]
snauts

[ userinfo | sc userinfo ]
[ archive | journal archive ]

October 22nd, 2009

[Oct. 22nd, 2009|10:07 pm]
linkpost comment

GLSL [Oct. 22nd, 2009|11:05 pm]
Vobšem uz ATI kartes šitais strādā, bet uz NVIDIA nē:
  float i = 1.0;
  while (i < 256.0) {
      i *= 2.0;
  }


Vot nez kāpēc, lai strādātu uz NVIDIA vajag kaut kā tā:
  float i = 1.0;
  float j = 1.0;
  while (j < 8.0) {
      i *= 2.0;
      j += 1.0;
  }


Kāpēc tas tā?
link3 comments|post comment

navigation
[ viewing | October 22nd, 2009 ]
[ go | Previous Day|Next Day ]