private void Update(EvaluationContext context) { Size2 size = Size.GetValue(context); Int3 threadGroups = ThreadGroups.GetValue(context); if (threadGroups.X == 0 || threadGroups.Y == 0) { return; } DispatchCount.Value = new Int3(size.Width / threadGroups.X, size.Height / threadGroups.Y, 1); }
private void Update(EvaluationContext context) { var size = Size.GetValue(context); Int3 threadGroups = ThreadGroups.GetValue(context); if (threadGroups.X == 0 || threadGroups.Y == 0) { return; } DispatchCount.Value = new Int3(size.X / threadGroups.X, size.Y / threadGroups.Y, size.Z / threadGroups.Z); }