コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }