TR.Stride
TR.Stride copied to clipboard
Buoyancy Crash as a result of IndexOutOfRange in SampleRepeat
static Vector4 SampleRepeat(Vector4[] source, int w, int h, int x, int y)
{
x = x % w;
y = y & h;
return source[y * w + x];
}
source
has a size of 65536 as a result of the 256 x 256 set in Size, and y * w = 65536