this file was really a hell …
I have overworked the whole file with all the classes reformated an sent you an Email via the monogame community board. I could not upload as a file because only picture formats are alowed.
Dont get surprised about SharpDX compiler pragmas in the code.
II have translated all the Monogame Blendstates, Rasterizerstates and DephtStencil States to direct SharpDX Versions and comunicate directly with the SharpDX.handle Device to set the States.
( WoW, took me some time to understand from the Monogame Source Code, that all states are buffered and only “really set” to directx when the actual drawcall is done.)
The interfaces of the classes i did not change so i think if it is a help to you, you can nearly copy paste to your code.
I changed some early out mechanisms that you had in your code, but placed to top of some other following loops.
You will easy understand, when you check.
I did not dare to upload a pull request on GitHub. I tried, but then i was asked to select branches and it was iritated what actually is to do.
Hope, i could help you, because you are so kind to answer my questions.
many thanks, bettina from germany