/// <inheritdoc/> public void Execute() { float value = buffer[ThreadIds.X]; ExternalStructType type = ExternalStructType.New((int)value, Hlsl.Abs(value)); buffer[ThreadIds.X] = ExternalStructType.Sum(type); }
public static float Sum(ExternalStructType value) { return(value.A + value.B); }