Example #1
0
        private void ClearStateImpl()
        {
            NativeDeviceContext.ClearState();

            for (int i = 0; i < samplerStates.Length; ++i)
            {
                samplerStates[i] = null;
            }
            for (int i = 0; i < constantBuffers.Length; ++i)
            {
                constantBuffers[i] = null;
            }
            for (int i = 0; i < unorderedAccessViews.Length; ++i)
            {
                unorderedAccessViews[i] = null;
            }
            for (int i = 0; i < currentRenderTargetViews.Length; i++)
            {
                currentRenderTargetViews[i] = null;
            }

            currentEffectInputSignature = null;
            currentVertexArrayLayout    = null;
            currentInputLayout          = null;
            currentVertexArrayObject    = null;
            CurrentEffect = null;
        }
 public void Reset()
 {
     NativeDeviceContext.ClearState();
 }