Switch methods to block bodies
このコミットが含まれているのは:
1 親
16c0fc9aab
コミット
b2afb88f30
53ファイル変更
+426
-132
検索条件に一致するファイルはありません
@@ -26,16 +26,28 @@ public partial class MetaprogrammingTests
|
||||
public static class Activations
|
||||
{
|
||||
[ShaderMethod]
|
||||
public static int Square(int x) => x * x;
|
||||
public static int Square(int x)
|
||||
{
|
||||
return x * x;
|
||||
}
|
||||
|
||||
[ShaderMethod]
|
||||
public static int AddOne(int x) => x + 1;
|
||||
public static int AddOne(int x)
|
||||
{
|
||||
return x + 1;
|
||||
}
|
||||
|
||||
// Missing attribute
|
||||
public static int Identity(int x) => x;
|
||||
public static int Identity(int x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
[ShaderMethod]
|
||||
public static int FunctionWithConstants(int x) => (int)(x + FourAndAHalf);
|
||||
public static int FunctionWithConstants(int x)
|
||||
{
|
||||
return (int)(x + FourAndAHalf);
|
||||
}
|
||||
|
||||
[ShaderMethod]
|
||||
public static Position FunctionWithTypes(int x)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする