Fix ThreadIds.Normalized logic to be in [0, 1] range

このコミットが含まれているのは:
Sergio Pedri committed 2022-09-27 00:01:32 +02:00
1 親 e16b234b94
コミット 219db68545
4ファイル変更
+49 -14

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -68,8 +68,8 @@ public partial class DispatchTests
{
for (int j = 0; j < texture.Width; j++)
{
byte r = (byte)(j / (float)texture.Width * 255f);
byte g = (byte)(i / (float)texture.Height * 255f);
byte r = (byte)(j / (float)(texture.Width - 1) * 255f);
byte g = (byte)(i / (float)(texture.Height - 1) * 255f);
const byte b = (byte)(0.3f * 255f);
const byte a = (byte)(0.6f * 255f);
Rgba32 pixel = result[i, j];