示例#1
0
        public void resetPipelineState()
        {
            PipelineState ps = new PipelineState();

            ps.apply();
            myCurrentPipelineId = ps.id;
        }
示例#2
0
        public Device()
        {
            //initialize all the things
            theRenderState = new RenderState();
            theRenderState.force();

            thePipelineState = new PipelineState();
            thePipelineState.apply();
        }
示例#3
0
 public void bindPipeline(PipelineState ps)
 {
     if (myCurrentPipelineId != ps.id)
     {
         //Renderer.device.clearRenderState();  //this clears per-frame UBO as well.  Need to find a way to segregate these
         ps.apply();
         myCurrentPipelineId = ps.id;
         currentPipeline     = ps;
     }
 }