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

            Assert.Equal(exp, clone);
        }
 public NodeInfo Clone()
 {
     return(new NodeInfo()
     {
         UsedInPixelShader = UsedInPixelShader,
         UsedInVertexShader = UsedInVertexShader,
         RequiredInPixelShader = RequiredInPixelShader,
         Define = Define?.Clone(),
         IsDefineOptimized = IsDefineOptimized,
         EstimatedCost = EstimatedCost,
         PixelShaderCopy = PixelShaderCopy
     });
 }