Example #1
0
 /// <summary>
 /// ブレンドステート設定
 /// </summary>
 /// <param name="state"></param>
 static public void SetBlendState(RenderState.BlendState state)
 {
     //if (currentBlendState_ != state)
     {
         D3D11ImmediateContext.OutputMerger.BlendState = blendState_[(int)state];
         currentBlendState_ = state;
     }
 }
Example #2
0
 /// <summary>
 /// ステートキャッシュクリア
 /// </summary>
 static public void InvalidateStateCache()
 {
     currentBlendState_      = RenderState.BlendState.Max;
     currentDepthState_      = RenderState.DepthState.Max;
     currentRasterizerState_ = RenderState.RasterizerState.Max;
 }