コード例 #1
0
        public void CloneTest()
        {
            var exp   = new Define(Variable.X, new Number(0));
            var clone = exp.Clone();

            Assert.Equal(exp, clone);
        }
コード例 #2
0
 public NodeInfo Clone()
 {
     return(new NodeInfo()
     {
         UsedInPixelShader = UsedInPixelShader,
         UsedInVertexShader = UsedInVertexShader,
         RequiredInPixelShader = RequiredInPixelShader,
         Define = Define?.Clone(),
         IsDefineOptimized = IsDefineOptimized,
         EstimatedCost = EstimatedCost,
         PixelShaderCopy = PixelShaderCopy
     });
 }