I've just finished porting my XNA project to SlimDX and now I'm having problems getting anything to output to the screen. I've tried disabling culling, turning blend off and having the shader output pure white. I've disabled all drawing besides the UI sprites. I still end up with a screen the same color it was originally cleared to (purple). In PIX, if I debug a pixel, I can see it starts purple, then its drawn to several times with pure white. And yet at every stage, the Render tab shows a purple screen. I can see the geometry covers the whole screen in the Mesh tab. I get the same output with Force REF as well. Also, if I look at the contents of the render target, it's also solid purple. I'm at a loss for what could possibly be wrong. I've attatched some screenshots from PIX.
[attachment=8921:Blend.PNG]
[attachment=8922:DepthStencil.PNG]
[attachment=8924:MeshTab.PNG]
[attachment=8925:RasterizerTab.PNG]
[attachment=8923:General.PNG]
Nothing being output to screen
You mentioned render target, you are setting it as the active one before rendering stuff aren't you?
Yea I am, this is part of my game loop:
Context.OutputMerger.SetTargets(BackBuffer);
Context.ClearRenderTargetView(BackBuffer, Color.BlueViolet);
ScreenManager.Draw(gameTime);
swapChain.Present(0, PresentFlags.None);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement