A game about forced loneliness, made by TACStudios
1using System.Reflection;
2using UnityEngine;
3
4namespace UnityEditor.ShaderGraph
5{
6 [Title("Math", "Matrix", "Matrix Transpose")]
7 class MatrixTransposeNode : CodeFunctionNode
8 {
9 public MatrixTransposeNode()
10 {
11 name = "Matrix Transpose";
12 }
13
14 public override bool hasPreview
15 {
16 get { return false; }
17 }
18
19 protected override MethodInfo GetFunctionToConvert()
20 {
21 return GetType().GetMethod("Unity_MatrixTranspose", BindingFlags.Static | BindingFlags.NonPublic);
22 }
23
24 static string Unity_MatrixTranspose(
25 [Slot(0, Binding.None)] DynamicDimensionMatrix In,
26 [Slot(1, Binding.None)] out DynamicDimensionMatrix Out)
27 {
28 return
29@"
30{
31 Out = transpose(In);
32}
33";
34 }
35 }
36}