コード例 #1
0
ファイル: device.cs プロジェクト: an87li/gameEngine
        public void resetPipelineState()
        {
            PipelineState ps = new PipelineState();

            ps.apply();
            myCurrentPipelineId = ps.id;
        }
コード例 #2
0
ファイル: device.cs プロジェクト: an87li/gameEngine
        public Device()
        {
            //initialize all the things
            theRenderState = new RenderState();
            theRenderState.force();

            thePipelineState = new PipelineState();
            thePipelineState.apply();
        }
コード例 #3
0
ファイル: device.cs プロジェクト: an87li/gameEngine
 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;
     }
 }