ThreadIds struct refactored
このコミットが含まれているのは:
1 親
67ff58d6de
コミット
639ae6520a
6ファイル変更
+31
-31
検索条件に一致するファイルはありません
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする