Esempio n. 1
0
            /// <inheritdoc/>
            public void Execute()
            {
                float value             = buffer[ThreadIds.X];
                ExternalStructType type = ExternalStructType.New((int)value, Hlsl.Abs(value));

                buffer[ThreadIds.X] = ExternalStructType.Sum(type);
            }
Esempio n. 2
0
 public static float Sum(ExternalStructType value)
 {
     return(value.A + value.B);
 }