Esempio n. 1
0
 bool isDifferent(StencilTest other)
 {
     if (enabled != other.enabled)
     {
         return(true);
     }
     if (stencilFunction != other.stencilFunction)
     {
         return(true);
     }
     if (sfail != other.sfail)
     {
         return(true);
     }
     if (dfail != other.dfail)
     {
         return(true);
     }
     if (dpass != other.dpass)
     {
         return(true);
     }
     if (value != other.value)
     {
         return(true);
     }
     if (mask != other.mask)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public PipelineState()
 {
     shaderState = new ShaderState();
     blending    = new Blending();
     depthTest   = new DepthTest();
     depthWrite  = new DepthWrite();
     culling     = new Culling();
     stencilTest = new StencilTest();
     vaoState    = new VaoState();
 }