public PipelineState() { shaderState = new ShaderState(); blending = new Blending(); depthTest = new DepthTest(); depthWrite = new DepthWrite(); culling = new Culling(); stencilTest = new StencilTest(); vaoState = new VaoState(); }
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); }