ThreadIds struct refactored

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-11 14:42:35 +02:00
1 親 67ff58d6de
コミット 639ae6520a
6ファイル変更
+31 -31

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

+1 -1
ファイルの表示
@@ -19,7 +19,7 @@ namespace DirectX12ComputeShaderSample
public static class GraphicsDeviceExtensions
{
public static void For(this GraphicsDevice device, int n, Action<UInt3> shader)
public static void For(this GraphicsDevice device, int n, Action<ThreadIds> shader)
{
// Generate the compute shadr
ShaderGenerator shaderGenerator = new ShaderGenerator(shader);
+1 -1
ファイルの表示
@@ -27,7 +27,7 @@ namespace DirectX12ComputeShaderSample
var data = gpuBuffer.GetGpuResource();
// Shader body
Action<UInt3> action = id =>
Action<ThreadIds> action = id =>
{
data[id.X + id.Y * size] *= 2;
};