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(VaoState state) { if ((state.vao == null) && (vao == null)) { return(false); } if ((state.vao != null) && (vao == null)) { return(true); } if ((state.vao == null) && (vao != null)) { return(true); } if (state.vao.id != vao.id) { return(true); } return(false); }