public void resetPipelineState() { PipelineState ps = new PipelineState(); ps.apply(); myCurrentPipelineId = ps.id; }
public Device() { //initialize all the things theRenderState = new RenderState(); theRenderState.force(); thePipelineState = new PipelineState(); thePipelineState.apply(); }
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; } }