예제 #1
0
 public PipelineState()
 {
     shaderState = new ShaderState();
     blending    = new Blending();
     depthTest   = new DepthTest();
     depthWrite  = new DepthWrite();
     culling     = new Culling();
     stencilTest = new StencilTest();
     vaoState    = new VaoState();
 }
예제 #2
0
        bool isDifferent(Blending other)
        {
            if (enabled != other.enabled)
            {
                return(true);
            }
            if (equation != other.equation)
            {
                return(true);
            }
            if (factorDest != other.factorDest)
            {
                return(true);
            }
            if (factorSrc != other.factorSrc)
            {
                return(true);
            }

            return(false);
        }