Example #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();
 }
Example #2
0
 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);
 }