mono/MonoGame — pull request #1019 by et1337 (2012-11-24 23:22:36+00:00)
Title: MGFX Sampler and Render States - Take 2

I don't think all sampler and render states are supported by the parser yet, but it just ignores any it doesn't recognize. In other words, it may not be done, but it shouldn't break anything.

The sampler state parsing depends on a pretty specific format (similar to `sampler Foo = sampler_state { };`). It works on all the default effects, and on the effects I use in my game. It's only been tested on Windows, however.

Note: this adds some things to the MGFX binary format. I recompiled the default effects. There are a few samples that will need XNBs recompiled. I already recompiled them to make sure they still work, but I think they'll have to be in another pull request.

Also note: I accidentally included a change to GraphicsDevice that should be in a separate pull request (multiple render targets) but reverted it back in another commit. Best way I could think to fix it.