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(Culling other) { if (enabled != other.enabled) { return(true); } if (cullMode != other.cullMode) { return(true); } if (frontFaceDir != other.frontFaceDir) { return(true); } return(false); }