Exemplo n.º 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();
 }
Exemplo n.º 2
0
 bool isDifferent(ShaderState state)
 {
     if (state.shaderProgram == null && shaderProgram == null)
     {
         return(false);
     }
     if (state.shaderProgram == null && shaderProgram != null)
     {
         return(true);
     }
     if (state.shaderProgram != null && shaderProgram == null)
     {
         return(true);
     }
     if (state.shaderProgram.id != shaderProgram.id)
     {
         return(true);
     }
     return(false);
 }